set default Teensy 4.0 USB configuration to USB serial

This commit is contained in:
ardnew
2022-01-14 17:00:41 -06:00
committed by sago35
parent 4b8b4243ec
commit 67e68e484f
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -110,9 +110,9 @@ func init() {
// | USB |
// #=====================================================#
var (
// UART0 = usb.UART{Port: 0}
HID0 = usb.HID{Port: 0}
UART0 = &UART1
UART0 = usb.UART{Port: 0}
// HID0 = usb.HID{Port: 0}
// UART0 = &UART1
)
// #=====================================================#
+2 -2
View File
@@ -125,8 +125,8 @@ func initUART() {
}
func initUSB() {
machine.HID0.Configure(usb.HIDConfig{})
// machine.UART0.Configure(usb.UARTConfig{})
// machine.HID0.Configure(usb.HIDConfig{})
machine.UART0.Configure(usb.UARTConfig{})
}
func putchar(c byte) {