Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Anchor11422631142263Acquire/release SD/MMC card bus lock. Anchor11422641142264

Arguments

...

unit_nbr Anchor11422661142266

Unit number of SD/MMC card.

...

Returned Value

...

11422681142268None. Anchor11422691142269

Notes/Warnings

...

...

  1. 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.

...

  1. 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.