Reading SPI data register after RXNE has asserted
Hello, I found a problem trying to read the Data Register of SPI over STM32L4:If I read the register after wait that RXNE is went to 0, like the follow code:// Wait until RXNE flag is reset while (!UTILITY_READ_REGISTER_BIT(SPI1->SR,SPI_SR_RXNE)); //...