ulp: document the need to wait for RTC to be ready for wakeup

This commit is contained in:
Ivan Grokhotkov
2017-12-07 17:11:24 +08:00
parent b6a6973b44
commit ca751648fa
4 changed files with 25 additions and 5 deletions
+5
View File
@@ -130,6 +130,11 @@ edge_detected:
.global wake_up
wake_up:
/* Check if the system can be woken up */
READ_RTC_FIELD(RTC_CNTL_LOW_POWER_ST_REG, RTC_CNTL_RDY_FOR_WAKEUP)
and r0, r0, 1
jump wake_up, eq
/* Wake up the SoC, end program */
wake
halt