mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-03 20:54:32 +02:00
feat(lp_core): added support for LP-IO as LP-core wakeup source
This commit is contained in:
committed by
wuzhenghui
parent
cf477b94ce
commit
b11b97ca9b
@@ -306,6 +306,14 @@ static inline void rtcio_ll_wakeup_enable(int rtcio_num, rtcio_ll_wake_type_t ty
|
||||
{
|
||||
LP_IO.pin[rtcio_num].wakeup_enable = 0x1;
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user