diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-06-03 16:09:59 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-06-03 16:09:59 +0000 |
commit | ad5395c160eeddd8cca8f46fd359af39dbe65548 (patch) | |
tree | 8e9bf6afcf899141ace314a09e22a67fda94e3a3 /nuttx/drivers | |
parent | 385b362b66950f28d4e16a70081d0859d43c8209 (diff) | |
download | px4-firmware-ad5395c160eeddd8cca8f46fd359af39dbe65548.tar.gz px4-firmware-ad5395c160eeddd8cca8f46fd359af39dbe65548.tar.bz2 px4-firmware-ad5395c160eeddd8cca8f46fd359af39dbe65548.zip |
SD card now works on the PIC32MX7 MMB board
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4799 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/mmcsd/mmcsd_spi.c | 6 |
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) */ |