mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Issue proper IOConfigGPIOAF for non-F1 targets
This commit is contained in:
parent
ab44ad8811
commit
503b8dbbfe
1 changed files with 3 additions and 3 deletions
|
@ -108,10 +108,10 @@ void cameraControlInit()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_HAL_DRIVER
|
#ifdef STM32F1
|
||||||
IOConfigGPIOAF(cameraControlRuntime.io, IOCFG_AF_PP, timerHardware->alternateFunction);
|
IOConfigGPIO(cameraControlRuntime.io, IOCFG_AF_PP);
|
||||||
#else
|
#else
|
||||||
IOConfigGPIO(cameraControlRuntime.io, IOCFG_AF_PP);
|
IOConfigGPIOAF(cameraControlRuntime.io, IOCFG_AF_PP, timerHardware->alternateFunction);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pwmOutConfig(&cameraControlRuntime.channel, timerHardware, CAMERA_CONTROL_TIMER_HZ, CAMERA_CONTROL_PWM_RESOLUTION, 0, 0);
|
pwmOutConfig(&cameraControlRuntime.channel, timerHardware, CAMERA_CONTROL_TIMER_HZ, CAMERA_CONTROL_PWM_RESOLUTION, 0, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue