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)
{
int n,i;
int i;
char buf[512];
dataflash_initialize();
delayms(100);
//dataflash_initialize();
//delayms(100);
for(i=0; i< 512; i++) buf[i] = 0x00;
for(i=0; i<1024; i++)
dataflash_write(buf, i, 1);
//for(i=0; i<1024; i++)
// dataflash_write(buf, i, 1);
memcpy(buf, init1, sizeof(init1));
memcpy(buf+0x24, init2, sizeof(init2));

View File

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