aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/serial-usb.go
diff options
context:
space:
mode:
authorsago35 <[email protected]>2022-07-10 18:33:52 +0900
committerGitHub <[email protected]>2022-07-10 11:33:52 +0200
commitd434058aefffeb450d71313f7144a82eceba60c8 (patch)
treea066d0742e9f9fc71ce5db2fbbac09749f1ec630 /src/machine/serial-usb.go
parent56780c26917647900bda67018a22c962bce2333a (diff)
downloadtinygo-d434058aefffeb450d71313f7144a82eceba60c8.tar.gz
tinygo-d434058aefffeb450d71313f7144a82eceba60c8.zip
samd21,samd51,nrf52840: move usbcdc to machine/usb/cdc (#2972)
* samd21,samd51,nrf52840: move usbcdc to machine/usb/cdc
Diffstat (limited to 'src/machine/serial-usb.go')
-rw-r--r--src/machine/serial-usb.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/machine/serial-usb.go b/src/machine/serial-usb.go
index 0bec8e297..702cab1ee 100644
--- a/src/machine/serial-usb.go
+++ b/src/machine/serial-usb.go
@@ -4,7 +4,8 @@
package machine
// Serial is implemented via USB (USB-CDC).
-var Serial = USB
+var Serial Serialer
func InitSerial() {
+ Serial = USBCDC
}