1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/efm32: update timer configuration

This commit is contained in:
Bas Stottelaar 2020-10-28 20:50:50 +01:00
parent 8383d09d20
commit 2ea9829b02
4 changed files with 14 additions and 22 deletions

View File

@ -141,8 +141,7 @@ static const spi_dev_t spi_config[] = {
/**
* @name Timer configuration
*
* The implementation can use one low-energy timer
* or two regular timers in cascade mode.
* The implementation uses two timers in cascade mode.
* @{
*/
static const timer_conf_t timer_config[] = {
@ -156,7 +155,7 @@ static const timer_conf_t timer_config[] = {
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn,
.channel_numof = 3
.channel_numof = 4
},
{
.prescaler = {
@ -169,13 +168,12 @@ static const timer_conf_t timer_config[] = {
},
.irq = LETIMER0_IRQn,
.channel_numof = 2
},
}
};
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
#define TIMER_0_ISR isr_timer1
#define TIMER_1_ISR isr_letimer0
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
/** @} */
/**

View File

@ -141,8 +141,7 @@ static const spi_dev_t spi_config[] = {
/**
* @name Timer configuration
*
* The implementation can use one low-energy timer
* or two regular timers in cascade mode.
* The implementation uses two timers in cascade mode.
* @{
*/
static const timer_conf_t timer_config[] = {
@ -156,7 +155,7 @@ static const timer_conf_t timer_config[] = {
.cmu = cmuClock_TIMER1
},
.irq = TIMER1_IRQn,
.channel_numof = 3
.channel_numof = 4
},
{
.prescaler = {
@ -169,13 +168,12 @@ static const timer_conf_t timer_config[] = {
},
.irq = LETIMER0_IRQn,
.channel_numof = 2
},
}
};
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
#define TIMER_0_ISR isr_timer1
#define TIMER_1_ISR isr_letimer0
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
/** @} */
/**

View File

@ -195,8 +195,7 @@ static const spi_dev_t spi_config[] = {
/**
* @name Timer configuration
*
* The implementation can use one low-energy timer
* or two regular timers in cascade mode.
* The implementation uses two timers in cascade mode.
* @{
*/
static const timer_conf_t timer_config[] = {
@ -223,13 +222,12 @@ static const timer_conf_t timer_config[] = {
},
.irq = LETIMER0_IRQn,
.channel_numof = 2
},
}
};
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
#define TIMER_0_ISR isr_timer1
#define TIMER_1_ISR isr_letimer0
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
/** @} */
/**

View File

@ -195,8 +195,7 @@ static const spi_dev_t spi_config[] = {
/**
* @name Timer configuration
*
* The implementation can use one low-energy timer
* or two regular timers in cascade mode.
* The implementation uses two timers in cascade mode.
* @{
*/
static const timer_conf_t timer_config[] = {
@ -223,13 +222,12 @@ static const timer_conf_t timer_config[] = {
},
.irq = LETIMER0_IRQn,
.channel_numof = 2
},
}
};
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
#define TIMER_0_ISR isr_timer1
#define TIMER_1_ISR isr_letimer0
#define TIMER_NUMOF ARRAY_SIZE(timer_config)
/** @} */
/**