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
29 //Enable Interrupts.
\r
33 //! Handle a command.
\r
34 void handle(unsigned char app,
\r
39 monitorhandle(app,verb,len);
\r
42 spihandle(app,verb,len);
\r
45 i2chandle(app,verb,len);
\r
48 cchandle(app,verb,len);
\r
51 jtaghandle(app,verb,len);
\r
54 jtag430handle(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
80 // txdata(0xFF,0xFF,0);
\r
81 txstring(MONITOR,OK,"http://goodfet.sf.net/");
\r
83 //Command loop. There's no end!
\r
92 cmddata[i]=serial_rx();
\r
94 handle(app,verb,len);
\r