stm32f4xx_hal_spi.c, HAL_SPI_TransmitReceive - conversion of HW register pointer
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...