aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/usb/cdc/usbcdc.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine/usb/cdc/usbcdc.go')
-rw-r--r--src/machine/usb/cdc/usbcdc.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/machine/usb/cdc/usbcdc.go b/src/machine/usb/cdc/usbcdc.go
index a21089688..b341f4948 100644
--- a/src/machine/usb/cdc/usbcdc.go
+++ b/src/machine/usb/cdc/usbcdc.go
@@ -3,6 +3,7 @@ package cdc
import (
"errors"
"machine"
+ "machine/usb"
"runtime/interrupt"
)
@@ -128,7 +129,7 @@ func cdcCallbackRx(b []byte) {
}
}
-func cdcSetup(setup machine.USBSetup) bool {
+func cdcSetup(setup usb.Setup) bool {
if setup.BmRequestType == usb_REQUEST_DEVICETOHOST_CLASS_INTERFACE {
if setup.BRequest == usb_CDC_GET_LINE_CODING {
var b [cdcLineInfoSize]byte