speed up for format
This commit is contained in:
parent
859f2d9591
commit
2876766a87
|
@ -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));
|
||||
|
||||
|
|
|
@ -47,12 +47,13 @@ int main(void) {
|
|||
// initialise basic badge functions
|
||||
rbInit();
|
||||
|
||||
fsInit();
|
||||
|
||||
lcdInit(); // display
|
||||
|
||||
lcdFill(0);
|
||||
lcdDisplay();
|
||||
|
||||
fsInit();
|
||||
|
||||
wrapper(); // see module/ subdirectory
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue