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
49 case JTAG430: //Also JTAG430X, JTAG430X2
\r
50 jtag430x2handle(app,verb,len);
\r
54 HANDLEOTHER(app,verb,len);
\r
65 volatile unsigned int i;
\r
66 unsigned char app, verb, len;
\r
70 txstring(MONITOR,OK,"http://goodfet.sf.net/");
\r
72 //Command loop. There's no end!
\r
81 cmddata[i]=serial_rx();
\r
83 handle(app,verb,len);
\r