Commit Graph

50 Commits

Author SHA1 Message Date
Igor Udot
84d2b57df9 Merge branch 'ci/check_build_test_rules' into 'master'
ci: fix mismatch in check_build_test_rules

Closes CII-49 and CII-50

See merge request espressif/esp-idf!43937
2025-12-05 11:56:39 +08:00
igor.udot
8c233aa9bd ci: temp_skip_ci for p4 2025-12-04 18:08:33 +08:00
morris
ab4200e6f6 feat(twai): graduate the hal drivers into esp_hal_twai component 2025-12-01 22:32:54 +08:00
wanckl
a485d7f8a6 fix(driver_twai): enhance ci test and fix example 2025-12-01 14:21:21 +08:00
armando
b25ba4a0c1 ci(p4): disable p4 rev3 invalid tests temporarily 2025-11-17 12:11:39 +08:00
wanckl
1e1bf5aea3 fix(driver_twai): added ctu_official listen only workaround
Closes https://github.com/espressif/esp-idf/issues/17461
2025-09-18 12:01:06 +08:00
Chen Jichang
2496588185 fix(twai): fix cybergear pre-commit check 2025-08-26 13:25:26 +08:00
morris
c6d7d5d412 Merge branch 'feat/twai_xiaomi_motor_example' into 'master'
feat(twai): add cybergear example

Closes IDF-10549

See merge request espressif/esp-idf!40193
2025-08-26 11:37:04 +08:00
Chen Jichang
b39507bc30 feat(twai): add cybergear example 2025-08-25 18:30:33 +08:00
morris
921e62b81f fix(twai): busoff and clkout may not available in SOC
return ESP_ERR_NOT_SUPPORTED if these signals are required from user but
not available in SOC
2025-08-25 10:22:02 +08:00
morris
c54562ab72 feat(twai): add driver support on esp32h4 2025-08-25 10:22:02 +08:00
Wan Lei
54a9c2e1e9 Merge branch 'feat/twai_add_wait_done_api' into 'master'
feat(driver_twai): add tx wait all done api

Closes IDF-13417

See merge request espressif/esp-idf!40616
2025-08-21 11:38:27 +08:00
wanckl
a690789dcf fix(driver_twai): update example using wait_tx_done api 2025-08-20 16:11:42 +08:00
Marek Fiala
9d35d63651 feat(cmake): Update minimum cmake version to 3.22 (whole repository) 2025-08-19 14:44:32 +02:00
Yuan Yu
0563c8608a Merge branch 'bugfix/twai_utils_down' into 'master'
fix(twai): fix the twai_utils's pytest to turn canbus down

Closes IDFCI-3079

See merge request espressif/esp-idf!41238
2025-08-14 14:48:04 +08:00
Yuan Yu
c386170aad fix(twai): make sure that can bus is shut down properly 2025-08-14 11:43:09 +08:00
wanckl
fe8f0f08f3 feat(driver_twai): update and simplify network example using new driver 2025-08-13 19:41:06 +08:00
wanckl
959557d00a feat(driver_twai): update error recover example using new driver
Closes https://github.com/espressif/esp-idf/issues/8461
2025-08-13 19:40:20 +08:00
wanckl
6440f9d5d7 feat(driver_twai): remove self test example since it's meanless 2025-08-13 19:36:41 +08:00
Yuan Yu
f1da574ae5 feat(twai): add TWAI utility commands and configuration
- Introduced TWAI utility commands for sending, dumping, and managing TWAI frames.
- Added configuration options for TWAI GPIO pins and support for TWAI-FD.
- Created necessary CMake and Kconfig files for building the TWAI utilities.

This enhancement provides a comprehensive interface for TWAI operations.
2025-08-13 16:31:35 +08:00
Chen Jichang
b670fe9b50 feat(twai): support twai on esp32h21 2025-07-31 10:56:45 +08:00
wanckl
e6fcaf4e34 fix(driver_twai): fixed c5 listenonly mode errata, add rx buffer check 2025-06-27 22:08:21 +08:00
igor.udot
daf2d31008 test: format all test scripts 2025-03-05 12:08:48 +08:00
Roland Dobai
46e37515b8 Merge branch 'feat/examples_minimal_build' into 'master'
switch examples to build just with required components

Closes IDF-11308, IDF-7940, and IDF-11289

