mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-23 01:08:35 +00:00
29 lines
612 B
C
29 lines
612 B
C
/*
|
|
These are functions for working with applications and the
|
|
user-visible task switcher.
|
|
|
|
*/
|
|
|
|
#include "apps/clock.h"
|
|
#include "apps/rpn.h"
|
|
#include "apps/hex.h"
|
|
|
|
|
|
struct app {
|
|
void (*init)(void); //Called exactly once at startup.
|
|
void (*draw)(void); //Called four times per second to draw display.
|
|
/* Called once when moving to the next applet. Returns zero (or is
|
|
NULL) if the application may move on, or returns non-zero if the
|
|
exit call is intercepted.
|
|
*/
|
|
int (*exit)(void);
|
|
};
|
|
|
|
|
|
|
|
void app_draw();
|
|
void app_init();
|
|
void app_next();
|
|
void app_cleartimer();
|
|
void app_forcehome();
|