Hello, world.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 30 Apr 2009 22:23:33 +0000 (22:23 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 30 Apr 2009 22:23:33 +0000 (22:23 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@3 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

firmware/Makefile [new file with mode: 0644]
firmware/blink.c [new file with mode: 0644]
hardware/README.txt [new file with mode: 0644]
hardware/goodfet11.brd [new file with mode: 0644]
hardware/goodfet11.sch [new file with mode: 0644]

diff --git a/firmware/Makefile b/firmware/Makefile
new file mode 100644 (file)
index 0000000..7912810
--- /dev/null
@@ -0,0 +1,13 @@
+
+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 
diff --git a/firmware/blink.c b/firmware/blink.c
new file mode 100644 (file)
index 0000000..d6c7c71
--- /dev/null
@@ -0,0 +1,36 @@
+//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
diff --git a/hardware/README.txt b/hardware/README.txt
new file mode 100644 (file)
index 0000000..8c63d99
--- /dev/null
@@ -0,0 +1,7 @@
+GOODFET Hardware README
+by Travis Goodspeed
+<travis at radiantmachines.com>
+
+This is the upcoming hardware revision of the GOODFET, which might or might
+not be functional in its present state.  See the /branches path for
+prior revisions, with documented errata.
diff --git a/hardware/goodfet11.brd b/hardware/goodfet11.brd
new file mode 100644 (file)
index 0000000..89e38a8
Binary files /dev/null and b/hardware/goodfet11.brd differ
diff --git a/hardware/goodfet11.sch b/hardware/goodfet11.sch
new file mode 100644 (file)
index 0000000..96a6900
Binary files /dev/null and b/hardware/goodfet11.sch differ