aboutsummaryrefslogtreecommitdiffstats
path: root/os/various/fatfs_bindings
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-26 18:02:43 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-06-26 18:02:43 +0000
commit853b0fd51c80d9b8640639321a950f16800d57d4 (patch)
tree5253c1c4296dd8415b0ea3fc72b6c66d03cd5c7f /os/various/fatfs_bindings
parent80443125b286868f18342a9e6884a65b3218bf99 (diff)
downloadChibiOS-853b0fd51c80d9b8640639321a950f16800d57d4.tar.gz
ChibiOS-853b0fd51c80d9b8640639321a950f16800d57d4.tar.bz2
ChibiOS-853b0fd51c80d9b8640639321a950f16800d57d4.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4348 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various/fatfs_bindings')
-rw-r--r--os/various/fatfs_bindings/fatfs_diskio.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/os/various/fatfs_bindings/fatfs_diskio.c b/os/various/fatfs_bindings/fatfs_diskio.c
index 3a8b6866e..40f3666a4 100644
--- a/os/various/fatfs_bindings/fatfs_diskio.c
+++ b/os/various/fatfs_bindings/fatfs_diskio.c
@@ -49,7 +49,7 @@ DSTATUS disk_initialize (
case MMC:
stat = 0;
/* It is initialized externally, just reads the status.*/
- if (mmcGetDriverState(&MMCD1) != MMC_READY)
+ if (blkGetDriverState(&MMCD1) != BLK_READY)
stat |= STA_NOINIT;
if (mmcIsWriteProtected(&MMCD1))
stat |= STA_PROTECT;
@@ -58,7 +58,7 @@ DSTATUS disk_initialize (
case SDC:
stat = 0;
/* It is initialized externally, just reads the status.*/
- if (sdcGetDriverState(&SDCD1) != SDC_ACTIVE)
+ if (blkGetDriverState(&SDCD1) != BLK_READY)
stat |= STA_NOINIT;
if (sdcIsWriteProtected(&SDCD1))
stat |= STA_PROTECT;
@@ -84,7 +84,7 @@ DSTATUS disk_status (
case MMC:
stat = 0;
/* It is initialized externally, just reads the status.*/
- if (mmcGetDriverState(&MMCD1) != MMC_READY)
+ if (blkGetDriverState(&MMCD1) != BLK_READY)
stat |= STA_NOINIT;
if (mmcIsWriteProtected(&MMCD1))
stat |= STA_PROTECT;
@@ -93,7 +93,7 @@ DSTATUS disk_status (
case SDC:
stat = 0;
/* It is initialized externally, just reads the status.*/
- if (sdcGetDriverState(&SDCD1) != SDC_ACTIVE)
+ if (blkGetDriverState(&SDCD1) != BLK_READY)
stat |= STA_NOINIT;
if (sdcIsWriteProtected(&SDCD1))
stat |= STA_PROTECT;
@@ -118,7 +118,7 @@ DRESULT disk_read (
switch (drv) {
#if HAL_USE_MMC_SPI
case MMC:
- if (mmcGetDriverState(&MMCD1) != MMC_READY)
+ if (blkGetDriverState(&MMCD1) != BLK_READY)
return RES_NOTRDY;
if (mmcStartSequentialRead(&MMCD1, sector))
return RES_ERROR;
@@ -133,7 +133,7 @@ DRESULT disk_read (
return RES_OK;
#else
case SDC:
- if (sdcGetDriverState(&SDCD1) != SDC_ACTIVE)
+ if (blkGetDriverState(&SDCD1) != BLK_READY)
return RES_NOTRDY;
if (sdcRead(&SDCD1, sector, buff, count))
return RES_ERROR;
@@ -159,7 +159,7 @@ DRESULT disk_write (
switch (drv) {
#if HAL_USE_MMC_SPI
case MMC:
- if (mmcGetDriverState(&MMCD1) != MMC_READY)
+ if (blkGetDriverState(&MMCD1) != BLK_READY)
return RES_NOTRDY;
if (mmcIsWriteProtected(&MMCD1))
return RES_WRPRT;
@@ -176,7 +176,7 @@ DRESULT disk_write (
return RES_OK;
#else
case SDC:
- if (sdcGetDriverState(&SDCD1) != SDC_ACTIVE)
+ if (blkGetDriverState(&SDCD1) != BLK_READY)
return RES_NOTRDY;
if (sdcWrite(&SDCD1, sector, buff, count))
return RES_ERROR;