2 //Includes several applications.
\r
4 #include "platform.h"
\r
10 #include <iomacros.h>
\r
16 //! Initialize registers and all that jazz.
\r
18 WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
26 //Enable Interrupts.
\r
30 //! Handle a command.
\r
31 void handle(unsigned char app,
\r
36 monitorhandle(app,verb,len);
\r
39 spihandle(app,verb,len);
\r
42 i2chandle(app,verb,len);
\r
45 cchandle(app,verb,len);
\r
48 jtaghandle(app,verb,len);
\r
51 jtag430handle(app,verb,len);
\r
62 volatile unsigned int i;
\r
63 unsigned char app, verb, len;
\r
69 //txdata(MONITOR,OK,0);
\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