Files
tinygo/src/machine
deadprogram 0e84235f9a machine/esp32s3,esp32c3: add txStalled flag to skip USB serial spin when no host
When no USB host is reading, flushAndWait() spins 50K iterations per
FIFO-full event. With putchar calling WriteByte per byte, the cumulative
delay starves I2C and other peripherals, freezing displays.

Add a txStalled flag: the first FIFO-full triggers one flushAndWait
attempt. If it fails (no host), txStalled is set and all subsequent
writes return immediately with no spin — just a register read and a
bool check. When a host reconnects, SERIAL_IN_EP_DATA_FREE goes back
to 1, bypassing the stall path and clearing the flag automatically.
2026-04-14 18:26:30 +01:00
..
2023-05-09 19:51:05 +02:00
2023-06-01 21:04:36 +02:00
2026-04-05 14:15:40 +02:00
2026-04-05 14:15:40 +02:00
2024-12-18 19:36:30 +01:00
2023-12-03 12:55:22 +01:00
2026-04-05 14:15:40 +02:00
2023-05-20 21:18:02 +02:00
2026-04-05 14:15:40 +02:00
2026-04-05 14:15:40 +02:00
2023-07-16 10:27:33 +02:00
2024-12-18 19:36:30 +01:00
2024-12-18 19:36:30 +01:00
2021-04-06 20:36:10 +02:00
2024-12-18 19:36:30 +01:00
2026-01-03 10:59:50 +00:00
2025-03-11 04:22:16 -07:00
2025-05-25 10:01:43 +02:00