mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
commit
51574338e8
3 changed files with 12 additions and 3 deletions
|
@ -287,8 +287,9 @@ void init(void)
|
||||||
pwm_params.airplane = true;
|
pwm_params.airplane = true;
|
||||||
else
|
else
|
||||||
pwm_params.airplane = false;
|
pwm_params.airplane = false;
|
||||||
|
#ifdef STM32F10X
|
||||||
pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
|
pwm_params.useUART2 = doesConfigurationUsePort(SERIAL_PORT_USART2);
|
||||||
|
#endif
|
||||||
pwm_params.useVbat = feature(FEATURE_VBAT);
|
pwm_params.useVbat = feature(FEATURE_VBAT);
|
||||||
pwm_params.useSoftSerial = feature(FEATURE_SOFTSERIAL);
|
pwm_params.useSoftSerial = feature(FEATURE_SOFTSERIAL);
|
||||||
pwm_params.useParallelPWM = feature(FEATURE_RX_PARALLEL_PWM);
|
pwm_params.useParallelPWM = feature(FEATURE_RX_PARALLEL_PWM);
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#define TARGET_BOARD_IDENTIFIER "MASSIVEF3"
|
||||||
|
|
||||||
#define LED0_GPIO GPIOE
|
#define LED0_GPIO GPIOE
|
||||||
#define LED0_PIN Pin_8|Pin_12 // Blue LEDs - PE8/PE12
|
#define LED0_PIN Pin_8|Pin_12 // Blue LEDs - PE8/PE12
|
||||||
#define LED0_PERIPHERAL RCC_AHBPeriph_GPIOE
|
#define LED0_PERIPHERAL RCC_AHBPeriph_GPIOE
|
||||||
|
|
|
@ -270,10 +270,16 @@ void configureHoTTTelemetryPort(void)
|
||||||
// FIXME only need to do this if the port is shared
|
// FIXME only need to do this if the port is shared
|
||||||
previousPortMode = hottPort->mode;
|
previousPortMode = hottPort->mode;
|
||||||
previousBaudRate = hottPort->baudRate;
|
previousBaudRate = hottPort->baudRate;
|
||||||
|
#ifdef USE_SOFTSERIAL1
|
||||||
if (hottPort->identifier == SERIAL_PORT_SOFTSERIAL1 || hottPort->identifier == SERIAL_PORT_SOFTSERIAL2) {
|
if (hottPort->identifier == SERIAL_PORT_SOFTSERIAL1) {
|
||||||
useSoftserialRxFailureWorkaround = true;
|
useSoftserialRxFailureWorkaround = true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#ifdef USE_SOFTSERIAL2
|
||||||
|
if (hottPort->identifier == SERIAL_PORT_SOFTSERIAL2) {
|
||||||
|
useSoftserialRxFailureWorkaround = true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue