SolarEnergy/esp32_device/main/system.c

17 lines
249 B
C
Raw Normal View History

2024-07-27 14:15:35 +00:00
#include "system.h"
#include "esp_system.h"
2024-08-17 15:19:47 +00:00
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
void system_sleep(size_t secs)
{
vTaskDelay((1000 * secs) / portTICK_PERIOD_MS);
}
2024-07-27 14:15:35 +00:00
void reboot()
{
fflush(stdout);
esp_restart();
}