|
|||||||||||
Technical Support On-Line Manuals RL-ARM User's Guide (MDK v4) RL-RTX RL-FlashFS Technical Data NAND Flash Translation Layer Embedded File System Memory Organization Allocation Information File Data Fragments Limitations Configuring RL-FlashFS Source Files Configuration Options File System Flash Drive SPI Flash Drive RAM Drive Memory Card Drive USB Flash Drive NAND Flash Drive Using RL-FlashFS Using Flash Devices Flash Driver Sector Layout Converting FlashPrg.c Converting FlashDev.c Limitations When Using Internal Flash Using SPI Flash Devices SPI Flash Driver SPI Sector Layout Using RAM Devices Using Memory Card Devices MCI Driver SPI Driver Using FlashFS with USB Devices FAT Driver Using NAND Devices NAND Driver NAND Page Data Layout Function Overview File I/O Routines File Maintenance Routines File Time Support Routines Flash Driver Routines FAT Driver Routines MCI Driver Routines SPI Driver Routines NAND Driver Routines IOC Interface Routines System Routines RL-TCPnet RL-CAN RL-USB Example Programs Library Reference Appendix |
MCI DriverMCI Driver describes the low-level routines to interface the SD/MMC flash memory cards in SD-Native mode. The host controller must have a Memory Card Interface peripheral that supports SD/MMC Memory Card interfacing in native mode. An MCI Driver is not required when the device is used in SPI mode. Driver modules are located in the folder \ARM\RL\FlashFS\Drivers and have the file name MCI_device_family.c. Copy the driver module to the project folder. Any module can be used as a template for creating new drivers. The driver control block structure is defined in the file File_Config.h as follows: typedef struct { BOOL (*Init) (void); BOOL (*UnInit) (void); void (*Delay) (U32 us); BOOL (*BusMode) (U32 mode); BOOL (*BusWidth) (U32 width); BOOL (*BusSpeed) (U32 kbaud); U32 (*Command) (U8 cmd, U32 arg, U32 resp, U32 *rp); BOOL (*ReadBlock) (U32 bl, U8 *buf, U32 cnt); BOOL (*WriteBlock) (U32 bl, U8 *buf, U32 cnt); BOOL (*SetDma) (U32 mode, U8 *buf, U32 cnt); /* NULL for local DMA or non DMA */ U32 (*CheckMedia) (void); /* Optional, NULL if not existing */ } const MCI_DRV; Developers can adapt the code in the following functions:
| ||||||||||
|
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.