X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fgoodfet.c;fp=firmware%2Fapps%2Fgoodfet.c;h=9462020904004b663e9e76fb1e8932ece67f1719;hp=b6d8a06250657085a455dd2597059caf90c47a22;hb=0652c424f95ebdb6c9be17edc0a4d1057432142f;hpb=fbb7196ddb7d300e2fc63ddabffc1b9e6b8a8af7 diff --git a/firmware/apps/goodfet.c b/firmware/apps/goodfet.c index b6d8a06..9462020 100644 --- a/firmware/apps/goodfet.c +++ b/firmware/apps/goodfet.c @@ -1,5 +1,5 @@ -//GOODFET Echo test. - +//GOODFET Main File +//Includes several applications. #include "platform.h" #include "command.h" @@ -36,6 +36,9 @@ void handle(unsigned char app, case MONITOR: monitorhandle(app,verb,len); break; + case SPI: + spihandle(app,verb,len); + break; default: txdata(app,NOK,0); } @@ -64,15 +67,5 @@ int main(void) } handle(app,verb,len); } - - //while(1) serial_tx(serial_rx()); - while(1) serial_tx(serial_rx()); - - while(1){ - i = 10000; - while(i--); - - PLEDOUT^=PLEDPIN; // Blink - } }