libClearCore/src/SdCardDriver.cpp
SdCardDriver::SdCardDriver(const PeripheralRoute *misoInfo,
                           const PeripheralRoute *ssInfo,
                           const PeripheralRoute *sckInfo,
                           const PeripheralRoute *mosiInfo,
                           uint8_t peripheral)
    : SerialBase(misoInfo, ssInfo, sckInfo, mosiInfo, peripheral),
      m_errorCode(0) {
    PortMode(SerialBase::SPI);
    SpiClock(SCK_LOW, LEAD_SAMPLE);
    PortOpen();
}
/**
    Construct and wire into the board.
**/
Construct and wire into the board.
Construct and wire into the board .
SdCardDriver::SdCardDriver(const PeripheralRoute *misoInfo,
                           const PeripheralRoute *ssInfo,
                           const PeripheralRoute *sckInfo,
                           const PeripheralRoute *mosiInfo,
                           uint8_t peripheral)
    : SerialBase(misoInfo, ssInfo, sckInfo, mosiInfo, peripheral),
      m_errorCode(0) {
    PortMode(SerialBase::SPI);
    SpiClock(SCK_LOW, LEAD_SAMPLE);
    PortOpen();
}
SdCardDriver :: SdCardDriver ( const PeripheralRoute * misoInfo , const PeripheralRoute * ssInfo , const PeripheralRoute * sckInfo , const PeripheralRoute * mosiInfo , uint8_t peripheral ) : SerialBase ( misoInfo , ssInfo , sckInfo , mosiInfo , peripheral ) , m_errorCode ( 0 ) { PortMode ( SerialBase :: SPI ) ; SpiClock ( SCK_LOW , LEAD_SAMPLE ) ; PortOpen ( ) ; }
Construct and wire into the board.
Construct and wire into the board .