fix(swan_r5):fixes timer definitions in the array. Requires padding to match peripheral with interrupt handler index.
This commit is contained in:
parent
7b7b4997a4
commit
8a3fb7bd13
@ -167,7 +167,7 @@ const mcu_periph_obj_t mcu_uart_rx_list[UART_RX_ARRAY_LEN] = {
|
|||||||
|
|
||||||
// Timers
|
// Timers
|
||||||
// TIM6 and TIM7 are basic timers that are only used by DAC, and don't have pins
|
// TIM6 and TIM7 are basic timers that are only used by DAC, and don't have pins
|
||||||
TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN] = {TIM1, TIM2, TIM3, TIM4, TIM5, TIM15, TIM16};
|
TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN] = {TIM1, TIM2, TIM3, TIM4, TIM5, NULL, NULL, TIM8, /*TIM9*/NULL, NULL, NULL, NULL, NULL, NULL, TIM15, TIM16, TIM17};
|
||||||
|
|
||||||
const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN] = {
|
const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN] = {
|
||||||
TIM(2, 1, 1, &pin_PA00),
|
TIM(2, 1, 1, &pin_PA00),
|
||||||
|
@ -56,7 +56,7 @@ extern const mcu_periph_obj_t mcu_uart_tx_list[UART_TX_ARRAY_LEN];
|
|||||||
extern const mcu_periph_obj_t mcu_uart_rx_list[UART_RX_ARRAY_LEN];
|
extern const mcu_periph_obj_t mcu_uart_rx_list[UART_RX_ARRAY_LEN];
|
||||||
|
|
||||||
// Timers
|
// Timers
|
||||||
#define TIM_BANK_ARRAY_LEN 7
|
#define TIM_BANK_ARRAY_LEN 17
|
||||||
#define TIM_PIN_ARRAY_LEN (73-3)
|
#define TIM_PIN_ARRAY_LEN (73-3)
|
||||||
extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN];
|
extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN];
|
||||||
extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN];
|
extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user