fix storage_*() calls
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20047 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
21ca86646f
commit
2ee18b336a
2 changed files with 11 additions and 11 deletions
|
@ -192,7 +192,7 @@ void* main(void)
|
|||
printf("Zeroing flash");
|
||||
for(i=0;i<250816;i++)
|
||||
{
|
||||
storage_write_sectors(IF_MV2(0,) i*32,32,zero);
|
||||
storage_write_sectors(0,i*32,32,zero);
|
||||
if(i%64 == 0)
|
||||
{
|
||||
printf("%d kB left",(250816-i)/2);
|
||||
|
@ -200,13 +200,13 @@ void* main(void)
|
|||
}
|
||||
|
||||
printf("Writing MBR");
|
||||
storage_write_sectors(IF_MV2(0,) 0,1,mbr);
|
||||
storage_write_sectors(0,0,1,mbr);
|
||||
printf("Writing FAT bootsector");
|
||||
storage_write_sectors(IF_MV2(0,) 1023,1,fat);
|
||||
storage_write_sectors(0,1023,1,fat);
|
||||
printf("Writing more FAT");
|
||||
storage_write_sectors(IF_MV2(0,) 1024,1,backupfat);
|
||||
storage_write_sectors(0,1024,1,backupfat);
|
||||
printf("Writing more FAT");
|
||||
storage_write_sectors(IF_MV2(0,) 1264,1,backupfat);
|
||||
storage_write_sectors(0,1264,1,backupfat);
|
||||
if (button_hold())
|
||||
printf("Release Hold and");
|
||||
|
||||
|
|
|
@ -257,7 +257,7 @@ void* main(void)
|
|||
printf("Zeroing flash");
|
||||
for(i=0;i<250816;i++)
|
||||
{
|
||||
storage_write_sectors(IF_MV2(0,) i*32,32,zero);
|
||||
storage_write_sectors(0,i*32,32,zero);
|
||||
if(i%64 == 0)
|
||||
{
|
||||
printf("%d kB left",(250816-i)/2);
|
||||
|
@ -265,15 +265,15 @@ void* main(void)
|
|||
}
|
||||
|
||||
printf("Writing MBR");
|
||||
storage_write_sectors(IF_MV2(0,) 0,1,mbr);
|
||||
storage_write_sectors(0,0,1,mbr);
|
||||
printf("Writing FAT bootsector");
|
||||
storage_write_sectors(IF_MV2(0,) 1017,2,bootsector);
|
||||
storage_write_sectors(0,1017,2,bootsector);
|
||||
printf("Writing more FAT");
|
||||
storage_write_sectors(IF_MV2(0,) 1023,1,fat);
|
||||
storage_write_sectors(0,1023,1,fat);
|
||||
printf("Writing more FAT");
|
||||
storage_write_sectors(IF_MV2(0,) 1049,1,backupfat);
|
||||
storage_write_sectors(0,1049,1,backupfat);
|
||||
printf("Writing more FAT");
|
||||
storage_write_sectors(IF_MV2(0,) 4920,1,backupfat);
|
||||
storage_write_sectors(0,4920,1,backupfat);
|
||||
if (button_hold())
|
||||
printf("Release Hold and");
|
||||
|
||||
|
|
Loading…
Reference in a new issue