重新调整fatfs的包含路径

This commit is contained in:
a92126 2024-10-08 16:14:30 +08:00
parent 4965ad943d
commit 16f369b956
6 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@
/* storage control modules to the FatFs module with a defined API. */ /* storage control modules to the FatFs module with a defined API. */
/*-----------------------------------------------------------------------*/ /*-----------------------------------------------------------------------*/
#include "ff.h" /* Obtains integer types */ #include "fatfs/ff.h" /* Obtains integer types */
#include "fatfs/diskio.h" /* Declarations of disk functions */ #include "fatfs/diskio.h" /* Declarations of disk functions */
#include "types.h" #include "types.h"
#include "drivers/tmio.h" #include "drivers/tmio.h"

View File

@ -20,7 +20,7 @@
#include <string.h> #include <string.h>
#include "ff.h" /* Declarations of FatFs API */ #include "fatfs/ff.h" /* Declarations of FatFs API */
#include "diskio.h" /* Declarations of device I/O functions */ #include "diskio.h" /* Declarations of device I/O functions */

View File

@ -2,7 +2,7 @@
/* A Sample Code of User Provided OS Dependent Functions for FatFs */ /* A Sample Code of User Provided OS Dependent Functions for FatFs */
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/
#include "ff.h" #include "fatfs/ff.h"
#if FF_USE_LFN == 3 /* Use dynamic memory allocation */ #if FF_USE_LFN == 3 /* Use dynamic memory allocation */

View File

@ -23,7 +23,7 @@
*/ */
#include "ff.h" #include "fatfs/ff.h"
#if FF_USE_LFN != 0 /* This module will be blanked if in non-LFN configuration */ #if FF_USE_LFN != 0 /* This module will be blanked if in non-LFN configuration */

View File

@ -19,7 +19,7 @@
#include "types.h" #include "types.h"
#include "error_codes.h" #include "error_codes.h"
#include "fs.h" #include "fs.h"
#include "ff.h" #include "fatfs/ff.h"
static const char *const g_fsPathTable[FS_MAX_DRIVES] = {FS_DRIVE_NAMES}; static const char *const g_fsPathTable[FS_MAX_DRIVES] = {FS_DRIVE_NAMES};

View File

@ -744,8 +744,8 @@ u32 SDMMC_getCid(const u8 devNum, u32 cidOut[4])
return SDMMC_ERR_NONE; return SDMMC_ERR_NONE;
} }
#include "ff.h" // Needed for the "byte" type used in diskio.h. #include "fatfs/ff.h" // Needed for the "byte" type used in diskio.h.
#include "diskio.h" #include "fatfs/diskio.h"
u8 SDMMC_getDiskStatus(const u8 devNum) u8 SDMMC_getDiskStatus(const u8 devNum)
{ {
if(devNum > SDMMC_MAX_DEV_NUM) return STA_NODISK | STA_NOINIT; if(devNum > SDMMC_MAX_DEV_NUM) return STA_NODISK | STA_NOINIT;