mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
17 lines
408 B
ArmAsm
17 lines
408 B
ArmAsm
/* ULP assembly files are passed through C preprocessor first, so include directives
|
|
and C macros may be used in these files
|
|
*/
|
|
#include "soc/rtc_cntl_reg.h"
|
|
#include "soc/soc_ulp.h"
|
|
|
|
.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
|