goodwatch/firmware
2017-11-19 14:14:44 -05:00
..
apps Beginnings of a Morse application. #44 #46 2017-11-19 14:14:44 -05:00
libs Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00
api.h Power management and basics of the radio toward #44. 2017-11-16 12:53:12 -05:00
applist.h Beginnings of a Morse application. #44 #46 2017-11-19 14:14:44 -05:00
apps.c Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00
apps.h Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00
dmesg.c Logging adjustment. 2017-11-18 15:05:15 -05:00
dmesg.h DMESG properly initialized. #45 2017-11-18 12:46:03 -05:00
Doxyfile Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00
keypad.c Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00
keypad.h Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00
lcd.c Cleanup of the RF1A library. No longer displays useless errors. #44 2017-11-19 14:13:52 -05:00
lcd.h Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00
lcdtext.c Shows RTCDOW when holding '9' in the clock app. #43 2017-11-15 21:33:13 -05:00
lcdtext.h Shows RTCDOW when holding '9' in the clock app. #43 2017-11-15 21:33:13 -05:00
main.c Cleanup of the RF1A library. No longer displays useless errors. #44 2017-11-19 14:13:52 -05:00
Makefile Beginnings of a Morse application. #44 #46 2017-11-19 14:14:44 -05:00
memory.x Dmesg can now be dumped by 'make dmesg'. Close #45. 2017-11-18 14:56:46 -05:00
msp430.x Imported linker scripts, so we can force dmesg to a static address. #45 2017-11-18 14:29:58 -05:00
periph.x Imported linker scripts, so we can force dmesg to a static address. #45 2017-11-18 14:29:58 -05:00
power.c Power can now be turned down as well as up. 2017-11-18 17:58:05 -05:00
power.h Power management and basics of the radio toward #44. 2017-11-16 12:53:12 -05:00
radio.c Cleanup of the RF1A library. No longer displays useless errors. #44 2017-11-19 14:13:52 -05:00
radio.h Cleanup of the RF1A library. No longer displays useless errors. #44 2017-11-19 14:13:52 -05:00
README.md README for the firmware directory. 2017-09-29 15:39:05 -04:00
rtc.c RTC day of week code, accurate until 2200. Close #43. 2017-11-15 22:21:59 -05:00
rtc.h Shows RTCDOW when holding '9' in the clock app. #43 2017-11-15 21:33:13 -05:00
sidebutton.c Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00
sidebutton.h Remaining doxygen headers and Doxyfile. Close #39. 2017-11-14 14:07:10 -05:00

Howdy y'all,

The GoodWatch firmware is in this directory. You will find user-level applications in the apps/ subdirectory, while *.c in the root directory contain low-level drivers.

To add your own application, for one of the smaller examples, such as stopwatch.c. Your app must provide functions for _init() (to run at startup), _draw() (to run every quarter-second for rendering), and _exit() which should just return 0 unless you need to intercept the Mode button, in which case it may return 1 to delay the exit. Add these three functions to a line of the apps[] structure in applist.h.

In general, we try not to over-abstract the hardware because we don't intend the design to be portable away from the CC430. Include <msp430.h> if you need to access the CC430's IO registers or "api.h" for all the standard functions of the GoodWatch firmware.

Cheers,

--Travis