From 56d9bdd39ed36c36e9a61411b86c76d5228b2133 Mon Sep 17 00:00:00 2001 From: sicarius Date: Sun, 11 Feb 2007 18:32:03 +0000 Subject: Added lot's of code-files used during work --- source/ct-Bot/include/global.h | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 source/ct-Bot/include/global.h (limited to 'source/ct-Bot/include/global.h') diff --git a/source/ct-Bot/include/global.h b/source/ct-Bot/include/global.h new file mode 100644 index 0000000..93edce6 --- /dev/null +++ b/source/ct-Bot/include/global.h @@ -0,0 +1,67 @@ +/* + * c't-Sim - Robotersimulator fuer den c't-Bot + * + * This program is free software; you can redistribute it + * and/or modify it under the terms of the GNU General + * Public License as published by the Free Software + * Foundation; either version 2 of the License, or (at your + * option) any later version. + * This program is distributed in the hope that it will be + * useful, but WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free + * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307, USA. + * + */ + +/*! @file global.h + * @brief Allgemeine Definitionen + * @author Benjamin Benz (bbe@heise.de) + * @date 20.12.05 +*/ + +#ifndef global_H + #define global_H /*!< Bereits definiert */ + + #ifndef MCU + #ifndef PC + #define PC /*!< Zielplattform PC */ + #endif + #endif + + #ifndef WIN32 + typedef unsigned char byte; /*!< vorzeichenlose 8-Bit-Zahl */ + typedef byte bool; /*!< True/False-Aussage */ + #endif + + //#define DOXYGEN /*!< Nur zum Generieren von Doku!!!! */ + #ifdef DOXYGEN /*!< Nur zum Generieren von Doku!!!! */ + #define PC /*!< Zielplattform PC */ + #define MCU /*!< Zielplattform MCU */ + #define WIN32 /*!< System Windows */ + #define __linux__ /*!< System Linux */ + #endif + + typedef unsigned char uint8; /*!< vorzeichenlose 8-Bit-Zahl */ + typedef unsigned int word; /*!< vorzeichenlose 16-Bit-Zahl */ + typedef signed char int8; /*!< vorzeichenbehaftete 8-Bit-Zahl */ + typedef short int int16; /*!< vorzeichenbehaftete 16-Bit-Zahl */ + + typedef unsigned long uint32; /*!< vorzeichenlose 32-Bit-Zahl */ + typedef signed long int32; /*!< vorzeichenbehaftete 32-Bit-Zahl */ + + #define uint16 word /*!< Int mit 16 Bit */ + + #define True 1 /*!< Wahr */ + #define False 0 /*!< Falsch */ + + #define On 1 /*!< An */ + #define Off 0 /*!< Aus */ + +// #define PI 3.14159 /*!< Kreiszahl Pi fuer trigonometrische Berechnungen */ + #define binary(var,bit) ((var >> bit)&1) + //#define NULL 0 +#endif -- cgit v1.2.3