Skip to content

How to reuse SPI on other pins #919

Closed Answered by bjoernQ
yanshay asked this question in Q&A
Discussion options

You must be logged in to vote

Sounds like an interesting design choice of that board to me. Are there schematics available for that board?

When you create the SPI driver you can pass the peripheral and the pins as &mut references instead of moving them into the driver. Then when you drop the driver you can recreate it

But usually there are multiple devices connected to the same SPI bus and the device to talk to is selected by its CS line

Replies: 7 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by yanshay
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yanshay
Comment options

Comment options

You must be logged in to vote
1 reply
@yanshay
Comment options

Comment options

You must be logged in to vote
1 reply
@yanshay
Comment options

Comment options

You must be logged in to vote
1 reply
@yanshay
Comment options

Comment options

You must be logged in to vote
4 replies
@yanshay
Comment options

@bjoernQ
Comment options

@yanshay
Comment options

@yanshay
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants