soc: espressif: update restart procedure
Use esp_restart call to guarantee and registered shutdown handlers will be triggered before rebooting. This guarantees that subsystems like Wi-Fi and BLE will deinit correctly. Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
This commit is contained in:
parent
739066743f
commit
ac0705d59b
9 changed files with 9 additions and 9 deletions
|
@ -63,5 +63,5 @@ int IRAM_ATTR arch_printk_char_out(int c)
|
|||
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
esp_restart_noos();
|
||||
esp_restart();
|
||||
}
|
||||
|
|
|
@ -102,5 +102,5 @@ int IRAM_ATTR arch_printk_char_out(int c)
|
|||
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
esp_restart_noos();
|
||||
esp_restart();
|
||||
}
|
||||
|
|
|
@ -50,5 +50,5 @@ int IRAM_ATTR arch_printk_char_out(int c)
|
|||
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
esp_restart_noos();
|
||||
esp_restart();
|
||||
}
|
||||
|
|
|
@ -51,5 +51,5 @@ int IRAM_ATTR arch_printk_char_out(int c)
|
|||
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
esp_restart_noos();
|
||||
esp_restart();
|
||||
}
|
||||
|
|
|
@ -50,5 +50,5 @@ int IRAM_ATTR arch_printk_char_out(int c)
|
|||
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
esp_restart_noos();
|
||||
esp_restart();
|
||||
}
|
||||
|
|
|
@ -78,5 +78,5 @@ int IRAM_ATTR arch_printk_char_out(int c)
|
|||
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
esp_restart_noos();
|
||||
esp_restart();
|
||||
}
|
||||
|
|
|
@ -90,5 +90,5 @@ int IRAM_ATTR arch_printk_char_out(int c)
|
|||
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
esp_restart_noos();
|
||||
esp_restart();
|
||||
}
|
||||
|
|
|
@ -87,5 +87,5 @@ int IRAM_ATTR arch_printk_char_out(int c)
|
|||
|
||||
void sys_arch_reboot(int type)
|
||||
{
|
||||
esp_restart_noos();
|
||||
esp_restart();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue