_fat.def
来自「使用PIC24 16位单片机 读写SD卡 支持FAT32」· DEF 代码 · 共 35 行
DEF
35 行
#ifndef _FAT16_DEF_
// Define FAT16_DYNAMIC_MEM to use malloc for allocating
// FILE structure space. uncomment all three lines
//#define FAT16_DYNAMIC_MEM
//#define FAT16_malloc malloc
//#define FAT16_free
// The FAT16_MAX_FILES_OPEN #define is only applicable when Dynamic
// memeory allocation is not used (FAT16_DYNAMIC_MEM not defined).
// Defines how many concurent open files can exist at the same time.
// Takes up static memory. If you do not need to open more than one
// file at the same time, then you should set this to 1 to reduce
// memory usage
#define FAT16_MAX_FILES_OPEN 2
// Select appropriate media interface port based on your hardware.
//#define FAT_MEDIA_IF_SPI
#define FAT_MEDIA_IF_SPI1
//#define FAT_MEDIA_IF_SPI2
// Define the system clock speed
#define SYSTEM_CLOCK (DWORD)4000000
// Defines an output to a status LED that will blink when a read or write is in progress
#if 0
#define STATUSLED
#define STLED PORTDbits.RD0
#define STTRIS TRISDbits.TRISD0
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?