Introduction - If you have any usage issues, please Google them yourself
STM32 implementation in the following SPI driver, on the RC531 several SPI bus driver, including software simulation and hardware implementation to achieve SPI SPI interface, with the reference value.