goodwatch/firmware
2017-11-12 20:58:39 -05:00
..
apps Fixes arithmetic bug that gave trouble when setting the tens digit of the month. 2017-11-12 11:21:23 -05:00
libs The disassembler now shows As, Ad, and the registers. Stranger modes not yet supported. #34 2017-10-16 15:23:52 -04:00
api.h Partial support for disassembly in the hex editor. #34 2017-10-16 11:59:09 -04:00
applist.h Applications now have names. Fixed a warning. 2017-10-17 14:37:10 -04:00
apps.c Fixed bug where LCD wouldn't be entirely cleared when timing out back to the clock. 2017-09-27 19:09:17 -04:00
apps.h Applications now have names. Fixed a warning. 2017-10-17 14:37:10 -04:00
keypad.c Fixes a bug in the keyscanning routine. 2017-09-26 16:23:34 -04:00
keypad.h Sidebutton support toward #18. Mode switches come next. 2017-09-26 16:05:55 -04:00
lcd.c LCD now begins dark, for diagnostics when clock won't stabilize. 2017-09-30 13:12:11 -04:00
lcd.h Moved drawing code back into main.c. 2017-09-28 17:34:46 -04:00
lcdtext.c The letter R is now clearer in the font. 2017-11-12 20:58:39 -05:00
lcdtext.h Applications now have names. Fixed a warning. 2017-10-17 14:37:10 -04:00
main.c Holding SET/PRGM for ten seconds will now trigger a Power-On-Reset. Close #38. 2017-11-12 20:47:58 -05:00
Makefile First stab of a disassembler, not yet tied into the watch UI. 2017-10-15 17:34:10 -04:00
README.md README for the firmware directory. 2017-09-29 15:39:05 -04:00
rtc.c Saves the clock to uninitialized RAM, so that we only lose a few seconds when the machine crashes. Close #30. 2017-10-04 12:22:48 -04:00
rtc.h Refactored the clock app's display into its proper module. Colon now blinks once each second, rather than twice. 2017-09-28 17:22:55 -04:00
sidebutton.c Sidebutton support toward #18. Mode switches come next. 2017-09-26 16:05:55 -04:00
sidebutton.h Sidebutton support toward #18. Mode switches come next. 2017-09-26 16:05:55 -04: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