blob: 93edce6f817f183769898f0d616969288fa5598c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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
|