aboutsummaryrefslogtreecommitdiffstats
path: root/src/gfile/gfile_fatfs_wrapper.h
blob: 8f2d24e8e8d3e4dba5a84a9d43b9b702f9fac53e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * This file is subject to the terms of the GFX License. If a copy of
 * the license was not distributed with this file, you can obtain one at:
 *
 *              http://ugfx.org/license.html
 */

/**
 * @file    src/gfile/gfile_fatfs_wrapper.h
 * @brief   GFILE FATFS wrapper.
 *
 */

#ifndef _FATFS_WRAPPER
#define _FATFS_WRAPPER

// Include the fatfs configuration from the local directory not the original source folder
#include "ffconf.h"

// Prevent preprocessor redefinition warnings
#include "../../3rdparty/fatfs-0.13/source/integer.h"
#if defined(_T) && !defined(_INC_TCHAR)
	#define _INC_TCHAR
#endif

// Include the fatfs API
#include "../../3rdparty/fatfs-0.13/source/ff.h"

// Include the fatfs diskio API
#include "../../3rdparty/fatfs-0.13/source/diskio.h"

#endif //_FATFS_WRAPPER