From ad10db84fd87d4053af7f7f77414cc1ed9bf08fe Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Tue, 3 Nov 2020 13:33:43 +0100 Subject: [PATCH] boards/slwstk6000: add LETIMER0 as secondary timer --- .../common/slwstk6000b/include/periph_conf.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/boards/common/slwstk6000b/include/periph_conf.h b/boards/common/slwstk6000b/include/periph_conf.h index f99ae9fdd6..628d19778e 100644 --- a/boards/common/slwstk6000b/include/periph_conf.h +++ b/boards/common/slwstk6000b/include/periph_conf.h @@ -139,21 +139,34 @@ static const spi_dev_t spi_config[] = { */ static const timer_conf_t timer_config[] = { { - { + .prescaler = { .dev = TIMER0, .cmu = cmuClock_TIMER0 }, - { + .timer = { .dev = TIMER1, .cmu = cmuClock_TIMER1 }, .irq = TIMER1_IRQn, - .channel_numof = 3 + .channel_numof = 4 + }, + { + .prescaler = { + .dev = NULL, + .cmu = cmuClock_LETIMER0 + }, + .timer = { + .dev = LETIMER0, + .cmu = cmuClock_LETIMER0 + }, + .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 /** @} */ /**