X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fusb%2Fmaxusb.c;h=00b5531fd640f5a41a2b5f5b0c1b0b8af0e18a93;hp=e093024b9456604dcda1ff220ff58f136345a267;hb=7709570a1640165f33552ce52284c4fca2a54d91;hpb=2d4fe6ee83444a71d01956a1bf43a0eedcd2284b diff --git a/firmware/apps/usb/maxusb.c b/firmware/apps/usb/maxusb.c index e093024..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."); }