We have found a couple of PAL_osWaitMsecs(2); statements in the ddc_mcbsp.c file under the DDC_McBspSpiTransfer() function. Can you tell us or find out from the drivers group for us why these calls were put there and if they’re necessary? It’s forcing us to put in delays on the SPI master side and SPI is our primary communications channel. Here are the comments in the file.
/*
5. After the sample rate generator is released from reset,
wait two sample rate generator clock periods for
the McBSP logic to stabilize.*/
PAL_osWaitMsecs(2);
/*
7. After the transmitter and receiver are released from reset, wait
two sample rate generator clock periods for the McBSP logic
to stabilize.*/
PAL_osWaitMsecs(2);
Can someone provide more insight it would be helpful.
Brad