Merge branch 'master' of github.com:r0ket/r0ket
This commit is contained in:
commit
20638a2fd3
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue