1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

Issue proper IOConfigGPIOAF for non-F1 targets

This commit is contained in:
jflyper 2017-09-20 12:11:23 +09:00
parent ab44ad8811
commit 503b8dbbfe

View file

@ -108,10 +108,10 @@ void cameraControlInit()
return;
}
#ifdef USE_HAL_DRIVER
IOConfigGPIOAF(cameraControlRuntime.io, IOCFG_AF_PP, timerHardware->alternateFunction);
#ifdef STM32F1
IOConfigGPIO(cameraControlRuntime.io, IOCFG_AF_PP);
#else
IOConfigGPIO(cameraControlRuntime.io, IOCFG_AF_PP);
IOConfigGPIOAF(cameraControlRuntime.io, IOCFG_AF_PP, timerHardware->alternateFunction);
#endif
pwmOutConfig(&cameraControlRuntime.channel, timerHardware, CAMERA_CONTROL_TIMER_HZ, CAMERA_CONTROL_PWM_RESOLUTION, 0, 0);