mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
Allow the user to specify their serial port scenarios.
This commit is contained in:
parent
5043370b2f
commit
0fd127bf60
8 changed files with 258 additions and 50 deletions
|
@ -155,6 +155,7 @@ void resetBuffers(softSerial_t *softSerial)
|
|||
void initialiseSoftSerial(softSerial_t *softSerial, uint8_t portIndex, uint32_t baud, serialInversion_e inversion)
|
||||
{
|
||||
softSerial->port.vTable = softSerialVTable;
|
||||
softSerial->port.baudRate = baud;
|
||||
softSerial->port.mode = MODE_RXTX;
|
||||
softSerial->port.inversion = inversion;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue