X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=blobdiff_plain;f=ui%2Foswald.h;fp=ui%2Foswald.h;h=c2ea5d3b5ecfc37d6989724e7f595ef71fdd637f;hp=0000000000000000000000000000000000000000;hb=e09935ae9396421171a3bc4e32320874a0bfd193;hpb=258ff12081a3f4d0dc91014a59b3aa0c8639f820 diff --git a/ui/oswald.h b/ui/oswald.h new file mode 100644 index 0000000..c2ea5d3 --- /dev/null +++ b/ui/oswald.h @@ -0,0 +1,50 @@ +#ifndef _OSWALD_H +#define _OSWALD_H + +typedef signed char s8t; +typedef unsigned char u8t; +typedef u8t boolean; +#ifdef TRUE +#undef TRUE +#endif +#define TRUE 1 +#ifdef FALSE +#undef FALSE +#endif +#define FALSE 0 +#ifndef NULL +#define NULL 0 +#endif + +typedef struct { + u8t hour; + u8t minute; + u8t second; + u8t day; + u8t month; + u8t year; +} clock_state; + +typedef enum { + IDLE_SCREEN = 0, + APPLICATION_SCREEN, +} screen_number; + +typedef enum { + BUTTON_A = 0, + BUTTON_B, + BUTTON_C, + BUTTON_D, + BUTTON_E, + BUTTON_F, +} watch_button; + +typedef struct { + screen_number screen; + void (*idle_draw_func)(boolean show_seconds); + boolean idle_show_seconds; +} watch_state; + + +#endif +