runtime/esp32c3: use TIMG0 alarm interrupt for sleepTicks instead of busy-waiting

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2026-03-22 20:34:44 +01:00
parent d2f60c02bb
commit a71f776203
5 changed files with 89 additions and 9 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ import (
// CDC-ACM serial port. The USB protocol and enumeration are handled entirely
// in hardware; software only reads/writes the EP1 FIFO.
const cpuInterruptFromUSB = 8
const cpuInterruptFromUSB = 10
// flushTimeout is the maximum number of busy-wait iterations in flush().
// Prevents hanging when no USB host is connected.