Commit Graph

45 Commits

Author SHA1 Message Date
C.S.M
acda9ad8bf test(i2c): Enable all i2c test on esp32p4, esp32c5 2024-08-26 10:43:22 +08:00
laokaiyao
1397e5421e feat(i2c): support i2c on esp32-c61 2024-08-14 11:25:31 +08:00
C.S.M
4606003655 fix(i2c_master): Fix potential concurrency issue with task and interrupt when nack happens 2024-07-30 13:28:20 +08:00
laokaiyao
cb22b8aaf7 ci(esp32c5): enable c5 target test 2024-07-02 16:45:49 +08:00
C.S.M
992d8bc5f2 feat(i2c_master): Add an api for retrieveing handle via port,
Closes https://github.com/espressif/esp-idf/issues/13968
2024-06-24 16:06:34 +08:00
C.S.M
8e1698aa05 fix(i2c): Fix i2c not release semaphore in command send loop 2024-06-20 19:22:49 +08:00
morris
ba364d486f Merge branch 'feat/ci_check_ll_rw_register_half_word' into 'master'
feat(ci): check if the LL function read write the register by half-world

See merge request espressif/esp-idf!31501
2024-06-18 20:38:15 +08:00
morris
dd46392a66 feat(ci): check LL functions not read write register by half word 2024-06-18 14:58:41 +08:00
C.S.M
b0f2205f70 feat(i2c): Add i2c support on esp32c5 mp 2024-06-18 10:37:36 +08:00
Marius Vikhammer
21c111465a Merge branch 'docs/c61_support' into 'master'
docs(c61): add docs build for C61

Closes IDF-9287

See merge request espressif/esp-idf!31182
2024-06-04 18:13:38 +08:00
Marius Vikhammer
2eb4cd3d84 docs(c61): add docs build for C61 2024-06-03 10:24:27 +08:00
Frantisek Hrbata
fbe8bf89ee fix: properly resolve component dependencies
There is currently a bug in the __build_resolve_and_add_req function in
tools/cmake/build.cmake where the check for registered component
requirements is incorrectly applied to the component itself rather than
its dependencies. This issue likely originated from a typo, using
component_target instead of _component_target. To prevent further
confusion, _component_target has been renamed to _req_target.

Fixing this revealed multiple incorrect dependencies for the Linux
target, which have now been resolved by explicitly specifying the
dependencies for the Linux target.

Closes https://github.com/espressif/esp-idf/issues/13447

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-05-30 22:01:55 +08:00
wuzhenghui
ffd08ac41b
change(esp_hw_support): use union retention link priority definiation 2024-05-28 15:19:27 +08:00
C.S.M
133bda4966 test(i2c_master): makeup a write-large read-small test for known reason 2024-05-16 19:14:59 +08:00
C.S.M
2e591cf3f7 test(i2c_master): Add test for transmit multi buffer in one transaction 2024-05-16 19:14:59 +08:00
C.S.M
af1524e7bb feat(i2c_master): Add feature for transmit multi buffer in one transaction,
Closes https://github.com/espressif/esp-idf/pull/13635
2024-05-16 19:14:59 +08:00
C.S.M
4a94f9b27c Merge branch 'fix/i2c_pin_short_cut' into 'master'
fix(i2c_master): Modify the behavior from ISR WDT to return timeout when circut get shortcut

See merge request espressif/esp-idf!30188
2024-04-15 19:15:35 +08:00
Cao Sen Miao
4ba3a4e482 fix(i2c_master): Fix the issue that probe cannot work properly after a general call,
Closes https://github.com/espressif/esp-idf/issues/13547
2024-04-15 11:29:13 +08:00
Cao Sen Miao
a69c6e8f41 fix(i2c_master): Modify the behavior from ISR WDT to return timeout when circut get shortcut,
Closes https://github.com/espressif/esp-idf/issues/13587
2024-04-15 11:05:43 +08:00
Lou Tianhao
4061e282dd draft(i2c): need to support regdma_i2c for esp32c5beta3 2024-04-12 14:14:06 +08:00
Cao Sen Miao
1fe7cc8d13 test(i2c_master): Add test for lp_i2c support in i2c master driver 2024-04-03 11:39:07 +08:00
Cao Sen Miao
0985bfbe27 feat(i2c_master): Add lp_i2c support in i2c master driver 2024-04-03 11:39:04 +08:00
Li Shuai
fc308a4234 change(driver/i2c): modify i2c sleep retention test case to fix memory leakage issue 2024-03-30 11:51:52 +08:00
Li Shuai
91bb0e7276 change(driver/i2c): use new retention api to implement i2c retention 2024-03-30 11:51:52 +08:00
wuzhenghui
38fe4e136a
feat(esp_hw_support): support esp32p4 sleep peripheral retention 2024-03-28 19:18:25 +08:00
morris
c0289ee6eb fix(drivers): fix typos found by codespell
codespell components/esp_driver*
2024-03-28 10:01:27 +08:00
Cao Sen Miao
ede1df51b0 feat(i2c_master): Add parameter to config I2C scl await time 2024-03-27 10:35:11 +08:00
Cao Sen Miao
c0e5f2b73a fix(i2c_master): Fix issue that i2c clock got wrong after reset,
Closes https://github.com/espressif/esp-idf/issues/13397
2024-03-21 13:13:53 +08:00
Cao Sen Miao
016877b7ce fix(i2c_master): Fix issue that initialize esp32 and using i2c_master_probe issue,
and probe might failed.
Fixed I2C cannot return err code when nack detected
Closes https://github.com/espressif/esp-idf/issues/13213,
Closes https://github.com/espressif/esp-idf/issues/12929,
Closes https://github.com/espressif/esp-idf/issues/13398,
2024-03-19 11:07:13 +08:00
C.S.M
812d197011 Merge branch 'bugfix/i2c_slave_bugs' into 'master'
fix(i2c_slave): Fix multiple issues on i2c slave

