Fixed camera pin flag.

This commit is contained in:
mikeller 2018-08-11 14:35:18 +12:00
parent 430379016e
commit cf367eae2c
2 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ typedef enum {
TIM_USE_LED = 0x10,
TIM_USE_TRANSPONDER = 0x20,
TIM_USE_BEEPER = 0x40,
TIM_USE_CAMERA_CONTROL = 0x40,
TIM_USE_CAMERA_CONTROL = 0x80,
} timerUsageFlag_e;
// use different types from capture and overflow - multiple overflow handlers are implemented as linked list

View File

@ -39,7 +39,7 @@ const timerHardware_t timerHardware[USABLE_TIMER_CHANNEL_COUNT] = {
#endif
DEF_TIM(TIM4, CH4, PB9, TIM_USE_PPM, 0, 0 ), // PPM IN
#if defined(FF_FORTINIF4_REV03)
DEF_TIM(TIM4, CH2, PB7, TIM_USE_CAM, 0, 0 ), // FC CAM - DMA1_ST3
DEF_TIM(TIM4, CH2, PB7, TIM_USE_CAMERA_CONTROL, 0, 0 ), // FC CAM - DMA1_ST3
DEF_TIM(TIM4, CH1, PB6, TIM_USE_LED, 0, 0 ), // LED - DMA1_ST0
#else
DEF_TIM(TIM4, CH2, PB7, TIM_USE_LED | TIM_USE_CAMERA_CONTROL, 0, 0 ), // LED - DMA1_ST3