Bug fixes and new features added to zigduino firmware and client.
[goodfet] / firmware / apps / usb / maxusb.c
index e093024..00b5531 100644 (file)
@@ -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.");
 }