1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-21 13:28:58 +01:00

REVONANO - Fix timers for PPM

This commit is contained in:
Stefan Karlsson 2014-12-19 20:43:26 +01:00 committed by Alessio Morale
parent 047ee1fcb0
commit 21b485aa3f
2 changed files with 2 additions and 1 deletions

View File

@ -1081,7 +1081,7 @@ static const struct pios_ppm_cfg pios_ppm_cfg = {
.TIM_ICSelection = TIM_ICSelection_DirectTI,
.TIM_ICPrescaler = TIM_ICPSC_DIV1,
.TIM_ICFilter = 0x0,
.TIM_Channel = TIM_Channel_1,
.TIM_Channel = TIM_Channel_3,
},
/* Use only the first channel for ppm */
.channels = &pios_tim_rcvrport_all_channels[0],

View File

@ -383,6 +383,7 @@ void PIOS_Board_Init(void)
/* Set up pulse timers */
PIOS_TIM_InitClock(&tim_1_cfg);
PIOS_TIM_InitClock(&tim_2_cfg);
PIOS_TIM_InitClock(&tim_3_cfg);
PIOS_TIM_InitClock(&tim_5_cfg);
PIOS_TIM_InitClock(&tim_9_cfg);