...
Anchor |
---|
1046685 | 1046685 | SD/MMC CardMode BSP Overview Anchor |
---|
1058986 | 1058986 | 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 C-5 “SDSD/MMC Cardmode BSP” on page 425 BSP for the details about implementing your own BSP.
Anchor |
---|
1059051 | 1059051 | HTML Table |
---|
summary | class | Plain_Table |
---|
Table Row (tr) |
---|
Table Cell (td) |
---|
Anchor |
---|
1059056 | 1059056 | Function Table Cell (td) |
---|
Anchor |
---|
1059058 | 1059058 | Description Table Row (tr) |
---|
Table Cell (td) |
---|
Anchor |
---|
1059060 | 1059060 Panel |
---|
Function | Description |
---|
FSDev_SD_Card_BSP_Open()
|
Table Cell (td) |
---|
Anchor |
---|
| 1059062 | 1059062 | Open (initialize) SD/MMC card interface. |
Table Row (tr) |
---|
Table Cell (td) |
---|
Anchor |
---|
1059064 | 1059064 | FSDev_SD_Card_BSP_Close()
|
td Anchor |
---|
1059066 | 1059066 | Close (uninitialize) SD/MMC card interface. |
Table Row (tr) |
---|
Table Cell (td) |
anchor1059068 | 1059068 | Table Cell (td) |
---|
Anchor |
---|
1059070 | 1059070 | Acquire SD/MMC card bus lock. |
tr Table Cell (td) |
---|
Anchor |
---|
1059072 | 1059072 | FSDev_SD_Card_BSP_Unlock()
|
Table Cell (td) |
anchor1059074 | 1059074 | Release SD/MMC card bus lock. |
Table Row (tr) |
---|
Table Cell (td) |
---|
Anchor |
---|
1059076 | 1059076 |
FSDev_SD_Card_BSP_CmdStart()
|
Table Cell (td) |
---|
Anchor |
---|
1059078 | 1059078 | Table Row (tr) |
td Anchor |
---|
1059080 | 1059080 | FSDev_SD_Card_BSP_CmdWaitEnd()
|
Table Cell (td) |
---|
Anchor |
---|
1059082 | 1059082 | Wait for a command to end and get response. |
Table Row (tr) |
---|
Table Cell (td) |
anchor1059084 | 1059084 | FSDev_SD_Card_BSP_CmdDataRd()
|
Table Cell (td) |
---|
Anchor |
---|
1059086 | 1059086 | Read data following command. |
Table Row (tr) |
td Anchor |
---|
1059088 | 1059088 | FSDev_SD_Card_BSP_CmdDataWr()
|
Table Cell (td) |
---|
Anchor |
---|
1059090 | 1059090 | Write data following command. |
Table Row (tr) |
td Anchor |
---|
1059092 | 1059092 | FSDev_SD_Card_BSP_GetBlkCntMax()
|
Table Cell (td) |
---|
Anchor |
10590941059094 | Table Row (tr) |
---|
Table Cell (td) |
anchor1059096 | 1059096 | FSDev_SD_Card_BSP_GetBusWidthMax()
|
td Anchor |
---|
1059098 | 1059098 | Get maximum bus width, in bits. |
tr Table Cell (td) |
---|
Anchor |
---|
1059100 | 1059100 | FSDev_SD_Card_BSP_SetBusWidth()
|
Table Cell (td) |
---|
Anchor |
---|
1059102 | 1059102tr Table Cell (td) |
---|
Anchor |
---|
1059104 | 1059104 | FSDev_SD_Card_BSP_SetClkFreq()
|
Table Cell (td) |
---|
Anchor |
---|
1059106 | 1059106 | Table Row (tr) |
td Anchor |
---|
1059108 | 1059108 | FSDev_SD_Card_BSP_SetTimeoutData()
|
td Anchor |
---|
1059110 | 1059110 | tr Table Cell (td) |
---|
Anchor |
---|
1059112 | 1059112 | FSDev_SD_Card_BSP_SetTimeoutResp()
|
Table Cell (td) |
---|
Anchor |
---|
1059114 | 1059114
...
...
...
Anchor |
---|
1046703 | 1046703 | 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.
Anchor |
---|
1046704 | 1046704The remaining functions (CmdStart()
, CmdWaitEnd()
, CmdDataRd()
, CmdDataWr()
) constitute the command execution state machine (see Figure 12Figure - 9Command execution). 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. Anchor |
---|
1054251 | 1054251 | Image Removed ...
Panel |
---|
Image Added |