feat(freertos): Add CPU wait to save power

This commit is contained in:
dongheng
2019-04-22 17:48:40 +08:00
parent a2cef19ccd
commit f071399ade
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