frdm-k22f: Update LPTMR config

This commit is contained in:
Joakim Nohlgård 2018-03-03 09:15:03 +01:00
parent a49d151919
commit dc689000f6

View File

@ -80,11 +80,13 @@ static const clock_config_t clock_config = {
}, \ }, \
} }
#define LPTMR_NUMOF (1U) #define LPTMR_NUMOF (1U)
#define LPTMR_CONFIG { \ #define LPTMR_CONFIG { \
{ \ { \
.dev = LPTMR0, \ .dev = LPTMR0, \
.irqn = LPTMR0_IRQn, \ .irqn = LPTMR0_IRQn, \
} \ .src = 2, \
.base_freq = 32768u, \
}, \
} }
#define TIMER_NUMOF ((PIT_NUMOF) + (LPTMR_NUMOF)) #define TIMER_NUMOF ((PIT_NUMOF) + (LPTMR_NUMOF))