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:
morris
2023-05-05 11:19:37 +08:00
parent 97aab3bedc
commit 083d9e7c0f
9 changed files with 187 additions and 154 deletions
@@ -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