2 //Includes several applications.
\r
4 #include "platform.h"
\r
13 //! Initialize registers and all that jazz.
\r
15 WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
21 //Setup clocks, unique to each '430.
\r
25 //Enable Interrupts.
\r
29 //! Handle a command.
\r
30 void handle(unsigned char app,
\r
35 monitorhandle(app,verb,len);
\r
38 spihandle(app,verb,len);
\r
41 i2chandle(app,verb,len);
\r
44 cchandle(app,verb,len);
\r
47 jtaghandle(app,verb,len);
\r
50 jtag430handle(app,verb,len);
\r
54 HANDLEOTHER(app,verb,len);
\r
65 volatile unsigned int i;
\r
66 unsigned char app, verb, len;
\r
72 //txdata(MONITOR,OK,0);
\r
74 // txdata(0xFF,0xff,0x0);
\r
78 //while(*((int*)0x1001));
\r
81 // txdata(0xFF,0xFF,0);
\r
83 txstring(MONITOR,OK,"http://goodfet.sf.net/");
\r
85 //Command loop. There's no end!
\r
94 cmddata[i]=serial_rx();
\r
96 handle(app,verb,len);
\r