From a42df69ea82c83bdacc21e0a92b0bb6c7f4397fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Thu, 13 Sep 2018 11:15:30 +0200 Subject: [PATCH] frdm-k64f: Add LPTMR configuration --- boards/frdm-k64f/include/periph_conf.h | 29 ++++++++++++++++---------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/boards/frdm-k64f/include/periph_conf.h b/boards/frdm-k64f/include/periph_conf.h index f27cd18198..54770d93bf 100644 --- a/boards/frdm-k64f/include/periph_conf.h +++ b/boards/frdm-k64f/include/periph_conf.h @@ -70,18 +70,25 @@ static const clock_config_t clock_config = { * @{ */ #define PIT_NUMOF (2U) -#define PIT_CONFIG { \ - { \ - .prescaler_ch = 0, \ - .count_ch = 1, \ - }, \ - { \ - .prescaler_ch = 2, \ - .count_ch = 3, \ - }, \ +#define PIT_CONFIG { \ + { \ + .prescaler_ch = 0, \ + .count_ch = 1, \ + }, \ + { \ + .prescaler_ch = 2, \ + .count_ch = 3, \ + }, \ } -#define LPTMR_NUMOF (0U) -#define LPTMR_CONFIG {} +#define LPTMR_NUMOF (1U) +#define LPTMR_CONFIG { \ + { \ + .dev = LPTMR0, \ + .irqn = LPTMR0_IRQn, \ + .src = 2, \ + .base_freq = 32768u, \ + }, \ +} #define TIMER_NUMOF ((PIT_NUMOF) + (LPTMR_NUMOF)) #define PIT_BASECLOCK (CLOCK_BUSCLOCK)