rp2040: add support for usb (#2973)

* rp2040: add support for usb
This commit is contained in:
sago35
2022-07-12 22:41:56 +09:00
committed by GitHub
parent d434058aef
commit 0bc7c2a61f
4 changed files with 364 additions and 5 deletions
+3 -1
View File
@@ -5,8 +5,8 @@ package runtime
import (
"device/arm"
"machine"
"machine/usb/cdc"
)
// machineTicks is provided by package machine.
@@ -76,6 +76,8 @@ func machineInit()
func init() {
machineInit()
cdc.EnableUSBCDC()
machine.USBDev.Configure(machine.UARTConfig{})
machine.InitSerial()
}