1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

STM32F303 - Skip UART3 pins in PWM mapping when UART3 is used.

This commit is contained in:
Dominic Clifton 2015-05-06 20:36:52 +01:00
parent 6f2b4f17f8
commit c0aec95e14
3 changed files with 12 additions and 0 deletions

View file

@ -200,6 +200,9 @@ void init(void)
pwm_params.airplane = false;
#if defined(USE_USART2) && defined(STM32F10X)
pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
#endif
#ifdef STM32F303xC
pwm_params.useUART3 = doesConfigurationUsePort(SERIAL_PORT_USART3);
#endif
pwm_params.useVbat = feature(FEATURE_VBAT);
pwm_params.useSoftSerial = feature(FEATURE_SOFTSERIAL);