Description
Source
Call Graph
Start Line: 103
void WaitSdConn(unsigned char mciID)
{
Pin* pPin = 0;
if(mciID == 0) {
#ifdef BOARD_SD_PIN_CD
Pin pinMciCardDetect = BOARD_SD_PIN_CD;
pPin = &pinMciCardDetect;
#endif
} else {
#ifdef BOARD_SD_MCI1_PIN_CD
Pin pinMciCardDetect = BOARD_SD_MCI1_PIN_CD;
pPin = &pinMciCardDetect;
#endif
}
if(pPin != 0) {
PIO_Configure(pPin, 1);
TRACE_INFO("Please connect a SD card ...\n\r");
while (PIO_Get(pPin) != 0);
TRACE_INFO("SD card connection detected\n\r");
} else {
TRACE_INFO("SD card detection not available, assuming card is present\n\r");
}
}