1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

serial: add writeBuf() and implement for USB.

This lets USB send up to 32 bytes in a frame instead of 32 one byte
frames.  Add a fallback for drivers that don't implement writeBuf().

Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
Michael Hope 2015-07-21 21:23:59 +02:00 committed by borisbstyle
parent 75c86825f7
commit 96306ff9ab
6 changed files with 36 additions and 61 deletions

View file

@ -479,9 +479,8 @@ const struct serialPortVTable softSerialVTable[] = {
softSerialSetBaudRate,
isSoftSerialTransmitBufferEmpty,
softSerialSetMode,
.beginWrite = NULL,
.endWrite = NULL,
}
.writeBuf = NULL,
}
};
#endif