6 /* FIXME: are these typedefs right for m68hc11-gcc? */
7 typedef unsigned char u8;
8 typedef signed char s8;
9 typedef unsigned short u16;
10 typedef signed short s16;
11 typedef unsigned long u32;
12 typedef signed long s32;
16 /* addresses of these set at link time */
17 #define buffered_addr_h(a) \
18 extern volatile u8* _##a
20 buffered_addr_h(switch_input);
21 buffered_addr_h(misc_input);
22 buffered_addr_h(home_sensors);
23 buffered_addr_h(changer_output);
24 buffered_addr_h(misc_output);
26 /******* from display.c *******/
29 #define WRAP_SCROLL_L 1 /* scroll to the left */
30 #define WRAP_SCROLL_R 1 /* scroll to the right */
31 #define WRAP_ALTERNATE 2 /* alternate between text */
33 extern char current_message[1024];
36 void set_msg(char* newmsg);
37 void set_wrap_mode(u8 new_wrap_mode);
38 void display_refresh();
42 /******** Some meaningful bits ******/
43 #define PORTA_DISP_RESET 0x80 /* active low */
45 /* Address 3800 bits */
46 #define A3800_DISPLAY_WRITE 0x04