Keil™, An ARM® Company

RL-ARM User's Guide

MCI Interface

The MCI driver requires a few low level routines to interface the SD and MMC flash memory cards.

If the RL-FlashFS source does not contain the MCI driver for your device, you must provide your own MCI driver routines. You can include all driver routines in a single module. It is good practice to use the type of the MCI controller as the name for this module.

RL-FLashFS includes the following MCI drivers in the \Keil\ARM\RL\FlashFS\Drivers directory:

  • MCI_LPC23xx.C - for NXP LPC23xx devices.
  • MCI_LPC24xx.C - for NXP LPC24xx devices.
  • MCI_LPC3000.C - for NXP LPC3000 devices.
  • MCI_SAM3U.C - for Atmel AT91SAM3U devices.
  • MCI_SAM9.C - for Atmel AT91SAM9 devices.
  • MCI_SAM9G20.C - for Atmel AT91SAM9G20 devices.
  • MCI_SAM9RL.C - for Atmel AT91SAM9RL devices.
  • MCI_SAM9260.C - for Atmel AT91SAM9260 devices.
  • MCI_SAM9261.C - for Atmel AT91SAM9261 devices.

You can copy one of the provided driver modules and use it as a template for your own MCI interface driver.

The required MCI driver routines are:

note

  • You must copy the MCI driver to your project directory if you use a flash memory card in a Native mode. If you only use embedded flash or RAM device or MMC/SD card in SPI mode, then an MCI driver is not required.