machine/usbcdc: remove remaining heap allocations for USB CDC implementations

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2021-04-20 10:48:43 +02:00
committed by Ron Evans
parent 321488dcfe
commit b661882391
4 changed files with 42 additions and 20 deletions
+4
View File
@@ -12,6 +12,8 @@ const deviceDescriptorSize = 18
var (
errUSBCDCBufferEmpty = errors.New("USB-CDC buffer empty")
errUSBCDCWriteByteTimeout = errors.New("USB-CDC write byte timeout")
errUSBCDCReadTimeout = errors.New("USB-CDC read timeout")
errUSBCDCBytesRead = errors.New("USB-CDC invalid number of bytes read")
)
// DeviceDescriptor implements the USB standard device descriptor.
@@ -405,6 +407,8 @@ type MSCDescriptor struct {
out EndpointDescriptor
}
const cdcLineInfoSize = 7
type cdcLineInfo struct {
dwDTERate uint32
bCharFormat uint8