See merge request espressif/esp-idf!33825
2024-11-25 16:27:29 +08:00
Frantisek Hrbata
1c92945f59 change(examples): switch examples to use a minimal build
Currently, several example dependencies rely on the fact that all
registered components are added to the build, along with components
specified in common requirements. This results in longer build times
because even unused components must be built. Switch all examples to use
idf_minimal_build to compile only the components actually required by
the example.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 20:14:40 +01:00
Frantisek Hrbata
ad15109daa change(examples): explicitly specify component dependencies for examples
Currently, several examples do not explicitly state their component
dependencies, relying instead on the default behavior that includes all
registered components and commonly required ones in the build.
Explicitly adding component dependencies can reduce build time when
set(COMPONENTS main) is used.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 14:11:24 +01:00
Marius Vikhammer
2c1d52b5b9 ci(twai): disable twai_network test 2024-11-20 14:31:21 +08:00
Darian Leung
b18a787469 change(driver/twai): Update TWAI message object initialization examples
This commit updates how examples and code snippets initialize the
twai_message_t for transmission. Examples/snippets now explicitly demonstrate
how to initialize every member/bit-field of the object.
2024-02-27 11:52:51 +08:00
wanlei
d9d6f5a17a feat(twai): support legacy twai(can) driver for esp32p4 2023-10-26 16:20:45 +08:00
morris
b12e250b2c refactor(examples): reformat peripheral examples with astyle_py 2023-09-28 10:08:04 +08:00
morris
88600bd91b driver: minor code clean up to pass coverity scan test 2023-06-10 16:21:12 +08:00
wanlei
fdeeced62c twai: h2 support twai driver 2023-02-16 16:34:23 +08:00
morris
a25123f703 twai: bringup on esp32c6 2022-11-04 17:40:29 +08:00
morris
43d99f8364 twai: migrate example test to pytest 2022-10-31 21:44:08 +08:00
morris
d91c8759c0 driver: remove -Wno-format flag 2022-08-08 08:30:09 +00:00
Ivan Grokhotkov
e596c84d49 build system: re-add -Wno-format as private flag for some example components 2022-08-03 16:42:47 +04:00
Fu Hanxi
c0568611dd docs: changes docs supported targets tables 2022-07-14 08:26:32 +08:00
Michael (XIAO Xufeng)
f7be540222 ci: partially enable example build for esp32c2 2022-06-02 14:17:31 +08:00
Djordje Nedic
facab8c5a7 tools: Increase the minimal supported CMake version to 3.16
This updates the minimal supported version of CMake to 3.16, which in turn enables us to use more CMake features and have a cleaner build system.
This is the version that provides most new features and also the one we use in our latest docker image for CI.
2022-06-01 06:35:02 +00:00
Ondrej Kosta
1a20b10fd3 Examples: common source for GPIO range in Kconfigs defined 2022-05-12 09:33:40 +02:00
morris
869bed1bb5 soc: don't expose unstable soc header files in public api 2022-01-06 23:10:22 +08:00
Roland Dobai
766aa57084 Build & config: Remove leftover files from the unsupported "make" build system 2021-11-11 15:32:36 +01:00
bizhuangyang
21311ece58 twai:modify default gpios in esp32s3
GPIO 20 is used for USB JTAG in esp32s3. So change the default gpios for
twai in twai examples so that twai can be used without disturbing JTAG.
2021-06-21 14:02:14 +08:00
Fu Hanxi
0146f258d7 style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
Marius Vikhammer
0713e93b8f TWAI: bringup for S3 and C3 2021-01-14 20:30:31 +08:00
Darian Leung
9b34f1c49c twai: Temporarily disable network example test
Disabling network example test due to issue with synchronizing the
start of each DUT
2020-12-10 21:17:44 +08:00
Angus Gratton
66fb5a29bb Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
morris
2917651478 esp_rom: extract common ets apis into esp_rom_sys.h 2020-07-27 15:27:01 +08:00
morris
a4d0033c03 esp_rom: extract common GPIO apis into esp_rom_gpio.h 2020-07-07 11:40:19 +08:00
Darian Leung
97721d469c TWAI: Add ESP32-S2 support
This commit adds TWAI driver support for the
ESP32-S2. The following features were added:

- Expanded BRP support
- Expanded CLKOUT Divider Support
- Updated example READMEs
2020-06-30 16:56:03 +08:00