projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug fixes and new features added to zigduino firmware and client.
[goodfet]
/
firmware
/
apps
/
usb
/
maxusb.c
diff --git
a/firmware/apps/usb/maxusb.c
b/firmware/apps/usb/maxusb.c
index
e093024
..
00b5531
100644
(file)
--- a/
firmware/apps/usb/maxusb.c
+++ b/
firmware/apps/usb/maxusb.c
@@
-21,9
+21,8
@@
#include "platform.h"
#include "platform.h"
-// define
the spi app's app_t
+// define
for the app list.
app_t const maxusb_app = {
app_t const maxusb_app = {
-
/* app number */
MAXUSB,
/* 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.
SPIDIR|=MOSI+SCK+BIT0; //BIT0 might be SS
SPIDIR&=~MISO;
P4DIR&=~TST; //TST line becomes interrupt input.
+ P4DIR&=~BIT7; //GPX pin.
P2DIR|=RST;
DIRSS;
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.
//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.
SETSS; //Deselect the chip, end any existing transation.
SETRST; //Bring the chip out of RESET.
- //debugstr("MAXUSB is on.");
}
}