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 4 Next »

void FSDev_SD_Card_BSP_Lock   (FS_QTY  unit_nbr);
void  FSDev_SD_Card_BSP_Unlock (FS_QTY  unit_nbr);

File

Called from

Code enabled by

fs_dev_sd_card_bsp.c

SD/MMC cardmode driver

N/A

Acquire/release SD/MMC card bus lock.

Arguments

unit_nbr

Unit number of SD/MMC card.

Returned Value

None.

Notes/Warnings

FSDev_SD_Card_BSP_Lock() will be called before the driver begins to access the SD/MMC card bus. The application should not use the same bus to access another device until the matching call to FSDev_SD_Card_BSP_Unlock() has been made.

The clock frequency, bus width and timeouts set by the FSDev_SD_Card_BSP_Set####() functions are parameters of the card, not the bus. If multiple cards are located on the same bus, those parameters must be saved (in memory) when set and restored when FSDev_SD_Card_BSP_Lock() is called.

  • No labels