mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 07:03:34 +08:00
Fixed Channel mapping
This commit is contained in:
committed by
Lorenz Meier
parent
7541aecd18
commit
0bde2b6fa3
@@ -66,8 +66,8 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
|
|||||||
.clock_register = STM32_RCC_APB1ENR,
|
.clock_register = STM32_RCC_APB1ENR,
|
||||||
.clock_bit = RCC_APB1ENR_TIM3EN,
|
.clock_bit = RCC_APB1ENR_TIM3EN,
|
||||||
.clock_freq = STM32_APB1_TIM3_CLKIN,
|
.clock_freq = STM32_APB1_TIM3_CLKIN,
|
||||||
.first_channel_index = 2,
|
.first_channel_index = 4,
|
||||||
.last_channel_index = 3,
|
.last_channel_index = 7,
|
||||||
.handler = io_timer_handler1,
|
.handler = io_timer_handler1,
|
||||||
.vectorno = STM32_IRQ_TIM3,
|
.vectorno = STM32_IRQ_TIM3,
|
||||||
},
|
},
|
||||||
@@ -76,8 +76,8 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
|
|||||||
.clock_register = STM32_RCC_APB1ENR,
|
.clock_register = STM32_RCC_APB1ENR,
|
||||||
.clock_bit = RCC_APB1ENR_TIM4EN,
|
.clock_bit = RCC_APB1ENR_TIM4EN,
|
||||||
.clock_freq = STM32_APB1_TIM4_CLKIN,
|
.clock_freq = STM32_APB1_TIM4_CLKIN,
|
||||||
.first_channel_index = 4,
|
.first_channel_index = 2,
|
||||||
.last_channel_index = 7,
|
.last_channel_index = 3,
|
||||||
.handler = io_timer_handler2,
|
.handler = io_timer_handler2,
|
||||||
.vectorno = STM32_IRQ_TIM4,
|
.vectorno = STM32_IRQ_TIM4,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
|
|||||||
.clock_register = STM32_RCC_APB1ENR,
|
.clock_register = STM32_RCC_APB1ENR,
|
||||||
.clock_bit = RCC_APB1ENR_TIM3EN,
|
.clock_bit = RCC_APB1ENR_TIM3EN,
|
||||||
.clock_freq = STM32_APB1_TIM3_CLKIN,
|
.clock_freq = STM32_APB1_TIM3_CLKIN,
|
||||||
.first_channel_index = 2,
|
.first_channel_index = 4,
|
||||||
.last_channel_index = 3,
|
.last_channel_index = 7,
|
||||||
.handler = io_timer_handler1,
|
.handler = io_timer_handler1,
|
||||||
.vectorno = STM32_IRQ_TIM3,
|
.vectorno = STM32_IRQ_TIM3,
|
||||||
},
|
},
|
||||||
@@ -76,8 +76,8 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
|
|||||||
.clock_register = STM32_RCC_APB1ENR,
|
.clock_register = STM32_RCC_APB1ENR,
|
||||||
.clock_bit = RCC_APB1ENR_TIM4EN,
|
.clock_bit = RCC_APB1ENR_TIM4EN,
|
||||||
.clock_freq = STM32_APB1_TIM4_CLKIN,
|
.clock_freq = STM32_APB1_TIM4_CLKIN,
|
||||||
.first_channel_index = 4,
|
.first_channel_index = 2,
|
||||||
.last_channel_index = 7,
|
.last_channel_index = 3,
|
||||||
.handler = io_timer_handler2,
|
.handler = io_timer_handler2,
|
||||||
.vectorno = STM32_IRQ_TIM4,
|
.vectorno = STM32_IRQ_TIM4,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user