Question
stm32f4xx_hal_spi.c, HAL_SPI_TransmitReceive - why would you need synchronisation variable?
Posted on June 04, 2018 at 16:16
Hi Everyone,
In HAL_SPI_TransmitReceive, in the part actually transmitting data, there is a txallowed variable, blocking sending until the reception is done. If SR is cached and checked for the RXNE flag first, before the TXE is checked, this flag is not necessary. Why would you need it?
BR,
M.W.
#spi #hal_spi_transmitreceive #tx-rx-sync #data-integrity