1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +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

@ -322,7 +322,6 @@ const struct serialPortVTable uartVTable[] = {
uartSetBaudRate,
isUartTransmitBufferEmpty,
uartSetMode,
.beginWrite = NULL,
.endWrite = NULL,
.writeBuf = NULL,
}
};