mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			825 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			825 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*-----------------------------------------------------------------------
 | |
| /  PFF - Low level disk interface module include file    (C)ChaN, 2010
 | |
| /-----------------------------------------------------------------------*/
 | |
| 
 | |
| #ifndef _DISKIO
 | |
| 
 | |
| #include "integer.h"
 | |
| 
 | |
| 
 | |
| /* Status of Disk Functions */
 | |
| typedef BYTE	DSTATUS;
 | |
| 
 | |
| 
 | |
| /* Results of Disk Functions */
 | |
| typedef enum {
 | |
| 	RES_OK = 0,		/* 0: Function succeeded */
 | |
| 	RES_ERROR,		/* 1: Disk error */
 | |
| 	RES_NOTRDY,		/* 2: Not ready */
 | |
| 	RES_PARERR		/* 3: Invalid parameter */
 | |
| } DRESULT;
 | |
| 
 | |
| 
 | |
| /*---------------------------------------*/
 | |
| /* Prototypes for disk control functions */
 | |
| 
 | |
| DSTATUS disk_initialize (void);
 | |
| DRESULT disk_readp (BYTE*, DWORD, WORD, WORD);
 | |
| 
 | |
| #define STA_NOINIT		0x01	/* Drive not initialized */
 | |
| #define STA_NODISK		0x02	/* No medium in the drive */
 | |
| 
 | |
| #define _DISKIO
 | |
| #endif
 | |
| 
 | 
