boards/msbiot: Update to match timer_init API change

This commit is contained in:
Joakim Nohlgård 2015-10-04 00:25:27 +02:00
parent 13ba441054
commit 1b1f04b7f7

View File

@ -61,7 +61,7 @@ extern "C" {
/* Timer 0 configuration */ /* Timer 0 configuration */
#define TIMER_0_DEV TIM2 #define TIMER_0_DEV TIM2
#define TIMER_0_CHANNELS 4 #define TIMER_0_CHANNELS 4
#define TIMER_0_PRESCALER (83U) #define TIMER_0_FREQ (84000000U)
#define TIMER_0_MAX_VALUE (0xffffffff) #define TIMER_0_MAX_VALUE (0xffffffff)
#define TIMER_0_CLKEN() (RCC->APB1ENR |= RCC_APB1ENR_TIM2EN) #define TIMER_0_CLKEN() (RCC->APB1ENR |= RCC_APB1ENR_TIM2EN)
#define TIMER_0_ISR isr_tim2 #define TIMER_0_ISR isr_tim2
@ -70,7 +70,7 @@ extern "C" {
/* Timer 1 configuration */ /* Timer 1 configuration */
#define TIMER_1_DEV TIM5 #define TIMER_1_DEV TIM5
#define TIMER_1_CHANNELS 4 #define TIMER_1_CHANNELS 4
#define TIMER_1_PRESCALER (83U) #define TIMER_1_FREQ (84000000U)
#define TIMER_1_MAX_VALUE (0xffffffff) #define TIMER_1_MAX_VALUE (0xffffffff)
#define TIMER_1_CLKEN() (RCC->APB1ENR |= RCC_APB1ENR_TIM5EN) #define TIMER_1_CLKEN() (RCC->APB1ENR |= RCC_APB1ENR_TIM5EN)
#define TIMER_1_ISR isr_tim5 #define TIMER_1_ISR isr_tim5