frdm-k64f: Add LPTMR configuration

This commit is contained in:
Joakim Nohlgård 2018-09-13 11:15:30 +02:00
parent b6abbad6fb
commit a42df69ea8

View File

@ -80,8 +80,15 @@ static const clock_config_t clock_config = {
.count_ch = 3, \ .count_ch = 3, \
}, \ }, \
} }
#define LPTMR_NUMOF (0U) #define LPTMR_NUMOF (1U)
#define LPTMR_CONFIG {} #define LPTMR_CONFIG { \
{ \
.dev = LPTMR0, \
.irqn = LPTMR0_IRQn, \
.src = 2, \
.base_freq = 32768u, \
}, \
}
#define TIMER_NUMOF ((PIT_NUMOF) + (LPTMR_NUMOF)) #define TIMER_NUMOF ((PIT_NUMOF) + (LPTMR_NUMOF))
#define PIT_BASECLOCK (CLOCK_BUSCLOCK) #define PIT_BASECLOCK (CLOCK_BUSCLOCK)