User Activity

Posted on June 04, 2018 at 16:25Hi Everyone,In HAL_SPI_TransmitReceive, around line 937, there is a gem like that: *((__IO uint8_t*)&hspi->Instance->DR) = (*pTxData);Isn't it a bit dangerous to convert the HW register, which always have a specific s...
Posted on June 04, 2018 at 16:16Hi 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 ...
Posted on June 04, 2018 at 16:06Hi Everyone,I was wondering, why close to the end of HAL_SPI_TransmitReceive (about line 1023) the overflow flag is ignored, and not reported as an error?BR,M.W.#spi #spi-overrun #hal_spi_transmitreceive