/*------------------------------------------------------------------------------ * MDK Middleware - Component ::File System:Drive * Copyright (c) 2004-2019 Arm Limited (or its affiliates). All rights reserved. *------------------------------------------------------------------------------ * Name: FS_Config_MC_0.h * Purpose: File System Configuration for Memory Card Drive * Rev.: V6.2.0 *----------------------------------------------------------------------------*/ //-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- // Memory Card Drive 0 // Configuration for SD/SDHC/MMC Memory Card assigned to drive letter "M0:" #define MC0_ENABLE 1 // Connect to hardware via Driver_MCI# <0-255> // Select driver control block for hardware interface #define MC0_MCI_DRIVER 0 // Connect to hardware via Driver_SPI# <0-255> // Select driver control block for hardware interface when in SPI mode #define MC0_SPI_DRIVER 0 // Memory Card Interface Mode <0=>Native <1=>SPI // Native uses a SD Bus with up to 8 data lines, CLK, and CMD // SPI uses 2 data lines (MOSI and MISO), SCLK and CS #define MC0_SPI 0 // Drive Cache Size <0=>OFF <1=>1 KB <2=>2 KB <4=>4 KB // <8=>8 KB <16=>16 KB <32=>32 KB // Drive Cache stores data sectors and may be increased to speed-up // file read/write operations on this drive (default: 4 KB) #define MC0_CACHE_SIZE 4 // Locate Drive Cache and Drive Buffer // Some microcontrollers support DMA only in specific memory areas and // require to locate the drive buffers at a fixed address. #define MC0_CACHE_RELOC 0 // Base address <0x0000-0xFFFFFE00:0x200> // Set buffer base address to RAM areas that support DMA with the drive. #define MC0_CACHE_ADDR 0x7FD00000 // // Filename Cache Size <0-1000000> // Define number of cached file or directory names. // 48 bytes of RAM is required for each cached name. #define MC0_NAME_CACHE_SIZE 0 // Use FAT Journal // Protect File Allocation Table and Directory Entries for // fail-safe operation. #define MC0_FAT_JOURNAL 0 //