From 4a963b3440725041b82254e389021d6a176fa9ea Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 24 Oct 2018 17:59:48 +0700 Subject: [PATCH] fatfs disk porting --- .../FileSystem/src/fatfs/source/diskio.c | 56 ++----------------- 1 file changed, 4 insertions(+), 52 deletions(-) diff --git a/libraries/FileSystem/src/fatfs/source/diskio.c b/libraries/FileSystem/src/fatfs/source/diskio.c index 8bd7d058..de192fc8 100644 --- a/libraries/FileSystem/src/fatfs/source/diskio.c +++ b/libraries/FileSystem/src/fatfs/source/diskio.c @@ -26,32 +26,8 @@ DSTATUS disk_status ( BYTE pdrv /* Physical drive nmuber to identify the drive */ ) { - DSTATUS stat; - int result; - - switch (pdrv) { - case DEV_RAM : - result = RAM_disk_status(); - - // translate the reslut code here - - return stat; - - case DEV_MMC : - result = MMC_disk_status(); - - // translate the reslut code here - - return stat; - - case DEV_USB : - result = USB_disk_status(); - - // translate the reslut code here - - return stat; - } - return STA_NOINIT; + (void) pdrv; + return 0; } @@ -64,32 +40,8 @@ DSTATUS disk_initialize ( BYTE pdrv /* Physical drive nmuber to identify the drive */ ) { - DSTATUS stat; - int result; - - switch (pdrv) { - case DEV_RAM : - result = RAM_disk_initialize(); - - // translate the reslut code here - - return stat; - - case DEV_MMC : - result = MMC_disk_initialize(); - - // translate the reslut code here - - return stat; - - case DEV_USB : - result = USB_disk_initialize(); - - // translate the reslut code here - - return stat; - } - return STA_NOINIT; + (void) pdrv; + return 0; }