Merge branch 'master' of github.com:r0ket/r0ket

This commit is contained in:
Stefan `Sec` Zehl 2011-12-19 21:21:32 +01:00
commit 20638a2fd3
2 changed files with 6 additions and 2 deletions

View File

@ -51,7 +51,8 @@ void rbInit() {
int i = 0;
while( i<8 ){
gpioSetDir(ports[i],ports[i+1], gpioDirection_Output);
gpioSetValue (ports[i++], ports[i++], 0);
gpioSetValue (ports[i], ports[i+1], 0);
i+=2;
}
// Set LED3 to ?
@ -78,7 +79,8 @@ void rbInit() {
// prepare hackerbus
while(i<sizeof(ports)){
gpioSetDir(ports[i],ports[i+1], gpioDirection_Output);
gpioSetValue (ports[i++], ports[i++], 1);
gpioSetValue (ports[i], ports[i+1], 1);
i+=2;
}
// prepare BUSINT interrupt

View File

@ -35,6 +35,8 @@ inline void format_formatDF(void)
char buf[512];
memset(buf, 0, 512);
for(i=0; i<20; i++) dataflash_write(buf, i, 1);
memcpy(buf, init1, sizeof(init1));
memcpy(buf+0x24, init2, sizeof(init2));
buf[510] = 0x55;