diff options
author | Daniël van de Giessen <daniel@dvdgiessen.nl> | 2025-04-22 17:12:26 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-06-05 16:39:13 +1000 |
commit | bf909303ffaf64140f69f2c4696fad82dec01d9f (patch) | |
tree | 4e77768a9a0fe785dafd41bd880612705bdd329f /unix/scripts/upip.py | |
parent | 5b340b12b8ac8498838e0df73ff491bc2d105b46 (diff) | |
download | micropython-bf909303ffaf64140f69f2c4696fad82dec01d9f.tar.gz micropython-bf909303ffaf64140f69f2c4696fad82dec01d9f.zip |
esp32/machine_timer: Do not free interrupt from ISR.
esp_intr_free is not safe to call from the timer ISR because it requires
the current task (the one the ISR interrupted) to be pinned to the same
core as the interrupt was allocated on. Merely disabling the ISR however is
safe since that only requires that we're currently running on the same core
(which the ISR always is), regardless of the current task.
This was causing deadlocks in machine_uart when the ISR happened to
interrupt a task that was not pinned to a specific core.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'unix/scripts/upip.py')
0 files changed, 0 insertions, 0 deletions