Skip to content

Support For LPSPI Slave Mode? (Teensy4.1) #157

Closed Answered by mciantyre
SimonLyke asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Simon. Today's imxrt-hal only supports using LPSPI peripheral as a controller. There's no support for using the LPSPI peripheral as a device.

That being said, it might not be too difficult to add LPSPI device support. mciantyre/imxrt-hal@fbc9589 is my quick experiment. The only driver addition is a method to enable device support. The rest of the commit introduces hardware examples and board support for the examples. I'm testing on two of my non-Teensy boards. See the commit message for more information.

Until there's a nicer API available, folks will need to use the LPSPI lower-level APIs to coordinate device I/O. rtic_spi_device.rs shows one way to do that. If you have contributions…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@SimonLyke
Comment options

@SimonLyke
Comment options

@SimonLyke
Comment options

@mciantyre
Comment options

@SimonLyke
Comment options

Answer selected by SimonLyke
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants