fix(driver_twai): fixed c5 listenonly mode errata, add rx buffer check

This commit is contained in:
wanckl
2025-06-26 12:25:43 +08:00
parent 7f325d47bf
commit e6fcaf4e34
17 changed files with 174 additions and 185 deletions

View File

@@ -165,7 +165,7 @@ static inline void twaifd_ll_set_mode(twaifd_dev_t *hw, bool listen_only, bool s
twaifd_mode_settings_reg_t opmode = {.val = hw->mode_settings.val};
opmode.stm = self_test;
opmode.bmm = listen_only;
(void)listen_only; // listen only is not available in this chip, see "CTU FD 2v5 errata 0v2 issue 5"
opmode.ilbp = loopback;
hw->mode_settings.val = opmode.val;