feat(driver_twai): new driver sleep retention support

This commit is contained in:
wanckl
2026-04-01 10:56:32 +08:00
committed by morris
parent 5be29de6e0
commit f9575867d8
13 changed files with 396 additions and 12 deletions
@@ -35,6 +35,7 @@ typedef struct {
uint32_t enable_loopback: 1; /**< The TWAI controller receive back frames what it send out */
uint32_t enable_listen_only: 1; /**< The TWAI controller will not influence the bus (No transmissions or acknowledgments) but can receive messages */
uint32_t no_receive_rtr: 1; /**< Don't receive remote frames */
uint32_t sleep_allow_pd: 1; /**< Allow power down during sleep to save power, driver will backup/restore the TWAI registers to guarantee the peripheral features. */
} flags; /**< Misc configuration flags */
} twai_onchip_node_config_t;