| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros
SDH Exported Constants
Standard Driver » SDH Driver

## Macros
#define | SDH_ERR_ID
#define | SDH_TIMEOUT
#define | SDH_NO_MEMORY
#define | Successful
#define | Fail
#define | SDH_TYPE_UNKNOWN
#define | SDH_TYPE_SD_HIGH
#define | SDH_TYPE_SD_LOW
#define | SDH_TYPE_MMC
#define | SDH_TYPE_EMMC
#define | SDH_NO_SD_CARD
#define | SDH_ERR_DEVICE
#define | SDH_INIT_TIMEOUT
#define | SDH_SELECT_ERROR
#define | SDH_WRITE_PROTECT
#define | SDH_INIT_ERROR
#define | SDH_CRC7_ERROR
#define | SDH_CRC16_ERROR
#define | SDH_CRC_ERROR
#define | SDH_CMD8_ERROR
#define | MMC_FREQ
#define | SD_FREQ
#define | SDHC_FREQ
#define | SD_PORT0
#define | SD_PORT1
#define | CardDetect_From_GPIO
#define | CardDetect_From_DAT3

## Detailed Description

## Macro Definition Documentation

## ◆ CardDetect_From_DAT3

#define CardDetect_From_DAT3

Card detection pin is DAT3

Definition at line 68 of file sdh.h.

## ◆ CardDetect_From_GPIO

#define CardDetect_From_GPIO

Card detection pin is GPIO

Definition at line 67 of file sdh.h.

## ◆ Fail

#define Fail

Failed

Definition at line 40 of file sdh.h.

## ◆ MMC_FREQ

#define MMC_FREQ

output 20MHz to MMC

Definition at line 61 of file sdh.h.

## ◆ SD_FREQ

#define SD_FREQ

output 25MHz to SD

Definition at line 62 of file sdh.h.

## ◆ SD_PORT0

#define SD_PORT0

Card select SD0

Definition at line 65 of file sdh.h.

## ◆ SD_PORT1

#define SD_PORT1

Card select SD1

Definition at line 66 of file sdh.h.

## ◆ SDH_CMD8_ERROR

#define SDH_CMD8_ERROR

Command 8 error

Definition at line 59 of file sdh.h.

## ◆ SDH_CRC16_ERROR

#define SDH_CRC16_ERROR

CRC 16 error

Definition at line 57 of file sdh.h.

## ◆ SDH_CRC7_ERROR

#define SDH_CRC7_ERROR

CRC 7 error

Definition at line 56 of file sdh.h.

## ◆ SDH_CRC_ERROR

#define SDH_CRC_ERROR

CRC error

Definition at line 58 of file sdh.h.

## ◆ SDH_ERR_DEVICE

#define SDH_ERR_DEVICE

Device error

Definition at line 51 of file sdh.h.

## ◆ SDH_ERR_ID

#define SDH_ERR_ID

SDH error ID

Definition at line 33 of file sdh.h.

## ◆ SDH_INIT_ERROR

#define SDH_INIT_ERROR

Card init error

Definition at line 55 of file sdh.h.

## ◆ SDH_INIT_TIMEOUT

#define SDH_INIT_TIMEOUT

Card init timeout

Definition at line 52 of file sdh.h.

## ◆ SDH_NO_MEMORY

#define SDH_NO_MEMORY

OOM

Definition at line 36 of file sdh.h.

## ◆ SDH_NO_SD_CARD

#define SDH_NO_SD_CARD

Card removed

Definition at line 50 of file sdh.h.

## ◆ SDH_SELECT_ERROR

#define SDH_SELECT_ERROR

Card select error

Definition at line 53 of file sdh.h.

## ◆ SDH_TIMEOUT

#define SDH_TIMEOUT

Timeout

Definition at line 35 of file sdh.h.

## ◆ SDH_TYPE_EMMC

#define SDH_TYPE_EMMC

eMMC card

Definition at line 47 of file sdh.h.

## ◆ SDH_TYPE_MMC

#define SDH_TYPE_MMC

MMC card

Definition at line 46 of file sdh.h.

## ◆ SDH_TYPE_SD_HIGH

#define SDH_TYPE_SD_HIGH

SDHC card

Definition at line 44 of file sdh.h.

## ◆ SDH_TYPE_SD_LOW

#define SDH_TYPE_SD_LOW

SD card

Definition at line 45 of file sdh.h.

## ◆ SDH_TYPE_UNKNOWN

#define SDH_TYPE_UNKNOWN

Unknown card type

Definition at line 43 of file sdh.h.

## ◆ SDH_WRITE_PROTECT

#define SDH_WRITE_PROTECT

Card write protect

Definition at line 54 of file sdh.h.

## ◆ SDHC_FREQ

#define SDHC_FREQ

output 50MHz to SDH

Definition at line 63 of file sdh.h.

## ◆ Successful

#define Successful

Success

Definition at line 39 of file sdh.h.