6 #define dbg_out( args... ) fprintf(stderr, args)
8 #define dbg_out( args... ) do {} while (0)
11 typedef signed char s8t;
12 typedef unsigned char u8t;
13 typedef signed short s16t;
14 typedef unsigned short u16t;
40 DATETIME_SETTING_SCREEN,
44 // APPLICATION_SCREEN,
45 LAST_SCREEN, // a marker for the last (not valid) screen)
57 #define EVENT_SCREEN_VISIBLE (1<<0) // screen just became visible
58 #define EVENT_SCREEN_DESTROY (1<<1) // screen is destroyed
59 #define EVENT_ONE_SEC_TIMER (1<<2)
60 #define EVENT_MS_TIMER (1<<3)
61 #define EVENT_USER_BUTTONS (1<<4)
62 #define EVENT_ACCEL_UPDATE (1<<5)
63 #define EVENT_AMBIENTLIGHT_UPDATE (1<<6)
64 #define EVENT_POWER_CHANGE (1<<7)
65 #define EVENT_COMMS (1<<8)
68 u16t event_mask; // the event the screen wants to receive
69 void (*event_func)(u16t event, void *data); // callback for events
70 // void (*button_func)(watch_button button); // handles button presses
71 // void (*screendraw_func)(void); // callback for screen update
76 screen_number screen_id;
77 // void (*draw_watchface_func)(boolean show_seconds);
78 boolean idle_show_seconds;
79 watch_screen *screen; // the current screen
80 // void (*user_button_func)(watch_button button);
81 // void (*user_screendraw_func)(void);