no sd enable (#1894)
* no sd enable * add assert * Revert "no sd enable" This reverts commit fd997381ee884c890fe7664e56ed2b0f0caef2ff.
This commit is contained in:
parent
ee1396e86e
commit
e4c5ca4af0
|
@ -476,6 +476,8 @@ void initMmcCard(void) {
|
|||
return;
|
||||
}
|
||||
|
||||
efiAssertVoid(OBD_PCM_Processor_Fault, CONFIG(sdCardSpiDevice) == SPI_NONE, "SD card enabled, but no SPI device configured!");
|
||||
|
||||
// todo: reuse initSpiCs method?
|
||||
hs_spicfg.ssport = ls_spicfg.ssport = getHwPort("mmc", CONFIG(sdCardCsPin));
|
||||
hs_spicfg.sspad = ls_spicfg.sspad = getHwPin("mmc", CONFIG(sdCardCsPin));
|
||||
|
|
Loading…
Reference in New Issue