ULP: Add example of using GPIO to wakeup the ULP-RISCV processor

This commit is contained in:
Marius Vikhammer
2022-02-28 12:05:48 +08:00
parent 36c8dc59dd
commit c974a000d7
10 changed files with 261 additions and 10 deletions

View File

@@ -53,3 +53,8 @@ void ulp_riscv_timer_resume(void)
{
SET_PERI_REG_MASK(RTC_CNTL_ULP_CP_TIMER_REG, RTC_CNTL_ULP_CP_SLP_TIMER_EN);
}
void ulp_riscv_gpio_wakeup_clear(void)
{
SET_PERI_REG_MASK(RTC_CNTL_ULP_CP_TIMER_REG, RTC_CNTL_ULP_CP_GPIO_WAKEUP_CLR);
}