#ifndef MAIN_H #define MAIN_H // global variables, see software design document for further descriptions extern bit Tilt; // is the device in a tilt state? extern short xdata Heading; // current heading extern bit Redraw; // does the screen need to be redrawn? extern short xdata CurrentScreen; // currently displayed screen extern short xdata Loop; // loop through timer 0 a few times to slow it down struct ContactType { char id; int bearing; }; extern xdata struct ContactType Contact[10]; // see main.c or software design document for function descriptions void initialize(void); void main(void); void Initialize8051(void); void InitializeInterrupts(void); unsigned char Write_Read_Spi_Byte(unsigned char byte); void DSPHandler(void) interrupt 2; void TimerZeroHandler(void) interrupt 1 using 1; void ButtonHandler (void) interrupt 0 using 2; void delay(unsigned int delay_ticks); void DEBUG(char *msg); #endif