touch_sleep: complete the support for touch sleep

This commit is contained in:
laokaiyao
2021-11-26 18:09:24 +08:00
parent 0f1eb82acd
commit 62ab4456a8
26 changed files with 314 additions and 541 deletions

View File

@@ -47,6 +47,11 @@ static inline void rtc_cntl_ll_ulp_int_clear(void)
REG_SET_BIT(RTC_CNTL_INT_CLR_REG, RTC_CNTL_SAR_INT_CLR);
}
static inline void rtc_cntl_ll_timer2_set_touch_wait_cycle(uint32_t wait_cycle)
{
REG_SET_FIELD(RTC_CNTL_TIMER2_REG, RTC_CNTL_ULPCP_TOUCH_START_WAIT, wait_cycle);
}
#ifdef __cplusplus
}
#endif