2 //Includes several applications.
\r
4 #include "platform.h"
\r
10 #include <iomacros.h>
\r
16 //! Initialize registers and all that jazz.
\r
18 volatile unsigned int i;
\r
19 WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
\r
27 //Enable Interrupts.
\r
31 //! Handle a command.
\r
32 void handle(unsigned char app,
\r
37 monitorhandle(app,verb,len);
\r
40 spihandle(app,verb,len);
\r
43 i2chandle(app,verb,len);
\r
46 cchandle(app,verb,len);
\r
49 jtaghandle(app,verb,len);
\r
52 jtag430handle(app,verb,len);
\r
63 volatile unsigned int i;
\r
64 unsigned char app, verb, len;
\r
69 txdata(MONITOR,OK,0);
\r
71 //Command loop. There's no end!
\r
80 cmddata[i]=serial_rx();
\r
82 handle(app,verb,len);
\r