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

Rename USART4/5 to UART4/5

This commit avoids compilation errors when INVERTER_PIN_USART4/5 is set.
This commit is contained in:
Maxim Strinzha 2017-02-27 17:10:05 +03:00
parent b64832f05b
commit 499e74efa4
7 changed files with 26 additions and 26 deletions

View file

@ -70,10 +70,10 @@ const serialPortIdentifier_e serialPortIdentifiers[SERIAL_PORT_COUNT] = {
SERIAL_PORT_USART3,
#endif
#ifdef USE_UART4
SERIAL_PORT_USART4,
SERIAL_PORT_UART4,
#endif
#ifdef USE_UART5
SERIAL_PORT_USART5,
SERIAL_PORT_UART5,
#endif
#ifdef USE_UART6
SERIAL_PORT_USART6,
@ -355,12 +355,12 @@ serialPort_t *openSerialPort(
break;
#endif
#ifdef USE_UART4
case SERIAL_PORT_USART4:
case SERIAL_PORT_UART4:
serialPort = uartOpen(UART4, rxCallback, baudRate, mode, options);
break;
#endif
#ifdef USE_UART5
case SERIAL_PORT_USART5:
case SERIAL_PORT_UART5:
serialPort = uartOpen(UART5, rxCallback, baudRate, mode, options);
break;
#endif