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:
parent
75c86825f7
commit
96306ff9ab
6 changed files with 36 additions and 61 deletions
|
@ -479,9 +479,8 @@ const struct serialPortVTable softSerialVTable[] = {
|
|||
softSerialSetBaudRate,
|
||||
isSoftSerialTransmitBufferEmpty,
|
||||
softSerialSetMode,
|
||||
.beginWrite = NULL,
|
||||
.endWrite = NULL,
|
||||
}
|
||||
.writeBuf = NULL,
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue