|
|
|
@ -60,6 +60,13 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
@@ -60,6 +60,13 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
|
|
|
|
|
.last_channel_index = 3, |
|
|
|
|
.handler = io_timer_handler0, |
|
|
|
|
.vectorno = STM32_IRQ_TIM1CC, |
|
|
|
|
.dshot = { |
|
|
|
|
.dma_base = DSHOT_DMA2_BASE, |
|
|
|
|
.channel = DShot_Channel6, |
|
|
|
|
.stream = DShot_Stream5, |
|
|
|
|
.start_ccr_register = TIM_DMABASE_CCR1, |
|
|
|
|
.channels_number = 4u /* CCR1, CCR2, CCR3 and CCR4 */ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
@ -71,6 +78,13 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
@@ -71,6 +78,13 @@ __EXPORT const io_timers_t io_timers[MAX_IO_TIMERS] = {
|
|
|
|
|
.last_channel_index = 5, |
|
|
|
|
.handler = io_timer_handler1, |
|
|
|
|
.vectorno = STM32_IRQ_TIM4, |
|
|
|
|
.dshot = { |
|
|
|
|
.dma_base = DSHOT_DMA1_BASE, |
|
|
|
|
.channel = DShot_Channel2, |
|
|
|
|
.stream = DShot_Stream6, |
|
|
|
|
.start_ccr_register = TIM_DMABASE_CCR2, |
|
|
|
|
.channels_number = 2u /* CCR2 and CCR3 */ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|