X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Fapps%2Fusb%2Fmaxusb.c;h=00b5531fd640f5a41a2b5f5b0c1b0b8af0e18a93;hb=96ebf28fac2e03cfee954db85282eac7b8ec8015;hp=dbe554a538f3510fcbb1a1059d3b3bd4ca988f10;hpb=f3480afd0970eb232b17070d8596e5d09aef2c7e;p=goodfet diff --git a/firmware/apps/usb/maxusb.c b/firmware/apps/usb/maxusb.c index dbe554a..00b5531 100644 --- a/firmware/apps/usb/maxusb.c +++ b/firmware/apps/usb/maxusb.c @@ -21,9 +21,8 @@ #include "platform.h" -// define the spi app's app_t +// define for the app list. app_t const maxusb_app = { - /* app number */ MAXUSB, @@ -44,6 +43,7 @@ void maxusb_setup(){ SPIDIR|=MOSI+SCK+BIT0; //BIT0 might be SS SPIDIR&=~MISO; P4DIR&=~TST; //TST line becomes interrupt input. + P4DIR&=~BIT7; //GPX pin. P2DIR|=RST; DIRSS; @@ -51,10 +51,8 @@ void maxusb_setup(){ //Setup the configuration pins. //This might need some delays. CLRRST; //Put the chip into RESET. - debugstr("MAXUSB is off."); SETSS; //Deselect the chip, end any existing transation. SETRST; //Bring the chip out of RESET. - debugstr("MAXUSB is on."); }