speed up for format

This commit is contained in:
schneider 2011-12-17 22:32:49 +01:00
parent 859f2d9591
commit 2876766a87
2 changed files with 7 additions and 6 deletions

View File

@ -25,16 +25,16 @@ uint8_t init2[] = {0x80, 0x00, 0x29, 0x37,
void format_formatDF(void) void format_formatDF(void)
{ {
int n,i; int i;
char buf[512]; char buf[512];
dataflash_initialize(); //dataflash_initialize();
delayms(100); //delayms(100);
for(i=0; i< 512; i++) buf[i] = 0x00; for(i=0; i< 512; i++) buf[i] = 0x00;
for(i=0; i<1024; i++) //for(i=0; i<1024; i++)
dataflash_write(buf, i, 1); // dataflash_write(buf, i, 1);
memcpy(buf, init1, sizeof(init1)); memcpy(buf, init1, sizeof(init1));
memcpy(buf+0x24, init2, sizeof(init2)); memcpy(buf+0x24, init2, sizeof(init2));

View File

@ -47,12 +47,13 @@ int main(void) {
// initialise basic badge functions // initialise basic badge functions
rbInit(); rbInit();
fsInit();
lcdInit(); // display lcdInit(); // display
lcdFill(0); lcdFill(0);
lcdDisplay(); lcdDisplay();
fsInit();
wrapper(); // see module/ subdirectory wrapper(); // see module/ subdirectory
} }