mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Merge pull request #3097 from jflyper/bfdev-uart-refactor-and-configurable
UART refactor and configurable
This commit is contained in:
commit
671d453709
15 changed files with 1573 additions and 1597 deletions
|
@ -282,6 +282,10 @@ void init(void)
|
|||
busSwitchInit();
|
||||
#endif
|
||||
|
||||
#if defined(USE_UART) && !defined(SITL)
|
||||
uartPinConfigure(serialPinConfig());
|
||||
#endif
|
||||
|
||||
#if defined(AVOID_UART1_FOR_PWM_PPM)
|
||||
serialInit(feature(FEATURE_SOFTSERIAL),
|
||||
feature(FEATURE_RX_PPM) || feature(FEATURE_RX_PARALLEL_PWM) ? SERIAL_PORT_USART1 : SERIAL_PORT_NONE);
|
||||
|
@ -339,7 +343,7 @@ void init(void)
|
|||
beeperInit(beeperDevConfig());
|
||||
#endif
|
||||
/* temp until PGs are implemented. */
|
||||
#ifdef USE_INVERTER
|
||||
#if defined(USE_INVERTER) && !defined(SITL)
|
||||
initInverters(serialPinConfig());
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue