feat(driver_twai): support legacy targets in new driver

This commit is contained in:
wanckl
2025-04-27 15:57:46 +08:00
parent f7398c5bc2
commit 8a60934c4f
53 changed files with 1931 additions and 1197 deletions

View File

@@ -755,6 +755,10 @@ config SOC_TWAI_CONTROLLER_NUM
int
default 1
config SOC_TWAI_MASK_FILTER_NUM
int
default 1
config SOC_TWAI_BRP_MIN
int
default 2

View File

@@ -342,7 +342,8 @@
#define SOC_TOUCH_SAMPLE_CFG_NUM (1U) /*!< The sample configuration number in total, each sampler can be used to sample on one frequency */
/*-------------------------- TWAI CAPS ---------------------------------------*/
#define SOC_TWAI_CONTROLLER_NUM 1UL
#define SOC_TWAI_CONTROLLER_NUM 1U
#define SOC_TWAI_MASK_FILTER_NUM 1U
#define SOC_TWAI_BRP_MIN 2
#if SOC_CAPS_ECO_VER >= 200
# define SOC_TWAI_BRP_MAX 256