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