From 2ea9829b02789f0f0daaed317afb5639a78d87ca Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Wed, 28 Oct 2020 20:50:50 +0100 Subject: [PATCH] boards/efm32: update timer configuration --- boards/slstk3401a/include/periph_conf.h | 10 ++++------ boards/sltb001a/include/periph_conf.h | 10 ++++------ boards/stk3600/include/periph_conf.h | 8 +++----- boards/stk3700/include/periph_conf.h | 8 +++----- 4 files changed, 14 insertions(+), 22 deletions(-) diff --git a/boards/slstk3401a/include/periph_conf.h b/boards/slstk3401a/include/periph_conf.h index d8c6ae29f9..d2e061c230 100644 --- a/boards/slstk3401a/include/periph_conf.h +++ b/boards/slstk3401a/include/periph_conf.h @@ -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) /** @} */ /** diff --git a/boards/sltb001a/include/periph_conf.h b/boards/sltb001a/include/periph_conf.h index 28e092eb17..e6de0d5690 100644 --- a/boards/sltb001a/include/periph_conf.h +++ b/boards/sltb001a/include/periph_conf.h @@ -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) /** @} */ /** diff --git a/boards/stk3600/include/periph_conf.h b/boards/stk3600/include/periph_conf.h index f2f958e555..7314be806f 100644 --- a/boards/stk3600/include/periph_conf.h +++ b/boards/stk3600/include/periph_conf.h @@ -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) /** @} */ /** diff --git a/boards/stk3700/include/periph_conf.h b/boards/stk3700/include/periph_conf.h index 942e965d25..1cd1a0d3f1 100644 --- a/boards/stk3700/include/periph_conf.h +++ b/boards/stk3700/include/periph_conf.h @@ -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) /** @} */ /**