mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 12:03:41 +00:00
runtime/esp32c3: use TIMG0 alarm interrupt for sleepTicks instead of busy-waiting
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user