// SPDX-License-Identifier: Apache-2.0 #pragma once #ifdef ESP_PLATFORM #include #include #else #include #include #endif #include struct SemaphoreHandleDeleter { static void operator()(QueueHandle_t handleToDelete) { assert(xPortInIsrContext() == pdFALSE); vSemaphoreDelete(handleToDelete); } };