mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 15:03:41 +00:00
serial: use common initialization for serial
This commit is contained in:
@@ -48,7 +48,7 @@ func main() {
|
||||
rom_i2c_writeReg(103, 4, 2, 145)
|
||||
|
||||
// Initialize UART.
|
||||
machine.Serial.Configure(machine.UARTConfig{})
|
||||
machine.InitSerial()
|
||||
|
||||
// Initialize timer. Bits:
|
||||
// ENABLE: timer enable
|
||||
|
||||
Reference in New Issue
Block a user