#include <file_config.h>
U32 CheckMedia (
void); /* Optional; NULL if not existing */
Description
The function CheckMedia checks the SD/MMC Memory Card
status. It reads the Card Detect (CD) and Write Protect
(WP) digital inputs. If CD and WP digital inputs from SD Card socket
are not connected, this function might be omitted.
The function is part of the SPI
Driver. The prototype is defined in the file
File_Config.h. Developers must customize the function.
Return Value
The CheckMedia function returns the or-ed status of the
following values:
M_INSERTED
SD Card is inserted in the socket.
M_PROTECTED
SD Card is read-only. Lock slider is in position Locked.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.