esp32s3-usbserial: move InitSerial to init method

This commit is contained in:
Dima Jolkin
2026-02-17 19:31:48 +02:00
committed by Ron Evans
parent 44ca224056
commit 610dd19c40
2 changed files with 10 additions and 7 deletions
+5 -4
View File
@@ -54,10 +54,6 @@ func main() {
// Configure interrupt handler
interruptInit()
// Initialize UART.
machine.USBCDC.Configure(machine.UARTConfig{})
machine.InitSerial()
// Initialize main system timer used for time.Now.
initTimer()
@@ -68,6 +64,11 @@ func main() {
exit(0)
}
func init() {
// Initialize UART.
machine.InitSerial()
}
func abort() {
// lock up forever
for {
+5 -3
View File
@@ -72,9 +72,6 @@ func main() {
clearbss()
}
// Initialize UART.
machine.InitSerial()
// Initialize main system timer used for time.Now.
initTimer()
@@ -85,6 +82,11 @@ func main() {
exit(0)
}
func init() {
// Initialize UART.
machine.InitSerial()
}
func abort() {
// lock up forever
print("abort called\n")