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

Tidied UART enum definitions

This commit is contained in:
Martin Budden 2017-07-29 12:34:27 +01:00
parent bacc6e6fb1
commit 944fe0761c
34 changed files with 65 additions and 73 deletions

View file

@ -236,7 +236,7 @@ static void resetBuffers(softSerial_t *softSerial)
softSerial->port.txBufferHead = 0;
}
serialPort_t *openSoftSerial(softSerialPortIndex_e portIndex, serialReceiveCallbackPtr rxCallback, uint32_t baud, portMode_t mode, portOptions_t options)
serialPort_t *openSoftSerial(softSerialPortIndex_e portIndex, serialReceiveCallbackPtr rxCallback, uint32_t baud, portMode_e mode, portOptions_e options)
{
softSerial_t *softSerial = &(softSerialPorts[portIndex]);
@ -615,7 +615,7 @@ void softSerialSetBaudRate(serialPort_t *s, uint32_t baudRate)
serialTimerConfigureTimebase(softSerial->timerHardware, baudRate);
}
void softSerialSetMode(serialPort_t *instance, portMode_t mode)
void softSerialSetMode(serialPort_t *instance, portMode_e mode)
{
instance->mode = mode;
}