mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-02 19:33:01 +02:00
Add core0 loop yield hint
This commit is contained in:
@@ -132,6 +132,10 @@ static void core0_loop(void *arg) {
|
|||||||
hwrng_task();
|
hwrng_task();
|
||||||
flash_task();
|
flash_task();
|
||||||
button_task();
|
button_task();
|
||||||
|
#ifdef PICO_PLATFORM
|
||||||
|
// Avoid a pure busy loop on core0; gives the system a scheduling hint.
|
||||||
|
tight_loop_contents();
|
||||||
|
#endif
|
||||||
#ifdef ESP_PLATFORM
|
#ifdef ESP_PLATFORM
|
||||||
vTaskDelay(pdMS_TO_TICKS(10));
|
vTaskDelay(pdMS_TO_TICKS(10));
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user