aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/runtime_atsamd51.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/runtime/runtime_atsamd51.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/runtime/runtime_atsamd51.go')
-rw-r--r--src/runtime/runtime_atsamd51.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/runtime_atsamd51.go b/src/runtime/runtime_atsamd51.go
index cb29d9650..f1e585ee2 100644
--- a/src/runtime/runtime_atsamd51.go
+++ b/src/runtime/runtime_atsamd51.go
@@ -7,6 +7,7 @@ import (
"device/arm"
"device/sam"
"machine"
+ "machine/usb/cdc"
"runtime/interrupt"
"runtime/volatile"
)
@@ -28,6 +29,7 @@ func init() {
initUSBClock()
initADCClock()
+ cdc.EnableUSBCDC()
machine.USBDev.Configure(machine.UARTConfig{})
machine.InitSerial()
}