From 4a9ef4754ebb78a9a60a281fc697af915217a910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Fri, 21 Feb 2025 12:22:48 +0100 Subject: [PATCH] Explain yielding --- esp-wifi/src/preempt_builtin/timer/xtensa.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esp-wifi/src/preempt_builtin/timer/xtensa.rs b/esp-wifi/src/preempt_builtin/timer/xtensa.rs index 7c1f01cfbe..d6be4b3078 100644 --- a/esp-wifi/src/preempt_builtin/timer/xtensa.rs +++ b/esp-wifi/src/preempt_builtin/timer/xtensa.rs @@ -62,6 +62,8 @@ extern "C" fn timer_tick_handler() { timer.clear_interrupt(); }); + // For unknown reasons, task_switch would end up generating an exception when + // called at priority 1, so trigger the level 3 interrupt instead. yield_task(); }