feat(lp-core): added support for using ETM events as wake-up source

This commit is contained in:
Marius Vikhammer
2024-07-01 12:11:41 +08:00
parent fd18bb608b
commit de2a66ebe0
23 changed files with 404 additions and 6 deletions
@@ -148,6 +148,15 @@ static inline void lp_core_ll_request_sleep(void)
PMU.lp_ext.pwr1.sleep_req = 1;
}
/**
* @brief Clear the ETM wakeup interrupt sources on the LP core
*
*/
static inline void lp_core_ll_clear_etm_wakeup_status(void)
{
LP_SYS.sys_ctrl.lp_core_etm_wakeup_flag_clr = 1;
}
#ifdef __cplusplus
}
#endif