8000 lib/fatfs: Unify fatfs configuration. · rpavlik/circuitpython@3447230 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3447230

Browse files
Alex Marchdpgeorge
Alex March
authored andcommitted
lib/fatfs: Unify fatfs configuration.
- A single ffcon.h file to configure fatfs settings across ports. - A single diskio.h file with common drive definitions. - Removed now reduntand ffconf_template.h.
1 parent 6e68a68 commit 3447230

File tree

2 files changed

+339
-266
lines changed

2 files changed

+339
-266
lines changed

lib/fatfs/diskio.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ DRESULT disk_read (BYTE pdrv, BYTE* buff, DWORD sector, UINT count);
3838
DRESULT disk_write (BYTE pdrv, const BYTE* buff, DWORD sector, UINT count);
3939
DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
4040

41+
/* Definitions of physical drive number for each media */
42+
#define PD_FLASH (0) /* Map FLASH drive to drive number 0 */
43+
#define PD_SDCARD (1) /* Map SDCARD drive to drive number 1 */
44+
#define PD_USER (2) /* Map USER mounts to drive number 2 */
4145

4246
/* Disk Status Bits (DSTATUS) */
4347

0 commit comments

Comments
 (0)
0