This is the HCC Embedded Product Documentation.

HCC Embedded Main Website   |    HCC Documentation Home Page  |     Contacting HCC Embedded



You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Contents

Set the system configuration options in the file src/config/config_mdriver_mmcsd.h. This section lists the available configuration options and their default values.

LPC32XX, LPC23XX, LPC24XX, LPC17XX

The CPU config. The defaults are 1, 2, 3 and 4 respectively.

MMCSD_TARGET_CPU

The default is LPC23XX.

PLL_CLK_IN_KHZ 

The ARM_CLK in KHz. The default is 96000.

SDHC_ENABLE

Set this to enable SDHC support. The default is 1.

VALID_VOLTAGE_RANGE

The valid voltage range. The default, 0x00FF8000, means 2.7-3.6 V.

SD_ALLOW_4BIT

Set this to enable 4 bit mode. The default is 1.

DMA_CHANNEL

The DMA channel to use.  0

Pin sets

Use the following three options to set the right setting for your board. Set the macro value to 1 to use the left-hand set of pins in the table below. Set the macro value to 2 to use the right-hand set of pins.

MCI_PINSET1

The default is 1.

MCI_PINSET2

The default is 2.

MCI_PINSET 

The default is MCI_PINSET1

The LCP23(64/66/68/78) chips can use only the first row of GPIO pins for the MCI. The LPC2468/78 can use the second row too.

 MCI_PINSET1MCI_PINSET2
MCICLKP0.19P1.2
MCICMD

P0.20 

P1.3
MCIPWRP0.21P1.5
MCIDAT0 P0.22P1.6
MCIDAT1 P2.11P1.7
MCIDAT2P2.12P1.11
MCIDAT3P2.13P1.12

USE_CD

Set this to 0 (the default) if the card-detect of the mmc/sd card is not connected to the chip. 

PORT_CD

Specify to which port CD is connected to. 0

PIN_CD

Specify the pin on the port.

PIN_VAL_CD

Specify the value of the pin if CD is active.

USE_WP

Set this to zero (the default) if the write-protect of the mmc/sd card is not connected to the chip.

PORT_WP

Specify the port WP is connected to.

PIN_WP

Specify the pin on the port.

PIN_VAL_WP

Specify the value of the pin if WP is active.