+++ /dev/null
-
-PORT=/dev/ttyUSB0
-BSL=tos-bsl --invert-reset --invert-test -c $(PORT)
-
-CC=msp430-gcc -g -mmcu=msp430x1611 -DGCC
-
-app=blink
-
-install: $(app)
- $(BSL) -e -p $(app)
- $(BSL) -P $(app) -g 0x4000
-erase:
- $(BSL) -e
+++ /dev/null
-//GOODFET Blinker\r
-\r
-//1611 is preferred, but 1612 accepted\r
-\r
-#include <signal.h>\r
-#include <io.h>\r
-#include <iomacros.h>\r
-\r
-//LED on P1.0\r
-//IO on P5\r
-\r
-//! Initialize registers and all that jazz.\r
-void init(){\r
- WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer\r
- \r
- //LED and TX OUT\r
- P1DIR = 0x03;\r
- \r
- //Enable Interrupts.\r
- //eint();\r
-}\r
-\r
-//! Main loop.\r
-int main(void)\r
-{\r
- volatile unsigned int i;\r
- init();\r
- \r
- while(1){\r
- i = 10000;\r
- while(i--);\r
- \r
- P1OUT^=1; // Blink\r
- }\r
-}\r
-\r
--- /dev/null
+
+PORT=/dev/ttyUSB0
+BSL=tos-bsl --invert-reset --invert-test -c $(PORT)
+
+CC=msp430-gcc -g -mmcu=msp430x1611 -DGCC
+
+app=blink
+
+install: $(app)
+ $(BSL) -e -p $(app)
+ $(BSL) -P $(app) -g 0x4000
+erase:
+ $(BSL) -e
--- /dev/null
+//GOODFET Blinker\r
+\r
+//1611 is preferred, but 1612 accepted\r
+\r
+#include <signal.h>\r
+#include <io.h>\r
+#include <iomacros.h>\r
+\r
+//LED on P1.0\r
+//IO on P5\r
+\r
+//! Initialize registers and all that jazz.\r
+void init(){\r
+ WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer\r
+ \r
+ //LED and TX OUT\r
+ P1DIR = 0x03;\r
+ \r
+ //Enable Interrupts.\r
+ //eint();\r
+}\r
+\r
+//! Main loop.\r
+int main(void)\r
+{\r
+ volatile unsigned int i;\r
+ init();\r
+ \r
+ while(1){\r
+ i = 10000;\r
+ while(i--);\r
+ \r
+ P1OUT^=1; // Blink\r
+ }\r
+}\r
+\r