Main Page | Modules | File List | Globals

variables.c

Go to the documentation of this file.
00001 //--------------------------------------------------------------------------------//
00002 //-                   HemiOs ( Hemisson Operating System )                       -//
00003 //-                                                                              -//
00004 //-  Copyright (C) Alexandre Colot, K-Team S.A. 2002                             -//
00005 //-  This library is free software; you can redistribute it and/or               -//
00006 //-  modify it under the terms of the GNU Lesser General Public                  -//
00007 //-  License as published by the Free Software Foundation; either                -//
00008 //-  version 2.1 of the License, or any later version.                           -//
00009 //-                                                                              -//
00010 //-  This library is distributed in the hope that it will be useful,             -//
00011 //-  but WITHOUT ANY WARRANTY; without even the implied warranty of              -//
00012 //-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU           -//
00013 //-  Lesser General Public License for more details.                             -//
00014 //-                                                                              -//
00015 //-  You should have received a copy of the GNU Lesser General Public            -//
00016 //-  License along with this library; if not, write to the Free Software         -//
00017 //-  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   -//
00018 //-                                                                              -//
00019 //-                               __  __  ________                               -//
00020 //- K-Team S.A.                  |  |/  /|__    __|___  _____  ___  ___          -//
00021 //- Chemin de Vuasset, CP 111    |     / __ |  | _____|/  _  \|   \/   |         -//
00022 //- 1028 Preverenges             |  |  \    |  | ____|/  /_\  |        |         -//
00023 //- Switzerland                  |__|\__\   |__|______|_/   \_|__|\/|__|         -//
00024 //- alexandre.colot@k-team.com   tel:+41 21 802 5472 fax:+41 21 802 5471         -//
00025 //-                                                                              -//
00026 //--------------------------------------------------------------------------------//
00027 
00029 
00032 
00033 
00034 //- Motors
00035 signed int8 __PwmMotLeft = 0;                                                    // 0 : Stop ; 9 : Max Speed
00036 signed int8 __PwmMotRight = 0;                                                   // 0 : Stop ; 9 : Max Speed
00037 unsigned char __PwmCounter = 0;
00038 
00039 //- Configuration Bits
00040 int1 __Auto_Refresh_Sensors = 1;                                                 // 1 : Auto   ; 0 : Manual
00041 int1 __Auto_Refresh_TV_Remote = 1;                                               // 1 : Auto   ; 0 : Never
00042 int1 __Enable_RS232_Control = 1;                                                 // 1 : Enable ; 0 : Disable
00043 int1 __Enable_TV_Remote_Control = 1;                                             // 1 : Enable ; 0 : Disable
00044 
00045 //- Flags
00046 int1 __Sensors_Refreshed_Flag = 0;                                               // 1 : Sensors refreshed
00047 int1 __TV_Data_Available = 0;
00048 
00049 //- RS232
00050 char __SerialBuffer[ __SERIAL_BUFFER_SIZE ];
00051 #locate __SerialBuffer = 0x01A0
00052 char __SerialCounter = 0;
00053 
00054 //- TV Remote Control
00055 int1 __StartBit1 = 0;
00056 int1 __StartBit2 = 0;
00057 int1 __ToggleBit = 0;
00058 int1 __SystemBit4 = 0;
00059 int1 __SystemBit3 = 0;
00060 int1 __SystemBit2 = 0;
00061 int1 __SystemBit1 = 0;
00062 int1 __SystemBit0 = 0;
00063 int1 __DataBit5 = 0;
00064 int1 __DataBit4 = 0;
00065 int1 __DataBit3 = 0;
00066 int1 __DataBit2 = 0;
00067 int1 __DataBit1 = 0;
00068 int1 __DataBit0 = 0;
00069 int __TV_DATA = 0;
00070 int __TV_Counter = 0;
00071 int __BeepMem = 0;
00072 
00073 //- Time
00074 unsigned int32 __TimeTip = 0;
00075 char __TimeTipDivider = 0;
00076 
00077 //- Irs Sensors
00078 unsigned char __IR_Light[ 8 ];
00079 #locate __IR_Light = 0x01D2
00080 unsigned char __IR_Proximity[ 8 ];                                    // 0 : nothing detected ; 255 : obstacle near Hemisson
00081 #locate __IR_Proximity = 0x01DA
00082 
00083 //- Switchs
00084 char __Switchs[ 4 ];
00085 #locate __Switchs = 0x01E2
00086 
00087 //- Scheduler
00088 unsigned char __SchedulerTask = 0;
00089 int __Divider = 0;
00090 
00091 
00092 
00093 
00094 
00095 

Generated on Mon Feb 23 23:53:21 2004 for HemiOs by doxygen 1.3.4