SolarEnergy/esp32_device/main/system.h

32 lines
374 B
C
Raw Permalink Normal View History

2024-07-27 14:15:35 +00:00
/**
* System functions
*/
#pragma once
2024-08-17 15:19:47 +00:00
#include "stddef.h"
2024-07-27 14:15:35 +00:00
#ifdef __cplusplus
extern "C"
{
#endif
2024-08-18 19:01:34 +00:00
/**
* Get sum of free memory in chip
*/
size_t system_show_free_memory();
2024-08-17 15:19:47 +00:00
/**
* Sleep for a given amount of time
*/
void system_sleep(size_t secs);
2024-07-27 14:15:35 +00:00
/**
* Reboot ESP32
*/
void reboot();
#ifdef __cplusplus
}
#endif