mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-04 07:12:33 +01:00 
			
		
		
		
	Add new (incomplete) StandaloneProgrammer project, using the ELM Petite FAT library to read files stored on the board's dataflash by the host.
		
			
				
	
	
		
			37 lines
		
	
	
		
			942 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			942 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*-----------------------------------------------------------------------
 | 
						|
/  PFF - Low level disk interface modlue include file    (C)ChaN, 2009
 | 
						|
/-----------------------------------------------------------------------*/
 | 
						|
 | 
						|
#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_STRERR,		/* 2: Seream error */
 | 
						|
	RES_NOTRDY,		/* 3: Not ready */
 | 
						|
	RES_PARERR		/* 4: Invalid parameter */
 | 
						|
} DRESULT;
 | 
						|
 | 
						|
 | 
						|
/*---------------------------------------*/
 | 
						|
/* Prototypes for disk control functions */
 | 
						|
 | 
						|
DSTATUS disk_initialize (void);
 | 
						|
DRESULT disk_readp (void*, DWORD, WORD, WORD);
 | 
						|
 | 
						|
BOOL assign_drives (int argc, char *argv[]);
 | 
						|
 | 
						|
#define STA_NOINIT		0x01	/* Drive not initialized */
 | 
						|
#define STA_NODISK		0x02	/* No medium in the drive */
 | 
						|
 | 
						|
#define _DISKIO
 | 
						|
#endif
 |