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 #define INIT_TRISA 0x2F // b0010 1111 00035 #define INIT_PORTA 0x10 // b0001 0000 00036 00037 #define INIT_TRISB 0x30 // bXX11 000X 00038 #define INIT_PORTB 0x00 // b0000 0000 00039 00040 #define INIT_TRISC 0xA7 // b1010 0111 00041 #define INIT_PORTC 0x00 // b0000 0000 00042 00043 #define INIT_TRISD 0x00 // b0000 0000 00044 #define INIT_PORTD 0x00 // b0000 0000 00045 00046 #define INIT_TRISE 0x0F // b0000 1111 00047 #define INIT_PORTE 0x00 // b0000 0000 00048 00049 #BIT BOR = 0x8E.0 00050 #BIT POR = 0x8E.1 00051 00052 #define __SERIAL_BUFFER_SIZE 50 00053 00054 #define FRONT 2 00055 #define FRONTLEFT 1 00056 #define FRONTRIGHT 0 00057 #define LEFT 4 00058 #define RIGHT 5 00059 #define REAR 3 00060 #define GROUNDLEFT 6 00061 #define GROUNDRIGHT 7 00062 #define FRONTZONE 0 00063 #define REARZONE 1 00064 #define GROUNDZONE 2 00065 00066 #define ENABLE 1 00067 #define DISABLE 0 00068 #define FAST 1 00069 #define NORMAL 0 00070 #define MANUAL 0 00071 #define REFRESH 1 00072 #define ON 1 00073 #define OFF 0 00074 00075 #define HEMIOS_VERSION 1 00076 #define HEMIOS_REVISION 41 00077