feat(lp_core): added support for LP-IO as LP-core wakeup source

This commit is contained in:
Marius Vikhammer
2024-07-01 16:56:44 +08:00
committed by wuzhenghui
parent bd79398ec6
commit 62b365569d

View File

@@ -331,6 +331,14 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
{ {
LP_IO.pin[rtcio_num].wakeup_enable = 1; LP_IO.pin[rtcio_num].wakeup_enable = 1;
LP_IO.pin[rtcio_num].int_type = type; LP_IO.pin[rtcio_num].int_type = type;
/* Work around for HW issue,
need to also enable this clk, otherwise it will
not trigger a wake-up on the ULP. This is not needed
for triggering a wakeup on HP CPU, but always setting this
has no side-effects.
*/
LP_IO.date.clk_en = 1;
} }
/** /**