C
BYTE ReadMediaManual();
Description
The MDD_SDSPI_ReadMedia function will read one byte from the SPI port.
Preconditions
None.
Returns
The byte read.
Side Effects
None.
Remarks
This function replaces ReadSPI, since some implementations of that function will initialize SSPBUF/SPIBUF to 0x00 when reading. The card expects 0xFF. This function is for use on a PIC18 when the clock speed is so high that the maximum SPI clock prescaler cannot reduce the SPI clock below the maximum SD card initialization speed.