Ignore:
Timestamp:
Dec 5, 2012, 6:55:07 PM (12 years ago)
Author:
cfuguet
Message:

Introducing multi block read in the ioc_read function
for the FPGA platform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/io_drivers/ioc.c

    r276 r279  
    306306    sdcard_dev_lseek(&_sdcard_device, lba);
    307307
    308     if (( sdcard_rsp = sdcard_dev_read (&_sdcard_device, buffer, count*512) ))
     308    unsigned int i;
     309    for(i = 0; i < count; i++)
    309310    {
    310         boot_puts(error_read);
    311         boot_putx(sdcard_rsp);
    312         boot_puts(end_line);
    313     }   
     311        if (( sdcard_rsp = sdcard_dev_read (
     312                        &_sdcard_device,
     313                        (unsigned char *) buffer + (512 * i),
     314                        512
     315                        )
     316            ))
     317        {
     318            boot_puts(error_read);
     319            boot_putx(sdcard_rsp);
     320            boot_puts(end_line);
     321
     322            return 1;
     323        }   
     324    }
    314325   
    315326#endif
Note: See TracChangeset for help on using the changeset viewer.