|
Good morning
I use the SPI0, without any interrupt, I have this effect.
It will never go out of the while loop, even after a clear.
Is there an explanation ????
DSPI_HAL_ClearStatusFlag( baseAddr, kDspiRxFifoDrainRequest );
while( DSPI_HAL_GetStatusFlag( baseAddr, kDspiRxFifoDrainRequest ) )
{
uint32_t b = DSPI_HAL_ReadData( baseAddr );
}
Thank You
Pietro
Hi,
I recommend you to have a look at the examples provided in the KSDK folder. In the path C:\Freescale\KSDK_1.2.0\examples\frdmk64f\driver_examples\dspi\dspi_polling\master
you will find an example for the SPI usage.
Hope this information can help you
Best Regards,
Adrian Sanchez Cano
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------