mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
esp32: Make 'restart' function independent of Wi-Fi
Restart being a lower-layer system-level function, needn't depend on the higher level Wi-Fi libraries. This also enables us to get rid of one more WIFI_ENABLED ifdef check
This commit is contained in:
@@ -49,6 +49,15 @@ void system_init(void) __attribute__ ((deprecated));
|
||||
*/
|
||||
void system_restore(void) __attribute__ ((deprecated));
|
||||
|
||||
typedef void (*shutdown_handler_t)(void);
|
||||
/**
|
||||
* @brief Register shutdown handler
|
||||
*
|
||||
* This function allows you to register a handler that gets invoked before a
|
||||
* systematic shutdown of the chip.
|
||||
*/
|
||||
esp_err_t esp_register_shutdown_handler(shutdown_handler_t handle);
|
||||
|
||||
/**
|
||||
* @brief Restart PRO and APP CPUs.
|
||||
*
|
||||
|
Reference in New Issue
Block a user