Skip to content
Snippets Groups Projects
Select Git revision
  • c2074e7b66a042492604fbf9ea80b71cdf848e93
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

mphalport.h

Blame
  • user avatar
    Nicko van Someren authored and Damien George committed
    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.
    14ab81e8
    History
    mphalport.h 3.28 KiB