USB CDC-ACM UART Rx/Tx functioning for baseline target (Teensy 4.0/4.1)

This commit is contained in:
ardnew
2021-04-20 16:35:59 -05:00
parent 84e61c183a
commit 733da1226d
11 changed files with 455 additions and 245 deletions
+3 -4
View File
@@ -125,13 +125,12 @@ func initUART() {
}
func initUSB() {
machine.USBCDC0.Configure(machine.UARTConfig{})
machine.UART0.Configure(machine.UARTConfig{})
}
func putchar(c byte) {
// ** TESTING: print byte to both serial UART interfaces **
//machine.USBCDC0.WriteByte(c) // print to USB UART
machine.UART1.WriteByte(c) // print to hardware UART
machine.UART0.WriteByte(c) // print to USB UART
// machine.UART1.WriteByte(c) // print to hardware UART
}
func abort() {