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)
|
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));
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue