КАТЕГОРИИ:
АстрономияБиологияГеографияДругие языкиДругоеИнформатикаИсторияКультураЛитератураЛогикаМатематикаМедицинаМеханикаОбразованиеОхрана трудаПедагогикаПолитикаПравоПсихологияРиторикаСоциологияСпортСтроительствоТехнологияФизикаФилософияФинансыХимияЧерчениеЭкологияЭкономикаЭлектроника
|
Memory Card DriveMemory Card Drive options allow configuring RL-FlashFS to use memory cards. Set the options manually or use the Configuration Wizard. The RL-FlashFS supports two Memory Card drives. The options are identical for both drives and can operate at the same time. The following options can be set:
§ #define MC0_EN 1 // 0=disable; 1=enable
RL-FlashFS can use SPI mode or SD/MMC native mode to initialize and control the memory card drive. § SPI mode - the required routines are in the low level SPI driver. It handles data transfer on the SPI interface. In SPI mode the memory card control is handled in software. § Native mode - can be used if a device has integrated a Multimedia Card Interface peripheral. The required routines are in the low level MCI driver module. Native mode is faster then SPI mode because the memory card control is handled in hardware. The SPI driver or Native mode driver is not included in the RL-FlashFS library because it is device dependent. Hence, copy the driver to the project folder and include it into the project. #define MC0_SPI 0 // 0=SD-Native; 1=SPI
§ #define MC0_CASZ 4
§ #define MC0_RELOC 1 // 0=disable; 1=enable
§ #define MC0_CADR 0x7FD00000
§ #define MC0_FSJ 1 // 0=disable; 1=enable
§ #define MC0_DEF 1 // 0=disable; 1=enable
|