|
|
@@ -29,25 +29,24 @@ DSTATUS disk_status (
|
|
|
)
|
|
|
{
|
|
|
DSTATUS stat;
|
|
|
- int result;
|
|
|
|
|
|
switch (pdrv) {
|
|
|
case DEV_RAM :
|
|
|
- //result = RAM_disk_status();
|
|
|
+ //stat = RAM_disk_status();
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
return stat;
|
|
|
|
|
|
case DEV_MMC :
|
|
|
- //result = MMC_disk_status();
|
|
|
+ //stat = MMC_disk_status();
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
return stat;
|
|
|
|
|
|
case DEV_USB :
|
|
|
- result = USB_disk_status();
|
|
|
+ stat = USB_disk_status();
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
@@ -67,25 +66,24 @@ DSTATUS disk_initialize (
|
|
|
)
|
|
|
{
|
|
|
DSTATUS stat;
|
|
|
- int result;
|
|
|
|
|
|
switch (pdrv) {
|
|
|
case DEV_RAM :
|
|
|
- //result = RAM_disk_initialize();
|
|
|
+ //stat = RAM_disk_initialize();
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
return stat;
|
|
|
|
|
|
case DEV_MMC :
|
|
|
- //result = MMC_disk_initialize();
|
|
|
+ //stat = MMC_disk_initialize();
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
return stat;
|
|
|
|
|
|
case DEV_USB :
|
|
|
- result = USB_disk_initialize();
|
|
|
+ stat = USB_disk_initialize();
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
@@ -108,13 +106,12 @@ DRESULT disk_read (
|
|
|
)
|
|
|
{
|
|
|
DRESULT res;
|
|
|
- int result;
|
|
|
|
|
|
switch (pdrv) {
|
|
|
case DEV_RAM :
|
|
|
// translate the arguments here
|
|
|
|
|
|
- //result = RAM_disk_read(buff, sector, count);
|
|
|
+ //res = RAM_disk_read(buff, sector, count);
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
@@ -123,7 +120,7 @@ DRESULT disk_read (
|
|
|
case DEV_MMC :
|
|
|
// translate the arguments here
|
|
|
|
|
|
- //result = MMC_disk_read(buff, sector, count);
|
|
|
+ //res = MMC_disk_read(buff, sector, count);
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
@@ -132,7 +129,7 @@ DRESULT disk_read (
|
|
|
case DEV_USB :
|
|
|
// translate the arguments here
|
|
|
|
|
|
- result = USB_disk_read(buff, sector, count);
|
|
|
+ res = USB_disk_read(buff, sector, count);
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
@@ -158,13 +155,12 @@ DRESULT disk_write (
|
|
|
)
|
|
|
{
|
|
|
DRESULT res;
|
|
|
- int result;
|
|
|
|
|
|
switch (pdrv) {
|
|
|
case DEV_RAM :
|
|
|
// translate the arguments here
|
|
|
|
|
|
- //result = RAM_disk_write(buff, sector, count);
|
|
|
+ //res = RAM_disk_write(buff, sector, count);
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
@@ -173,7 +169,7 @@ DRESULT disk_write (
|
|
|
case DEV_MMC :
|
|
|
// translate the arguments here
|
|
|
|
|
|
- //result = MMC_disk_write(buff, sector, count);
|
|
|
+ //res = MMC_disk_write(buff, sector, count);
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
@@ -182,7 +178,7 @@ DRESULT disk_write (
|
|
|
case DEV_USB :
|
|
|
// translate the arguments here
|
|
|
|
|
|
- result = USB_disk_write(buff, sector, count);
|
|
|
+ res = USB_disk_write(buff, sector, count);
|
|
|
|
|
|
// translate the reslut code here
|
|
|
|
|
|
@@ -224,7 +220,7 @@ DRESULT disk_ioctl (
|
|
|
case DEV_USB :
|
|
|
|
|
|
// Process of the command the USB drive
|
|
|
- USB_disk_ioctl(cmd,buff);
|
|
|
+ res = USB_disk_ioctl(cmd,buff);
|
|
|
return res;
|
|
|
}
|
|
|
|