Closed
Description
Is your feature request related to a problem?
No response
Describe the solution you'd like.
Instead of being able to select only ULP_RISCV_WAKEUP_SOURCE_GPIO
or only ULP_RISCV_WAKEUP_SOURCE_TIMER
, I'd like to use both of them at the same time to wakeup periodically and when an interrupt occurs.
ulp_riscv_cfg_t ulp_cfg = {
.wakeup_source = ULP_RISCV_WAKEUP_SOURCE_GPIO | ULP_RISCV_WAKEUP_SOURCE_TIMER,
};
Describe alternatives you've considered.
No response
Additional context.
This is useful for battery monitoring purposes. On interrupt, we decide if we want to wake-up or not and enter shipping mode (very low power ~10uA) if the battery is nearly empty. We also want to do so periodically, like every hour.