Merge branch 'feature/add_cpu_wait_for_low_power' into 'master'

Add CPU wait to save power

See merge request sdk/ESP8266_RTOS_SDK!912
This commit is contained in:
Dong Heng
2019-04-23 10:02:41 +08:00
2 changed files with 12 additions and 0 deletions

View File

@ -128,6 +128,16 @@ static inline uint32_t soc_get_int_mask(void)
return mask & enable & ETS_INT_MASK;
}
static inline void soc_wait_int(void)
{
__asm__ __volatile__(
"waiti 0\n"
:
:
: "memory"
);
}
#ifdef __cplusplus
}
#endif