i have been trying learn embedded programming in rust. i picked up a blue pill and stm32f1xx-hal crate. stm32f1xx-hal spi this is spi docs. but i dont find any way to configure spi as slave or other configuration.
To access it via PAC, hal gets ownership of spi so cant use that one.
It may also be that the SPI code in stm32f1xx-hal is only intended as a master. If so, I'd open a ticket against the repository and they may be able to point you in the right direction.
Trying to implement something like this is the perfect way to improve your knowledge. It doesn't matter that you don't know how to implement it at the moment, people are always happy to provide guidance or answer questions.
Maintainer of that crate here . Configuring it as a slave is not implemented yet unfortunately. Feel free to open an issue about this :).
Pull requests are always welcome and I'd be more than happy to point you in the right direction for implementing this, just contact me on github or matrix as Michael said.