]> git.karo-electronics.de Git - oswald.git/blob - ui/oswald.h
Too much to note...
[oswald.git] / ui / oswald.h
1 #ifndef _OSWALD_H
2 #define _OSWALD_H
3
4 typedef signed char s8t;
5 typedef unsigned char u8t;
6 typedef u8t boolean;
7 #ifdef TRUE
8 #undef TRUE
9 #endif
10 #define TRUE 1
11 #ifdef FALSE
12 #undef FALSE
13 #endif
14 #define FALSE 0
15 #ifndef NULL
16 #define NULL 0
17 #endif
18
19 typedef struct {
20         u8t     hour;
21         u8t     minute;
22         u8t     second;
23         u8t     day;
24         u8t     month;
25         u8t     year;
26 } clock_state;
27
28 typedef enum {
29         IDLE_SCREEN = 0,
30         APPLICATION_SCREEN,
31 } screen_number;
32
33 typedef enum {
34         BUTTON_A = 0,
35         BUTTON_B,
36         BUTTON_C,
37         BUTTON_D,
38         BUTTON_E,
39         BUTTON_F,
40 } watch_button;
41
42 typedef struct {
43         screen_number   screen;
44         void (*idle_draw_func)(boolean show_seconds);
45         boolean idle_show_seconds;
46 } watch_state;
47
48
49 #endif
50