fmu-v5 timer_config: timer io channels for FMU_CH7/8

This commit is contained in:
Simone Guscetti 2017-05-19 11:50:39 +02:00 committed by David Sidrane
parent a4d8bf56cc
commit a00441ecf4
1 changed files with 16 additions and 0 deletions

View File

@ -154,6 +154,22 @@ __EXPORT const timer_io_channels_t timer_io_channels[MAX_TIMER_IO_CHANNELS] = {
.timer_channel = 3,
.ccr_offset = STM32_GTIM_CCR3_OFFSET,
.masks = GTIM_SR_CC3IF | GTIM_SR_CC3OF
},
{
.gpio_out = GPIO_TIM12_CH1OUT,
.gpio_in = GPIO_TIM12_CH1IN,
.timer_index = 2,
.timer_channel = 1,
.ccr_offset = STM32_GTIM_CCR1_OFFSET, // TODO: need revision
.masks = GTIM_SR_CC1IF | GTIM_SR_CC1OF // TODO: need revision
},
{
.gpio_out = GPIO_TIM12_CH2OUT,
.gpio_in = GPIO_TIM12_CH2IN,
.timer_index = 2,
.timer_channel = 2,
.ccr_offset = STM32_GTIM_CCR2_OFFSET, // TODO: need revision
.masks = GTIM_SR_CC2IF | GTIM_SR_CC2OF // TODO: need revision
}
};