serial: use common initialization for serial

This commit is contained in:
sago35
2022-07-05 21:53:44 +09:00
committed by Ron Evans
parent 7eaad62568
commit ff7c71c99c
22 changed files with 31 additions and 19 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ func initPeripherals() {
// Enable FPIOA peripheral.
kendryte.SYSCTL.CLK_EN_PERI.SetBits(kendryte.SYSCTL_CLK_EN_PERI_FPIOA_CLK_EN)
machine.Serial.Configure(machine.UARTConfig{})
machine.InitSerial()
}
func putchar(c byte) {