Ignore:
Timestamp:
Aug 29, 2013, 11:35:11 AM (11 years ago)
Author:
bouyer
Message:

Add support for >= v2, SDHC cards (larger than 2GB).
Tested with a 512MB < v2 and a 4GB cards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/include/sdcard.h

    r292 r501  
    2323
    2424    /**
    25      * Capacity of the SDCARD in terms of bytes
    26      */
    27     unsigned int capacity;
    28 
    29     /**
    3025     * Block length of the SDCARD
    3126     */
     
    4641     */
    4742    int    slave_id;
     43
     44    /* is the card high capacity ? */
     45    int sdhc;
    4846};
    4947
     
    105103 */
    106104void sdcard_dev_lseek(struct sdcard_dev * sdcard, unsigned int pos);
    107 
    108 /**
    109  * \param   sdcard  : Pointer to the initialized block device
    110  *
    111  * \return  block device capacity
    112  *
    113  * \brief   Get the block device capacity
    114  *
    115  * The block device access pointer is relocated in terms of blocks
    116  */
    117 unsigned int sdcard_dev_get_capacity(struct sdcard_dev * sdcard);
    118105
    119106/**
Note: See TracChangeset for help on using the changeset viewer.