morris
ab4200e6f6
feat(twai): graduate the hal drivers into esp_hal_twai component
2025-12-01 22:32:54 +08:00
wanckl
59d2692bc5
refactor(driver_twai): remove errata config selection 5
2025-10-29 17:46:15 +08:00
wanckl
3bebf1041d
refactor(driver_twai): remove errata config selection 4
2025-10-29 17:46:15 +08:00
wanckl
cd483606c9
refactor(driver_twai): remove errata config selection 3
2025-10-29 17:46:15 +08:00
wanckl
66f56f9ed1
refactor(driver_twai): remove errata config selection 2
2025-10-29 17:46:15 +08:00
wanckl
e894d65548
refactor(driver_twai): remove errata config selection 1
2025-10-29 17:45:43 +08:00
wanckl
029ac60144
feat(driver_twai): add legacy driver deprecated warning
2025-10-28 10:54:48 +08:00
morris
cd41b6a640
refactor: remove unnecessary driver dependencies from build rules
2025-10-11 14:02:29 +08:00
Chen Chen
a4710cc206
refactor(driver): remove redundant driver dependencies
...
now the driver component only contains legacy code for i2c, twai and
touch sensor
2025-09-30 15:47:45 +08:00
wanckl
cee541614e
fix(driver_twai): update twaifd register description
2025-09-28 14:45:27 +08:00
wanckl
7e7f0c5e14
fix(twai): twai legacy driver fixed zero dlc transmit
...
Closes https://github.com/espressif/esp-idf/issues/17467
2025-08-25 18:52:38 +08:00
wanckl
e6fcaf4e34
fix(driver_twai): fixed c5 listenonly mode errata, add rx buffer check
2025-06-27 22:08:21 +08:00
wanckl
77277b59fc
feat(driver_twai): new driver add programming guide
2025-05-29 21:00:50 +08:00
Chen Jichang
9e5ed3bdd2
fix(twai): only call esp_pm APIs when CONFIG_PM_ENABLE is enabled
2025-05-22 17:27:18 +08:00
wanckl
8a60934c4f
feat(driver_twai): support legacy targets in new driver
2025-04-30 10:38:55 +08:00
diplfranzhoepfinger
fd6ed42d7c
fix(twai): fixed twai assert fail when recover
...
driver try start new frame in ISR however already bus off
Closes https://github.com/espressif/esp-idf/issues/9697
2025-03-17 14:20:29 +08:00
wanckl
8a4f3cec5a
fix(driver_twai): fixed coverity check in twai
2025-01-15 16:27:55 +08:00
Nebojsa Cvetkovic
a3f17742be
fix(twai): TWAI_GENERAL_CONFIG_DEFAULT_V2 initialize general_flags
...
Closes https://github.com/espressif/esp-idf/pull/15144
2025-01-10 18:54:12 +08:00
morris
632650825e
change(twai): don't panic if twai hal init fail
...
Related to https://github.com/espressif/esp-idf/pull/15068
2024-12-23 15:24:27 +08:00
Li Shuai
8eea8a8ef3
change(esp_hw_support): update some modules sleep retention init dependency bitmap
2024-11-18 15:40:47 +08:00
Song Ruo Jing
e8f0299557
fix(uart): allow same pin for tx and rx in uart_set_pin
...
Also add IO reserve to uart driver
Closes https://github.com/espressif/esp-idf/issues/14787
2024-11-12 20:08:38 +08:00
wanckl
b64e2ebfc9
feat(twai): support gpio reserve check
2024-10-31 15:07:42 +08:00
wanckl
460233ee3b
fix(driver_twai): fixed bus-off when twai_init due to wrong gpio config
...
Closes https://github.com/espressif/esp-idf/issues/14548
2024-10-31 15:07:42 +08:00
Armando
2cb5de2172
feat(twai): sleep retention
2024-10-18 14:14:16 +08:00
Marius Vikhammer
62bb532701
docs(doxygen): fix misc issues with new version of doxygen
2024-05-17 16:12:56 +08:00
Konstantin Kondrashov
3f89072af1
feat(all): Use PRIx macro in all logs
2024-03-12 11:15:53 +02:00
Nebojša Cvetković
bd9711dde6
fix(twai): TWAI_GENERAL_CONFIG_DEFAULT initialize controller_id
...
Fix for C++ warning `-Wmissing-field-initializers`
2024-01-17 13:42:50 +00:00
wanlei
d9d6f5a17a
feat(twai): support legacy twai(can) driver for esp32p4
2023-10-26 16:20:45 +08:00
morris
2ae3d4d7c4
feat(twai): support multiple twai controllers
...
Closes https://github.com/espressif/esp-idf/issues/11383
2023-10-12 09:59:27 +08:00
morris
47bb157cab
refactor(twai): add reset and clock control to twai LL layer
2023-08-29 22:19:57 +08:00
Darian Leung
9ed58bf564
feat(driver): updated drivers to use CreateWithCaps() API
...
This commit simplifies various drivers by using the ...CreateWithCaps() API
when creating driver objects in internal RAM.
2023-08-08 04:26:42 +00:00
Planck (Lu Zeyu)
7469f34948
feat(twai): Add twai linker.lf to control the placement of driver and hal
...
- Replace TWAI_ISR_ATTR flag with linker.lf
- Use the linker.lf to control the placement of the driver functions
2023-08-07 10:21:47 +08:00
Nebojsa Cvetkovic
9956bfac3e
twai: twai_driver_install() returns error on interrupt allocation failure
...
This commit updates twai_driver_install() so that an error is returned when
esp_intr_alloc() fails, instead of aborting.
Closes https://github.com/espressif/esp-idf/pull/11494
[darian@espressif.com: Refactored object allocation and free procedures]
[darian@espressif.com: Updated commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2023-06-25 18:32:41 +08:00
morris
88600bd91b
driver: minor code clean up to pass coverity scan test
2023-06-10 16:21:12 +08:00
Song Ruo Jing
a4e8960ab4
esp_clk_tree: Rename clk_tree_xxx to esp_clk_tree_xxx, add compilation warning to clk_tree.h
2023-04-25 14:12:06 +08:00
Darian Leung
72becf31e4
twai: Add errata workaround for listen only mode
...
This commit adds a workaround for the TWAI listen only mode errata which is
present on the ESP32, ESP32-S2, ESP32-S3, and ESP32-C3. twai_get_status_info()
has also been updated to account for the fact that TEC/REC are frozen in
listen only mode.
Errata Description:
When the TWAI controller is put into listen only mode, it should not influence
the TWAI bus in any way (i.e., should never send a dominant bit). However,
on the targets listed above, the TWAI controller will send dominant bits in an
error frame (i.e., active error frame), even if the controller is set to listen
only mode.
Workaround:
We can force the TWAI controller into the error passive state on startup (by
setting the REC to >= 128). Since the TEC/REC are frozen in listen only mode,
the TWAI controller will remain error passive and only send recessive bits
(i.e., passive error frames), thus will not influence the TWAI bus.
Closes https://github.com/espressif/esp-idf/issues/9157
2023-02-23 12:50:06 +08:00
wanlei
fdeeced62c
twai: h2 support twai driver
2023-02-16 16:34:23 +08:00
laokaiyao
f27cd67c00
driver: pack peripherals
2023-02-02 18:19:58 +08:00