Closes IDFGH-12343 and IDFGH-12319

See merge request espressif/esp-idf!29566
2024-03-15 19:36:56 +08:00
Cao Sen Miao
60419a4892 fix(i2c_slave): Fixed the isr_flags not really parse to the intr_allocate,
Closes https://github.com/espressif/esp-idf/issues/13374
2024-03-15 14:40:55 +08:00
Cao Sen Miao
7b731cae39 fix(i2c_slave): Fix bugs on i2c slave,
1. Fixed read data number smaller than master has sent it will fail
2. Disable interrupt when destroy bus
Closes https://github.com/espressif/esp-idf/issues/13354
2024-03-15 14:40:52 +08:00
Eric Wheeler
6e1bba7430 fix(i2c_master): fix deadlock on s_i2c_transaction_start failure
As pointed out in PR #13134 by @MatthiasKunnen, there is a deadlock in
`s_i2c_synchronous_transaction()` if `s_i2c_transaction_start()` should fail
because, on error, s_i2c_synchronous_transaction() returns before releasing the
lock.

This commit fixes the deadlock without any other changes.

Closes: #13387

Signed-off-by: Eric Wheeler <esp-idf@z.ewheeler.org>
2024-03-15 14:13:13 +08:00
Cao Sen Miao
1517d61add fix(i2c): Fix I2C synchronous transaction cost so much CPU source,
Closes https://github.com/espressif/esp-idf/issues/13137,
Closes https://github.com/espressif/esp-idf/pull/13322
2024-03-07 17:51:23 +08:00
Cao Sen Miao
ddb0c21d4c feat(i2c): Add I2C support on ESP32C5 2024-02-29 12:13:39 +08:00
Cao Sen Miao
28a0548c67 fix(i2c): Modify the test memory leak check threshold and add more file pattern 2024-02-27 17:30:59 +08:00
Cao Sen Miao
27b2f7a10b feat(i2c): Add test cases for i2c sleep retention with 802154 2024-02-23 11:28:17 +08:00
Cao Sen Miao
cf521b60ea feat(i2c): Support i2c sleep retention on esp32c6/h2 2024-02-23 11:28:14 +08:00
Cao Sen Miao
1e3ffdf628 fix(i2c_master): Fix bug on esp32 that read one byte data fails 2024-01-22 11:13:10 +08:00
Cao Sen Miao
0bf2b35b33 fix(i2c): Use hardware fsm reset on esp32c6/h2/p4 2024-01-16 10:05:05 +08:00
Cao Sen Miao
85d0fdabde fix(i2c_master): Fix issue that use callback may cause memory leak,
Closes https://github.com/espressif/esp-idf/issues/12878
2024-01-15 19:09:07 +08:00
Armando
3c5a4f9e8a ci(p4): added todo jira for disabled tests on p4 2024-01-04 09:36:38 +08:00
Armando
1ab742b3c3 ci(p4): enable esp32p4 target test 2024-01-04 09:34:55 +08:00
Vikram Dattu
3d40b17576 fix(docs): fixed doxygen warnings in few headers
- non-matching arguments in `i2c_types.h` and `esp_wifi_crypto_types.h`
 - Fixed unended `@cond` macro in `esp_err.h`
2023-12-15 12:28:18 +05:30
Cao Sen Miao
aa10770323 refactor(i2c): Make i2c driver as a seperate component 2023-12-14 15:39:35 +08:00