Question
STM32F4 SPI Clock polarity - How to change it dynamically?
Posted on May 09, 2013 at 22:50
We can initialize the SPI port clock polarity by :-
SPI_InitStruct.SPI_CPOL = SPI_CPOL_Low; SPI_InitStruct.SPI_CPHA = SPI_CPHA_1Edge; If we have several slaves connected to the SPI port, different slave operated using different clock polarity, is there any way to change those 2 parameters easily without using the above method again? Thanks. #stm32f4-spi-cpol-cpha