mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
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
This commit is contained in:
@@ -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) */
|
||||
|
||||
Reference in New Issue
Block a user