summaryrefslogtreecommitdiff
path: root/mpy-cross/main.c
diff options
context:
space:
mode:
authorDaniël van de Giessen <daniel@dvdgiessen.nl>2023-07-04 15:35:29 +0200
committerDamien George <damien@micropython.org>2023-07-24 23:29:53 +1000
commit52dc48b2a0da912396bd3224cd9c906f4e6288ee (patch)
treef3677c6c52800595f6a5747d6dc20e88cde69043 /mpy-cross/main.c
parent1bde5f3316f4d0e4733b5b4b395a4d341b2392f1 (diff)
esp32/machine_wdt: Allow feeding WDT from threads.
This changes the ESP32 WDT implementation to use a custom handle so that it becomes possible to reset the WDT from a thread. By default esp_task_wdt_add subscribes the task_id of the current task. That means that if we're running in a different task we are unable to reset the WDT, which prevents feeding the WDT from a thread directly, or even from a timer (which may randomly run in a different task when there's multiple threads). As an added bonus, the name we set makes the error clearly specify that it was the user-specified WDT that reset the chip. Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
Diffstat (limited to 'mpy-cross/main.c')
0 files changed, 0 insertions, 0 deletions