User can override ffconf.h

This commit is contained in:
WangGaoJie
2025-01-15 10:22:03 +08:00
parent a02da6d735
commit 778918d6f1

View File

@@ -1,9 +1,16 @@
/*---------------------------------------------------------------------------/ /*---------------------------------------------------------------------------/
/ Configurations of FatFs Module / Configurations of FatFs Module
/---------------------------------------------------------------------------*/ /---------------------------------------------------------------------------*/
#define FF_STRINGIZE(x) FF_STRINGIZE2(x)
#define FF_STRINGIZE2(x) #x
#define FFCONF_DEF 5380 /* Revision ID */ #define FFCONF_DEF 5380 /* Revision ID */
/* User can override ffconf.h
/ FF_CONFIG as a header file to include (-DFF_CONFIG=ff_config.h) */
#ifdef FF_CONFIG
#include FF_STRINGIZE(FF_CONFIG)
#else
/*---------------------------------------------------------------------------/ /*---------------------------------------------------------------------------/
/ Function Configurations / Function Configurations
/---------------------------------------------------------------------------*/ /---------------------------------------------------------------------------*/
@@ -294,3 +301,4 @@
/*--- End of configuration options ---*/ /*--- End of configuration options ---*/
#endif