1/* ULP assembly files are passed through C preprocessor first, so include directives 2 and C macros may be used in these files 3 */ 4#include "soc/rtc_cntl_reg.h" 5#include "soc/soc_ulp.h" 6 7 .global wake_up 8wake_up: 9 /* Check if the system can be woken up */ 10 READ_RTC_FIELD(RTC_CNTL_LOW_POWER_ST_REG, RTC_CNTL_RDY_FOR_WAKEUP) 11 and r0, r0, 1 12 jump wake_up, eq 13 14 /* Wake up the SoC, end program */ 15 wake 16 halt 17