mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
board: iot-lab_M3: fix timer MAX_VALUEs
our implementation of stm32f1 uses two 16bit timers to emulate one 32bit timer. This commit makes the timer maximum value definitions match the timers.
This commit is contained in:
parent
220371c54a
commit
a134693918
@ -55,7 +55,7 @@ extern "C" {
|
||||
#define TIMER_0_DEV_1 TIM3
|
||||
#define TIMER_0_CHANNELS 4
|
||||
#define TIMER_0_PRESCALER (72U)
|
||||
#define TIMER_0_MAX_VALUE (0xffff)
|
||||
#define TIMER_0_MAX_VALUE (0xffffffff)
|
||||
#define TIMER_0_CLKEN() (RCC->APB1ENR |= (RCC_APB1ENR_TIM2EN | RCC_APB1ENR_TIM3EN))
|
||||
#define TIMER_0_ISR_0 isr_tim2
|
||||
#define TIMER_0_ISR_1 isr_tim3
|
||||
@ -69,7 +69,7 @@ extern "C" {
|
||||
#define TIMER_1_DEV_1 TIM5
|
||||
#define TIMER_1_CHANNELS 4
|
||||
#define TIMER_1_PRESCALER (72U)
|
||||
#define TIMER_1_MAX_VALUE (0xffff)
|
||||
#define TIMER_1_MAX_VALUE (0xffffffff)
|
||||
#define TIMER_1_CLKEN() (RCC->APB1ENR |= (RCC_APB1ENR_TIM4EN | RCC_APB1ENR_TIM5EN))
|
||||
#define TIMER_1_ISR_0 isr_tim4
|
||||
#define TIMER_1_ISR_1 isr_tim5
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user