port/esp32: Add CAN(TWAI) driver.#12331
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #12331 +/- ##
========================================
Coverage 98.45% 98.46%
========================================
Files 175 176 +1
Lines 22646 22784 +138
========================================
+ Hits 22297 22435 +138
Misses 349 349 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
As mentioned on the linked PR, this work is much appreciated and we're keen to have esp32 CAN driver support. Implementing a common @IhorNehrutsa I hope you're keen to keep this PR open and it can be adapted it to the new API once that's available. |
|
esp-idf 5.02 |
|
@straga Can you share your code changes? This PR may not be completed so quickly. |
|
|
This is an automated heads-up that we've just merged a Pull Request See #13763 A search suggests this PR might apply the STATIC macro to some C code. If it Although this is an automated message, feel free to @-reply to me directly if |
be0679d to
b3394d5
Compare
|
Hi, I tried to compile this PR to test it, but I can't seem to enable the idf twai component. While building, I get errors indicating that it doesn't recognize the #include "driver/twai.h"as seen in this error: I've already tried to enable it via idf.py menuconfig, but couldn't find the option there. Would be nice if anyone could help me. |
b19f701 to
79ed82e
Compare
e7cca3d to
8c2132e
Compare
8c2132e to
3b0d58f
Compare
|
I was able to use your branch @IhorNehrutsa , but I had to make some changes to the example code found here: |
6f81e42 to
bd3d673
Compare
06ffe44 to
062ff12
Compare
268ebc9 to
20bc2f6
Compare
|
I tested it today again with an On the receiver side is a (the slowest possible combination) I got a latency of 550 - 650 µs during rotating manually one incremental encoder. |
ac30fb9 to
db6b6ef
Compare
|
This will need to be updated to use the new extmod/common |
f3881c6 to
e96a4ac
Compare
|
Code size report: |
8ada736 to
8932563
Compare
Co-Authored-By: Salvatore Musumeci <[email protected]> Signed-off-by: IhorNehrutsa <[email protected]>
8932563 to
61e694c
Compare
|
@dpgeorge @projectgus |
No worries, thanks for all the work you put into this. If I understand, you're asking for someone else to pick up adding |
|
@projectgus Yes, sure |

This pull request is based on ESP32: CAN(TWAI) driver #7381
Will consistent with the New machine.CAN driver #12337