AnsweredAssumed Answered

stm32f4xx_hal_spi.c, HAL_SPI_TransmitReceive - why would you need synchronisation variable?

Question asked by Marcin Wolcendorf on Jun 4, 2018
Latest reply on Jun 7, 2018 by Marcin Wolcendorf

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?