projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Getting closer to an I2C Python client.
[goodfet]
/
firmware
/
goodfet.c
diff --git
a/firmware/goodfet.c
b/firmware/goodfet.c
index
8ce6108
..
5d01977
100644
(file)
--- a/
firmware/goodfet.c
+++ b/
firmware/goodfet.c
@@
-14,15
+14,14
@@
void init(){
\r
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
\r
void init(){
\r
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
\r
- //LED
and TX OUT
\r
+ //LED
out and on.
\r
PLEDDIR |= PLEDPIN;
\r
PLEDDIR |= PLEDPIN;
\r
+ PLEDOUT |= PLEDPIN;
\r
\r
\r
+ //Setup clocks, unique to each '430.
\r
msp430_init_dco();
\r
msp430_init_uart();
\r
\r
msp430_init_dco();
\r
msp430_init_uart();
\r
\r
-
\r
-
\r
-
\r
//Enable Interrupts.
\r
//eint();
\r
}
\r
//Enable Interrupts.
\r
//eint();
\r
}
\r
@@
-38,7
+37,7
@@
void handle(unsigned char app,
case SPI:
\r
spihandle(app,verb,len);
\r
break;
\r
case SPI:
\r
spihandle(app,verb,len);
\r
break;
\r
- case I2C:
\r
+ case I2C
APP
:
\r
i2chandle(app,verb,len);
\r
break;
\r
case CHIPCON:
\r
i2chandle(app,verb,len);
\r
break;
\r
case CHIPCON:
\r