Replies: 1 comment
-
Ok, to make it compile for the Teensy 4.0 as well just three additional " || (ARDUINO_TEENSY40)" are needed in three files, EVE_target.h, EVE_target_Aduino_Teensy4.h and EVE_cpp_target.cpp. So I just did this locally and also added a block to platformio.ini and it compiles. The change with SPI.beginTransaction() / SPI.endTransaction() is more complicated in what the implications are. So a better idea would be to put that in the user space and use But then there is the issue that a number of targets, including Teensy 4x is using DMA with the _burst() functions. Either is blocking untill the DMA is done which really defeats the purpose of using DMA, or it will not work at all. So code using additional SPI nodes should be using a state machine that is using EVE_busy() to determine if a transfer is still ongoing and only switch states to use a different SPI node if EVE_busy() returns E_OK. |
Beta Was this translation helpful? Give feedback.
-
Hi @RudolphRiedel
I have created a branch where I added support for Teensy 4 and also implemented support different SPI speed when sharing the SPI bus with other components. At the moment I only implemented the SPI changes for the Teensy target.
5.x...k-ljung:FT800-FT813:5.x
Missed the Teensy 4 configuration in PlatformIO
e1af02d
Removed wrong SPI calls
k-ljung@f0145f7
Beta Was this translation helpful? Give feedback.
All reactions