#include "command.h"\r
#include "apps.h"\r
\r
-#include <signal.h>\r
-#include <io.h>\r
-#include <iomacros.h>\r
\r
\r
//LED on P1.0\r
\r
//! Initialize registers and all that jazz.\r
void init(){\r
- volatile unsigned int i;\r
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer\r
\r
- //LED and TX OUT\r
+ //LED out and on.\r
PLEDDIR |= PLEDPIN;\r
+ PLEDOUT |= PLEDPIN;\r
\r
+ //Setup clocks, unique to each '430.\r
msp430_init_dco();\r
msp430_init_uart();\r
\r
case SPI:\r
spihandle(app,verb,len);\r
break;\r
- case I2C:\r
+ case I2CAPP:\r
i2chandle(app,verb,len);\r
break;\r
case CHIPCON:\r
\r
init();\r
\r
+ \r
//Ready\r
- txdata(MONITOR,OK,0);\r
+ //txdata(MONITOR,OK,0);\r
+ //while (1){\r
+ // txdata(0xFF,0xff,0x0);\r
+ // delay(1000);\r
+ //}\r
+ //delay(0xffff);\r
+ //while(*((int*)0x1001));\r
+ \r
+ //while(1)\r
+ // txdata(0xFF,0xFF,0);\r
+ \r
+ txstring(MONITOR,OK,"http://goodfet.sf.net/");\r
\r
//Command loop. There's no end!\r
while(1){\r