mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
[G4] Treat LPUART1 as UART9
This commit is contained in:
parent
0f93dc9c88
commit
fecc1a5ca8
10 changed files with 74 additions and 25 deletions
|
@ -93,6 +93,9 @@ const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = {
|
|||
#ifdef USE_UART8
|
||||
SERIAL_PORT_USART8,
|
||||
#endif
|
||||
#ifdef USE_UART9
|
||||
SERIAL_PORT_LPUART1,
|
||||
#endif
|
||||
#ifdef USE_SOFTSERIAL1
|
||||
SERIAL_PORT_SOFTSERIAL1,
|
||||
#endif
|
||||
|
@ -391,6 +394,9 @@ serialPort_t *openSerialPort(
|
|||
#ifdef USE_UART8
|
||||
case SERIAL_PORT_USART8:
|
||||
#endif
|
||||
#ifdef USE_UART9
|
||||
case SERIAL_PORT_LPUART1:
|
||||
#endif
|
||||
#if defined(SIMULATOR_BUILD)
|
||||
// emulate serial ports over TCP
|
||||
serialPort = serTcpOpen(SERIAL_PORT_IDENTIFIER_TO_UARTDEV(identifier), rxCallback, rxCallbackData, baudRate, mode, options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue