Done some work. Nothing special
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							@@ -18,7 +18,7 @@
 | 
			
		||||
/* Get Drive Status                                                      */
 | 
			
		||||
/*-----------------------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
DSTATUS disk_status(BYTE pdrv /* Physical drive nmuber to identify the drive */
 | 
			
		||||
DSTATUS disk_status(BYTE pdrv /* Physical drive number to identify the drive */
 | 
			
		||||
) {
 | 
			
		||||
 | 
			
		||||
	switch (pdrv) {
 | 
			
		||||
@@ -33,7 +33,7 @@ DSTATUS disk_status(BYTE pdrv /* Physical drive nmuber to identify the drive */
 | 
			
		||||
/* Inidialize a Drive                                                    */
 | 
			
		||||
/*-----------------------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
DSTATUS disk_initialize(BYTE pdrv /* Physical drive nmuber to identify the drive */
 | 
			
		||||
DSTATUS disk_initialize(BYTE pdrv /* Physical drive number to identify the drive */
 | 
			
		||||
) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -49,7 +49,7 @@ DSTATUS disk_initialize(BYTE pdrv /* Physical drive nmuber to identify the drive
 | 
			
		||||
/* Read Sector(s)                                                        */
 | 
			
		||||
/*-----------------------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
DRESULT disk_read(BYTE pdrv, /* Physical drive nmuber to identify the drive */
 | 
			
		||||
DRESULT disk_read(BYTE pdrv, /* Physical drive number to identify the drive */
 | 
			
		||||
BYTE *buff, /* Data buffer to store read data */
 | 
			
		||||
DWORD sector, /* Sector address in LBA */
 | 
			
		||||
UINT count /* Number of sectors to read */
 | 
			
		||||
@@ -69,7 +69,7 @@ UINT count /* Number of sectors to read */
 | 
			
		||||
/*-----------------------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#if _USE_WRITE
 | 
			
		||||
DRESULT disk_write(BYTE pdrv, /* Physical drive nmuber to identify the drive */
 | 
			
		||||
DRESULT disk_write(BYTE pdrv, /* Physical drive number to identify the drive */
 | 
			
		||||
const BYTE *buff, /* Data to be written */
 | 
			
		||||
DWORD sector, /* Sector address in LBA */
 | 
			
		||||
UINT count /* Number of sectors to write */
 | 
			
		||||
@@ -88,7 +88,7 @@ UINT count /* Number of sectors to write */
 | 
			
		||||
/*-----------------------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
#if _USE_IOCTL
 | 
			
		||||
DRESULT disk_ioctl(BYTE pdrv, /* Physical drive nmuber (0..) */
 | 
			
		||||
DRESULT disk_ioctl(BYTE pdrv, /* Physical drive number (0..) */
 | 
			
		||||
BYTE cmd, /* Control code */
 | 
			
		||||
void *buff /* Buffer to send/receive control data */
 | 
			
		||||
) {
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
 | 
			
		||||
#if _FS_REENTRANT
 | 
			
		||||
/*------------------------------------------------------------------------*/
 | 
			
		||||
/* Create a Synchronization Object
 | 
			
		||||
/* Create a Synchronization Object*/
 | 
			
		||||
/*------------------------------------------------------------------------*/
 | 
			
		||||
/* This function is called in f_mount() function to create a new
 | 
			
		||||
/  synchronization object, such as semaphore and mutex. When a 0 is returned,
 | 
			
		||||
 
 | 
			
		||||
@@ -22,6 +22,6 @@ DRESULT SDIO_disk_write(BYTE *buff, DWORD sector, UINT count){
 | 
			
		||||
DRESULT SDIO_disk_ioctl(BYTE cmd, void* buff){
 | 
			
		||||
	return RES_OK;
 | 
			
		||||
}
 | 
			
		||||
DWORD	get_fattime(){
 | 
			
		||||
DWORD __attribute__((weak)) get_fattime(){
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user