#include #include #include #include #include #include #include #include "system.h" #define TAG "SYSTEM" void wait_msec(uint16_t v) { vTaskDelay(v / portTICK_PERIOD_MS); } void wait_sec(uint16_t v) { vTaskDelay(v * 1000 / portTICK_PERIOD_MS); } void disp_infos() { /* Print memory information */ ESP_LOGI(TAG, "task %s stack high watermark: %d Bytes", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); ESP_LOGI(TAG, "heap left: %d Bytes", esp_get_free_heap_size()); }