goodwatch/firmware
2017-10-15 17:34:10 -04:00
..
apps Fixes the century bug. Close #32. 2017-10-11 17:09:07 -04:00
libs First stab of a disassembler, not yet tied into the watch UI. 2017-10-15 17:34:10 -04:00
api.h Git tag is now included, can be displayed by holding 4 in Clock mode. 2017-10-02 19:22:29 -04:00
applist.h
apps.c
apps.h
keypad.c
keypad.h
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 Added a proper font for latin letters. Close #26. 2017-10-03 14:32:20 -04:00
lcdtext.h Added a proper font for latin letters. Close #26. 2017-10-03 14:32:20 -04:00
main.c Passing self test says GOODGOOD. 2017-09-30 13:36:40 -04: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
sidebutton.c
sidebutton.h

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