Jens Altenburg / Mbed 2 deprecated MPRO_SS21_Labor0

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cdef.h Source File

cdef.h

00001 /********************************************************************
00002  *
00003  *  Name:           cdef.h
00004  *  Beschreibung:   grundlegende Typdefinitionen
00005  *  Autor:
00006  *  Erstellung:     23.10.2012
00007  *
00008  *  Revisionsliste
00009  *  Datum       | Autor         | Änderung
00010  *  ------------+---------------+--------------------------
00011  *  23.10.2012  | Altenburg     | Ersterstellung
00012  *  ------------+---------------+--------------------------
00013  *
00014  ********************************************************************/
00015 #ifndef CDEF_H
00016 #define CDEF_H
00017 
00018 /**************************************************************************/
00019 /* Definitions                                                            */
00020 /**************************************************************************/
00021 typedef unsigned char byte;        /* vorzeichenlose 8-Bit-Zahl */
00022 typedef unsigned short word;       /* vorzeichenlose 16-Bit-Zahl */
00023 typedef signed char int8;          /* vorzeichenbehaftete 8-Bit-Zahl */
00024 typedef signed short int16;        /* vorzeichenbehaftete 16-Bit-Zahl */
00025 //typedef byte bool;                 /* True/False Aussage */
00026 typedef unsigned long dword;       /* Long-Zahl */
00027 typedef signed long int32;
00028 
00029 
00030 #define True                1
00031 #define False               0
00032 #define true                1
00033 #define false               0
00034 #define On                  1
00035 #define Off                 0
00036 #define Yes                 1
00037 #define No                  0
00038 
00039 #define Bit0    0x01                /* Bit-Definitionen */
00040 #define Bit1    0x02
00041 #define Bit2    0x04
00042 #define Bit3    0x08
00043 #define Bit4    0x10
00044 #define Bit5    0x20
00045 #define Bit6    0x40
00046 #define Bit7    0x80
00047 #define Bit8    (unsigned long)(1 << 8)            /* Bit-Definitionen */
00048 #define Bit9    (unsigned long)(1 << 9)
00049 #define Bit10   (1 << 10)
00050 #define Bit11   (unsigned long)(1 << 11)
00051 #define Bit12   (1 << 12)
00052 #define Bit13   (unsigned long)(1 << 13)
00053 #define Bit14   (1 << 14)
00054 #define Bit15   (unsigned long)(1 << 15)
00055 #define Bit16   (unsigned long)(1 << 16)           /* Bit-Definitionen */
00056 #define Bit17   (unsigned long)(1 << 17)
00057 #define Bit18   (unsigned long)(1 << 18)
00058 #define Bit19   (unsigned long)(1 << 19)
00059 #define Bit20   (unsigned long)(1 << 20)
00060 #define Bit21   (unsigned long)(1 << 21)
00061 #define Bit22   (unsigned long)(1 << 22)
00062 #define Bit23   (unsigned long)(1 << 23)
00063 #define Bit24   (unsigned long)(1 << 24)           /* Bit-Definitionen */
00064 #define Bit25   (unsigned long)(1 << 25)
00065 #define Bit26   (unsigned long)(1 << 26)
00066 #define Bit27   (unsigned long)(1 << 27)
00067 #define Bit28   (unsigned long)(1 << 28)
00068 #define Bit29   (unsigned long)(1 << 29)
00069 #define Bit30   (unsigned long)(1 << 30)
00070 #define Bit31   (unsigned long)(1 << 31)
00071 
00072 #define nDirectTFT
00073 
00074 //void vDontCheat( void );
00075 
00076 #endif
00077 /********************************************************************/
00078