mcpwm: reset peripheral in restart, panic and halt
mcpwm is commonly used in power eletronic area, when restart happens, make sure the mcpwm generator is not working. closes https://github.com/espressif/esp-idf/issues/11324
This commit is contained in:
@@ -63,6 +63,11 @@ int64_t esp_system_get_time(void);
|
||||
*/
|
||||
uint32_t esp_system_get_time_resolution(void);
|
||||
|
||||
/**
|
||||
* @brief Before the system exit (e.g. panic, brownout, restart, etc.), this function is to be called to reset all necessary peripherals.
|
||||
*/
|
||||
void esp_system_reset_modules_on_exit(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user