cryptnox-sdk-esp32 1.0.0
ESP32 SDK for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
ESP32Platform.cpp
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: LGPL-3.0-or-later
3 * Copyright (c) 2026 Cryptnox SA
4 */
5
14
15#include "ESP32Platform.h"
16#include <freertos/FreeRTOS.h>
17#include <freertos/task.h>
18
20void ESP32Platform::sleep_ms(uint32_t ms) {
21 vTaskDelay(pdMS_TO_TICKS(static_cast<TickType_t>(ms)));
22}
CW_Platform implementation for ESP32 using FreeRTOS.
void sleep_ms(uint32_t ms) override
Sleep for at least ms milliseconds.