// lightsys.h - TRAFFIC LIGHT SYSTEM DECLARATIONS // MAINTENANCE HISTORY // DATE PROGRAMMER AND DETAILS // 09-11-02 JS Original //----------------------------------------------------------------------------- #ifdef __cplusplus extern "C" { #endif //----------------------------------------------------------------------------- // TRAFFIC LIGHT COLOURS typedef enum { RED, AMBER, GREEN } Colour; //----------------------------------------------------------------------------- // FUNCTION DECLARATIONS void Display (Colour northColour, Colour eastColour, Colour southColour, Colour westColour); // Display traffic light colour void InitApp (); // Initiate application void Tick (); // Process clock tick void VehicleWaiting (int northWait, int eastWait, int southWait, int westWait); // Change in vehicle waiting status //----------------------------------------------------------------------------- #ifdef __cplusplus } #endif