X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Ftests%2Fecho%2Fecho.c;h=59384889c4747517b2bbe20b7de6bf9c414d2008;hp=fabe89c9bfa60b1c596fc8960ddf800cf35b9457;hb=c5a56b2284ba0cd554cb44ed221eb91489607b9e;hpb=bb855f2f31e89ae9bbe5d953fe431b9d3c35e929 diff --git a/firmware/tests/echo/echo.c b/firmware/tests/echo/echo.c index fabe89c..5938488 100644 --- a/firmware/tests/echo/echo.c +++ b/firmware/tests/echo/echo.c @@ -7,16 +7,21 @@ #include #include + //LED on P1.0 //IO on P5 //! Initialize registers and all that jazz. void init(){ + volatile unsigned int i; WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer //LED and TX OUT PLEDDIR |= PLEDPIN; + msp430_init_dco(); + msp430_init_uart(); + //Enable Interrupts. //eint(); } @@ -27,6 +32,12 @@ int main(void) volatile unsigned int i; init(); + + PLEDOUT^=PLEDPIN; // Blink + + //while(1) serial_tx(serial_rx()); + while(1) serial_tx('G'); + while(1){ i = 10000; while(i--);