mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-29 08:21:18 +01:00
boards/fox: Update to match timer_init API change
This commit is contained in:
parent
68ddb1a7a9
commit
51f945a303
@ -53,7 +53,7 @@ extern "C" {
|
||||
#define TIMER_0_DEV_0 TIM2
|
||||
#define TIMER_0_DEV_1 TIM3
|
||||
#define TIMER_0_CHANNELS 4
|
||||
#define TIMER_0_PRESCALER (72U)
|
||||
#define TIMER_0_FREQ (CLOCK_CORECLOCK)
|
||||
#define TIMER_0_MAX_VALUE (0xffff)
|
||||
#define TIMER_0_CLKEN() (RCC->APB1ENR |= (RCC_APB1ENR_TIM2EN | RCC_APB1ENR_TIM3EN))
|
||||
#define TIMER_0_ISR_0 isr_tim2
|
||||
@ -67,7 +67,7 @@ extern "C" {
|
||||
#define TIMER_1_DEV_0 TIM4
|
||||
#define TIMER_1_DEV_1 TIM5
|
||||
#define TIMER_1_CHANNELS 4
|
||||
#define TIMER_1_PRESCALER (72U)
|
||||
#define TIMER_1_FREQ (CLOCK_CORECLOCK)
|
||||
#define TIMER_1_MAX_VALUE (0xffff)
|
||||
#define TIMER_1_CLKEN() (RCC->APB1ENR |= (RCC_APB1ENR_TIM4EN | RCC_APB1ENR_TIM5EN))
|
||||
#define TIMER_1_ISR_0 isr_tim4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user