2017-11-14 19:07:10 +00:00
|
|
|
/*! \file applist.h
|
|
|
|
\brief Table of all active applications. Add yours here.
|
|
|
|
*/
|
|
|
|
|
2017-09-27 23:34:33 +00:00
|
|
|
#include "apps/clock.h"
|
|
|
|
#include "apps/stopwatch.h"
|
|
|
|
#include "apps/rpn.h"
|
|
|
|
#include "apps/hex.h"
|
|
|
|
|
|
|
|
|
2017-11-16 17:53:12 +00:00
|
|
|
/* For each application, the init() function is called at entry. The
|
|
|
|
draw() function is called 4 times per second. The exit() function
|
|
|
|
is called when the mode button is pressed, but returns 1 to reject
|
|
|
|
a mode switch or 0 to allow it.
|
2017-09-26 15:44:10 +00:00
|
|
|
*/
|
|
|
|
static struct app apps[]={
|
2017-09-27 20:10:24 +00:00
|
|
|
//Clock
|
2017-10-17 18:37:10 +00:00
|
|
|
{.name="clock", .init=clock_init, .draw=clock_draw, .exit=clock_exit},
|
2017-09-27 23:34:33 +00:00
|
|
|
//Stopwatch
|
2017-10-17 18:37:10 +00:00
|
|
|
{.name="timer", .init=stopwatch_init, .draw=stopwatch_draw, .exit=stopwatch_exit},
|
2017-09-27 23:34:33 +00:00
|
|
|
|
2017-09-27 20:10:24 +00:00
|
|
|
//RPN Calculator
|
2017-10-17 18:37:10 +00:00
|
|
|
{.name="rpn calc", .init=rpn_init, .draw=rpn_draw, .exit=rpn_exit},
|
2017-09-27 22:02:42 +00:00
|
|
|
//Hex Viewer.
|
2017-10-17 18:37:10 +00:00
|
|
|
{.name="memory", .init=hex_init, .draw=hex_draw, .exit=hex_exit},
|
2017-09-27 22:02:42 +00:00
|
|
|
|
2017-09-27 20:10:24 +00:00
|
|
|
//End on null entry.
|
2017-10-17 18:37:10 +00:00
|
|
|
{.name=0, .init=0, .draw=0, .exit=0}
|
2017-09-26 15:44:10 +00:00
|
|
|
};
|