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
53 volatile unsigned int i;
\r
54 unsigned char app, verb, len;
\r
59 txdata(MONITOR,OK,0);
\r
61 //Command loop. There's no end!
\r
70 cmddata[i]=serial_rx();
\r
72 handle(app,verb,len);
\r