summaryrefslogtreecommitdiff
path: root/nuttx/drivers/mmcsd
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-03 16:09:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-03 16:09:59 +0000
commit62eace05ebbb6a96ee4ad34e996e56870c53d892 (patch)
tree8e9bf6afcf899141ace314a09e22a67fda94e3a3 /nuttx/drivers/mmcsd
parent95d721394520c24155155dc548d1a49bb89dd7b6 (diff)
downloadpx4-nuttx-62eace05ebbb6a96ee4ad34e996e56870c53d892.tar.gz
px4-nuttx-62eace05ebbb6a96ee4ad34e996e56870c53d892.tar.bz2
px4-nuttx-62eace05ebbb6a96ee4ad34e996e56870c53d892.zip
SD card now works on the PIC32MX7 MMB board
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4799 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/mmcsd')
-rw-r--r--nuttx/drivers/mmcsd/mmcsd_spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/drivers/mmcsd/mmcsd_spi.c b/nuttx/drivers/mmcsd/mmcsd_spi.c
index c2321efc7..7dbadc55f 100644
--- a/nuttx/drivers/mmcsd/mmcsd_spi.c
+++ b/nuttx/drivers/mmcsd/mmcsd_spi.c
@@ -622,7 +622,7 @@ static uint32_t mmcsd_taac(FAR struct mmcsd_slot_s *slot, uint8_t *csd)
/****************************************************************************
* Name: mmcsd_decodecsd
*
- * Description:
+ * Description:
*
****************************************************************************/
@@ -1013,7 +1013,7 @@ static int mmcsd_open(FAR struct inode *inode)
}
}
- /* Make sure that the card is ready */
+ /* Make sure that the card is ready */
SPI_SELECT(spi, SPIDEV_MMCSD, true);
ret = mmcsd_waitready(slot);
@@ -1706,7 +1706,7 @@ static int mmcsd_mediainitialize(FAR struct mmcsd_slot_s *slot)
* exceeds 4096 x 512, then we must be dealing with a card with read_bl_len
* of 1024 or 2048.
*/
-
+
if (!IS_SDV2(slot->type) && slot->nsectors <= ((uint32_t)4096*12))
{
/* Don't set the block len on high capacity cards (ver1.x or ver2.x) */