File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
typedef uint8_t radio_packet_length_t ;
9
9
10
+ #define HW_TIMER TIMER_0
11
+
10
12
#endif /* BOARD_H_ */
Original file line number Diff line number Diff line change
1
+ #ifndef __PERIPH_CONF_H
2
+ #define __PERIPH_CONF_H
3
+
4
+
5
+ /**
6
+ * @brief Timer configuration
7
+ */
8
+ #define TIMER_NUMOF (2U)
9
+ #define TIMER_0_EN 1
10
+ #define TIMER_1_EN 0
11
+
12
+ /* Timer 0 configuration */
13
+ #define TIMER_0_DEV TIM2
14
+ #define TIMER_0_CHANNELS 4
15
+ #define TIMER_0_PRESCALER (2303U)
16
+ #define TIMER_0_MAX_VALUE (0xffff)
17
+ #define TIMER_0_CLKEN () RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM2, ENABLE)
18
+ #define TIMER_0_ISR TIM2_IRQHandler
19
+ #define TIMER_0_IRQCHAN TIM2_IRQn
20
+ #define TIMER_0_IRQ_PRIO 1
21
+
22
+ /* Timer 1 configuration */
23
+ #define TIMER_1_DEV TIM3
24
+ #define TIMER_1_CHANNELS 2
25
+ #define TIMER_1_PRESCALER (71U)
26
+ #define TIMER_1_MAX_VALUE (0xffff)
27
+ #define TIMER_1_CLKEN () RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, ENABLE)
28
+ #define TIMER_1_ISR TIM3_IRQHandler
29
+ #define TIMER_1_IRQCHAN TIM3_IRQn
30
+ #define TIMER_1_IRQ_PRIO 1
31
+
32
+ #endif /* __PERIPH_CONF_H */
You can’t perform that action at this time.
0 commit comments