github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/machine/serial-uart.go (about) 1 //go:build baremetal && serial.uart 2 3 package machine 4 5 // Serial is implemented via the default (usually the first) UART on the chip. 6 var Serial = DefaultUART 7 8 func InitSerial() { 9 Serial.Configure(UARTConfig{}) 10 }