feat(driver_twai): new driver sleep retention support

This commit is contained in:
wanckl
2026-02-28 20:11:32 +08:00
parent 58cd9bcc77
commit 5bcea31dd7
17 changed files with 478 additions and 18 deletions
@@ -59,7 +59,10 @@ bool peripheral_domain_pd_allowed(void)
// ESP32C5 supports temperature sensor sleep retention
RETENTION_MODULE_BITMAP_SET(&mask, SLEEP_RETENTION_MODULE_TEMP_SENSOR);
// ESP32C5 does not support TWAI sleep retention yet: IDF-13001
// ESP32C5 supports TWAI sleep retention
RETENTION_MODULE_BITMAP_SET(&mask, SLEEP_RETENTION_MODULE_TWAI0);
RETENTION_MODULE_BITMAP_SET(&mask, SLEEP_RETENTION_MODULE_TWAI1);
/* ESP32C5 only supports TWAI0 and TWAI1 */
// ESP32C5 supports PARLIO sleep retention
RETENTION_MODULE_BITMAP_SET(&mask, SLEEP_RETENTION_MODULE_PARLIO0);