MCPcopy Create free account
hub / github.com/SmingHub/Sming / sdInit

Function sdInit

samples/SDCard/app/application.cpp:233–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233bool sdInit()
234{
235 // select between hardware SPI or software SPI. Comment out one or the other
236 // SDCardSPI = new SPISoft(PIN_CARD_DO, PIN_CARD_DI, PIN_CARD_CK, 0);
237 SDCardSPI = &SPI;
238 if(!SDCard_begin(PIN_CARD_SS, SPI_FREQ_LIMIT)) {
239 Serial.println(_F("SPI init failed"));
240 return false;
241 }
242
243 return true;
244}
245
246void runTest(uint32_t state = 0)
247{

Callers 1

runTestFunction · 0.85

Calls 2

SDCard_beginFunction · 0.85
printlnMethod · 0.80

Tested by

no test coverage detected