From: travisutk Date: Thu, 30 Apr 2009 22:23:33 +0000 (+0000) Subject: Hello, world. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=2f150be975db20a127c21351bf6cb4b8d3c12511;ds=sidebyside Hello, world. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@3 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/Makefile b/firmware/Makefile new file mode 100644 index 0000000..7912810 --- /dev/null +++ b/firmware/Makefile @@ -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 index 0000000..d6c7c71 --- /dev/null +++ b/firmware/blink.c @@ -0,0 +1,36 @@ +//GOODFET Blinker + +//1611 is preferred, but 1612 accepted + +#include +#include +#include + +//LED on P1.0 +//IO on P5 + +//! Initialize registers and all that jazz. +void init(){ + WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer + + //LED and TX OUT + P1DIR = 0x03; + + //Enable Interrupts. + //eint(); +} + +//! Main loop. +int main(void) +{ + volatile unsigned int i; + init(); + + while(1){ + i = 10000; + while(i--); + + P1OUT^=1; // Blink + } +} + diff --git a/hardware/README.txt b/hardware/README.txt new file mode 100644 index 0000000..8c63d99 --- /dev/null +++ b/hardware/README.txt @@ -0,0 +1,7 @@ +GOODFET Hardware README +by Travis Goodspeed + + +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 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 index 0000000..96a6900 Binary files /dev/null and b/hardware/goodfet11.sch differ