#include "platform.h"
-// define the spi app's app_t
+// define for the app list.
app_t const maxusb_app = {
-
/* app number */
MAXUSB,
SPIDIR|=MOSI+SCK+BIT0; //BIT0 might be SS
SPIDIR&=~MISO;
P4DIR&=~TST; //TST line becomes interrupt input.
+ P4DIR&=~BIT7; //GPX pin.
P2DIR|=RST;
DIRSS;
//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.");
}