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;
45 // APPLICATION_SCREEN,
46 LAST_SCREEN, // a marker for the last (not valid) screen)
47 DATETIME_SETTING_SCREEN,
59 #define EVENT_SCREEN_VISIBLE (1<<0) // screen just became visible
60 #define EVENT_SCREEN_DESTROY (1<<1) // screen is destroyed
61 #define EVENT_ONE_SEC_TIMER (1<<2) // one second timer for reguler clock
62 #define EVENT_HALF_SEC_TIMER (1<<3) // half second timer for blinking displays
63 #define EVENT_CS_TIMER (1<<4) // centisecond timer, e.g. for stop watch
64 #define EVENT_USER_BUTTONS (1<<5) // button presses
65 #define EVENT_ACCEL_UPDATE (1<<6) // accelerometer updates
66 #define EVENT_AMBIENTLIGHT_UPDATE (1<<7) // ambient light sensor updates
67 #define EVENT_POWER_CHANGE (1<<8) // power source status change
68 #define EVENT_COMMS (1<<9) // communication, like Bluetooth I/O
71 u16t event_mask; // the event the screen wants to receive
72 void (*event_func)(u16t event, void *data); // callback for events
77 screen_number screen_id;
78 watch_screen *screen; // the current screen