Ignore:
Timestamp:
May 30, 2013, 5:16:33 PM (11 years ago)
Author:
bouyer
Message:

Use 128bits transfers at the SPI controller level when possible;
this speeds up the boot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/sdcard.c

    r388 r398  
    228228    _sdcard_wait_data_block(sdcard);
    229229
    230     for ( i = 0; i < count; i++ )
    231     {
    232         *((char *) buf + i) = _sdcard_receive_char(sdcard);
    233     }
     230    spi_get_data(sdcard->spi, buf, count);
    234231
    235232    /*
     
    237234     * at the end of the data block)
    238235     */
     236    i = count;
    239237    while( i++ < (sdcard->block_length + 2) ) _sdcard_receive_char(sdcard);
    240238
Note: See TracChangeset for help on using the changeset viewer.