1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

SoftSerial port for CC3D

This commit is contained in:
Pierre-A 2014-10-19 11:20:55 +02:00
parent 63236d5a2a
commit 20c4dae7c2
7 changed files with 44 additions and 6 deletions

View file

@ -283,11 +283,17 @@ pwmOutputConfiguration_t *pwmInit(drv_pwm_config_t *init)
continue;
#endif
#ifdef CC3D
// skip SoftSerial port
if (init->useSoftSerial && (timerIndex == PWM3 || timerIndex == PWM4))
continue;
else
#ifdef STM32F10X
// skip softSerial ports
if (init->useSoftSerial && (timerIndex == PWM5 || timerIndex == PWM6 || timerIndex == PWM7 || timerIndex == PWM8))
continue;
#endif
#endif
#ifdef CHEBUZZF3
// skip softSerial ports