Skip to content

Conversation

@pfzetto
Copy link

@pfzetto pfzetto commented Nov 20, 2025

Hi,
currently there doesn't seem to be a way to configure the CS-pin of the rp2040-hal::Spi device.
This PR implements the ValidSpiPinout trait on (Tx,Rx,Sck,Cs) to allow setting the Cs pin of the SPI device.

I required setting the CS-pin when using the RP2040 as a SPI slave.

Cheers

Implements the `ValidSpiPinout` trait on `(Tx,Rx,Sck,Cs)` to allow
setting the Cs pin of the SPI device.
@jannic
Copy link
Member

jannic commented Nov 27, 2025

Looks good, thank you!
Can you apply the same change to rp235x-hal/src/spi/pins.rs?

Implements `ValidSpiPinout` trait on `(Tx,Rx,Sck,Cs)` to allow setting
the Cs pon of the SPI device.
@pfzetto pfzetto changed the title rp2040-hal: implement ValidSpiPinout for CS pin. implement ValidSpiPinout for CS pin. Nov 27, 2025
@pfzetto
Copy link
Author

pfzetto commented Nov 27, 2025

Of course, implemented in 4d7a63b.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants