fix(driver_twai): added ctu_official listen only workaround

Closes https://github.com/espressif/esp-idf/issues/17461
This commit is contained in:
wanckl
2025-09-18 12:01:06 +08:00
parent 6c968cee04
commit 1e1bf5aea3
10 changed files with 14 additions and 36 deletions
@@ -174,7 +174,11 @@ 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;
// esp32c5 using `rom` and `acf` together with `bmm` to warkaround the errata 0v2 issue 5
// see issue https://github.com/espressif/esp-idf/issues/17461
opmode.bmm = listen_only;
opmode.rom = listen_only;
opmode.acf = listen_only;
opmode.ilbp = loopback;
hw->mode_settings.val = opmode.val;