From dc689000f64b607744b9f25aeec6318964d1b22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Sat, 3 Mar 2018 09:15:03 +0100 Subject: [PATCH] frdm-k22f: Update LPTMR config --- boards/frdm-k22f/include/periph_conf.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/boards/frdm-k22f/include/periph_conf.h b/boards/frdm-k22f/include/periph_conf.h index d028cb307b..27d4ab82c1 100644 --- a/boards/frdm-k22f/include/periph_conf.h +++ b/boards/frdm-k22f/include/periph_conf.h @@ -80,11 +80,13 @@ static const clock_config_t clock_config = { }, \ } #define LPTMR_NUMOF (1U) -#define LPTMR_CONFIG { \ - { \ - .dev = LPTMR0, \ - .irqn = LPTMR0_IRQn, \ - } \ +#define LPTMR_CONFIG { \ + { \ + .dev = LPTMR0, \ + .irqn = LPTMR0_IRQn, \ + .src = 2, \ + .base_freq = 32768u, \ + }, \ } #define TIMER_NUMOF ((PIT_NUMOF) + (LPTMR_NUMOF))