summaryrefslogtreecommitdiff
path: root/bootloader/main-c250wipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/main-c250wipe.c')
-rw-r--r--bootloader/main-c250wipe.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/bootloader/main-c250wipe.c b/bootloader/main-c250wipe.c
index fedabb7275..06a0a5b2b5 100644
--- a/bootloader/main-c250wipe.c
+++ b/bootloader/main-c250wipe.c
@@ -29,7 +29,7 @@
29#include "kernel.h" 29#include "kernel.h"
30#include "lcd.h" 30#include "lcd.h"
31#include "font.h" 31#include "font.h"
32#include "ata.h" 32#include "storage.h"
33#include "button.h" 33#include "button.h"
34#include "disk.h" 34#include "disk.h"
35#include "crc32-mi4.h" 35#include "crc32-mi4.h"
@@ -250,14 +250,14 @@ void* main(void)
250 printf(""); 250 printf("");
251 251
252 252
253 i=ata_init(); 253 i=storage_init();
254 disk_init(IF_MV(0)); 254 disk_init(IF_MV(0));
255 255
256 memset(zero,0,16*1024); 256 memset(zero,0,16*1024);
257 printf("Zeroing flash"); 257 printf("Zeroing flash");
258 for(i=0;i<250816;i++) 258 for(i=0;i<250816;i++)
259 { 259 {
260 ata_write_sectors(IF_MV2(0,) i*32,32,zero); 260 storage_write_sectors(IF_MV2(0,) i*32,32,zero);
261 if(i%64 == 0) 261 if(i%64 == 0)
262 { 262 {
263 printf("%d kB left",(250816-i)/2); 263 printf("%d kB left",(250816-i)/2);
@@ -265,15 +265,15 @@ void* main(void)
265 } 265 }
266 266
267 printf("Writing MBR"); 267 printf("Writing MBR");
268 ata_write_sectors(IF_MV2(0,) 0,1,mbr); 268 storage_write_sectors(IF_MV2(0,) 0,1,mbr);
269 printf("Writing FAT bootsector"); 269 printf("Writing FAT bootsector");
270 ata_write_sectors(IF_MV2(0,) 1017,2,bootsector); 270 storage_write_sectors(IF_MV2(0,) 1017,2,bootsector);
271 printf("Writing more FAT"); 271 printf("Writing more FAT");
272 ata_write_sectors(IF_MV2(0,) 1023,1,fat); 272 storage_write_sectors(IF_MV2(0,) 1023,1,fat);
273 printf("Writing more FAT"); 273 printf("Writing more FAT");
274 ata_write_sectors(IF_MV2(0,) 1049,1,backupfat); 274 storage_write_sectors(IF_MV2(0,) 1049,1,backupfat);
275 printf("Writing more FAT"); 275 printf("Writing more FAT");
276 ata_write_sectors(IF_MV2(0,) 4920,1,backupfat); 276 storage_write_sectors(IF_MV2(0,) 4920,1,backupfat);
277 if (button_hold()) 277 if (button_hold())
278 printf("Release Hold and"); 278 printf("Release Hold and");
279 279