Fixed Channel mapping

This commit is contained in:
David Sidrane
2016-02-04 08:56:07 +01:00
committed by Lorenz Meier
parent 7541aecd18
commit 0bde2b6fa3
2 changed files with 8 additions and 8 deletions
@@ -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,
} }