diff options
author | Nicko van Someren <nicko@nicko.org> | 2018-07-01 20:27:10 -0600 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-07-04 10:49:37 +1000 |
commit | 14ab81e87accedfb9ed231b206dd21f3a0143404 (patch) | |
tree | 1d02c23fb94d9fedfa27bac5c39ffe757bef6adc /py/asmarm.c | |
parent | bccf9d3dcfd000b81b89b9ef862f9bc6104df99d (diff) | |
download | micropython-14ab81e87accedfb9ed231b206dd21f3a0143404.tar.gz micropython-14ab81e87accedfb9ed231b206dd21f3a0143404.zip |
esp32: Reduce latency for handling of scheduled Python callbacks.
Prior to this patch there was a large latency for executing scheduled
callbacks when when Python code is sleeping: at the heart of the
implementation of sleep_ms() is a call to vTaskDelay(1), which always
sleeps for one 100Hz tick, before performing another call to
MICROPY_EVENT_POLL_HOOK.
This patch fixes this issue by using FreeRTOS Task Notifications to signal
the main thread that a new callback is pending.
Diffstat (limited to 'py/asmarm.c')
0 files changed, 0 insertions, 0 deletions