Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

A BSP is required so that the SD/MMC cardmode driver will work on a particular system. The functions shown in the table below must be implemented. Pleaser refer to section SD/MMC Cardmode BSP for the details about implementing your own BSP.

The Open()/Close() functions are called upon open/close or medium change; these calls are always matched. The status and information functions (GetBlkCntMax(), GetBusWidthMax(), SetBusWidth(), SetClkFreq(), SetTimeoutData(), SetTimeoutResp()) help configure the new card upon insertion. Lock() and Unlock() surround all card accesses.

The remaining functions (CmdStart(), CmdWaitEnd(), CmdDataRd(), CmdDataWr()) constitute the command execution state machine (see ). A return error from one of the functions will abort the state machine, so the requisite considerations, such as preparing for the next command or preventing further interrupts, must be first handled.

  • No labels