mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 14:03:39 +00:00
USB CDC-ACM UART Rx/Tx functioning for baseline target (Teensy 4.0/4.1)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user