|
cryptnox-sdk-esp32 1.0.0
ESP32 SDK for Cryptnox Hardware Wallet
|
CW_Platform backed by FreeRTOS vTaskDelay.
More...
#include <ESP32Platform.h>
Public Member Functions | |
| void | sleep_ms (uint32_t ms) override |
Sleep for at least ms milliseconds. | |
| ~ESP32Platform () override | |
| Default destructor. | |
CW_Platform backed by FreeRTOS vTaskDelay.
The sleep_ms implementation delegates to vTaskDelay(pdMS_TO_TICKS(ms)), yielding the calling FreeRTOS task to the scheduler for at least the requested duration. The actual sleep may be slightly longer than ms due to tick granularity.
Definition at line 38 of file ESP32Platform.h.
|
inlineoverride |
Default destructor.
Definition at line 52 of file ESP32Platform.h.
|
override |
Sleep for at least ms milliseconds.
Yield to the FreeRTOS scheduler for at least ms milliseconds.
Calls vTaskDelay(pdMS_TO_TICKS(ms)). The calling FreeRTOS task is blocked and yields the CPU to other ready tasks for the duration.
| [in] | ms | Minimum sleep duration in milliseconds. A value of 0 yields once to the scheduler without a guaranteed delay. |
Definition at line 20 of file ESP32Platform.cpp.