fmuv2: setup for PWM input on timer4, channel 2

This commit is contained in:
Andrew Tridgell 2015-02-21 18:15:08 +11:00 committed by Lorenz Meier
parent 086caddf73
commit 322392d853

View File

@ -207,6 +207,11 @@ __BEGIN_DECLS
#define HRT_TIMER 8 /* use timer8 for the HRT */
#define HRT_TIMER_CHANNEL 1 /* use capture/compare channel */
/* PWM input driver. Use FMU AUX5 pins attached to timer4 channel 2 */
#define PWMIN_TIMER 4
#define PWMIN_TIMER_CHANNEL 2
#define GPIO_PWM_IN GPIO_TIM4_CH2IN_2
/****************************************************************************************************
* Public Types
****************************************************************************************************/