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
61 volatile unsigned int i;
\r
62 unsigned char app, verb, len;
\r
68 //txdata(MONITOR,OK,0);
\r
70 // txdata(0xFF,0xff,0x0);
\r
74 //while(*((int*)0x1001));
\r
77 // txdata(0xFF,0xFF,0);
\r
79 txstring(MONITOR,OK,"http://goodfet.sf.net/");
\r
81 //Command loop. There's no end!
\r
90 cmddata[i]=serial_rx();
\r
92 handle(app,verb,len);
\r