Skip to content

Commit 3447230

Browse files
Alex Marchdpgeorge
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy