light sleep: dfs support for esp32c3

This commit is contained in:
Li Shuai
2020-12-04 10:19:39 +08:00
parent e39ed0ecf1
commit 355dd10257
14 changed files with 141 additions and 30 deletions

View File

@@ -197,6 +197,11 @@ static inline void cpu_ll_write_dedic_gpio_mask(uint32_t mask, uint32_t value)
asm volatile("wr_mask_gpio_out %0, %1" : : "r"(value), "r"(mask):);
}
static inline void cpu_ll_waiti(void)
{
asm volatile ("waiti 0\n");
}
#ifdef __cplusplus
}
#endif