TO CHECKOUT

Dependencies:   mbed

Committer:
chrish
Date:
Tue Dec 02 13:29:16 2014 +0000
Revision:
1:6a77fc8e1389
Parent:
0:785c2b62c4d1
Nr2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chrish 0:785c2b62c4d1 1 /********************************************************************
chrish 0:785c2b62c4d1 2 *
chrish 0:785c2b62c4d1 3 * Name: cdef.h
chrish 0:785c2b62c4d1 4 * Beschreibung: grundlegende Typdefinitionen
chrish 0:785c2b62c4d1 5 * Autor:
chrish 0:785c2b62c4d1 6 * Erstellung: 23.10.2012
chrish 0:785c2b62c4d1 7 *
chrish 0:785c2b62c4d1 8 * Revisionsliste
chrish 0:785c2b62c4d1 9 * Datum | Autor | Änderung
chrish 0:785c2b62c4d1 10 * ------------+---------------+--------------------------
chrish 0:785c2b62c4d1 11 * 23.10.2012 | Altenburg | Ersterstellung
chrish 0:785c2b62c4d1 12 * ------------+---------------+--------------------------
chrish 0:785c2b62c4d1 13 *
chrish 0:785c2b62c4d1 14 ********************************************************************/
chrish 0:785c2b62c4d1 15 #ifndef CDEF_H
chrish 0:785c2b62c4d1 16 #define CDEF_H
chrish 0:785c2b62c4d1 17
chrish 0:785c2b62c4d1 18 /**************************************************************************/
chrish 0:785c2b62c4d1 19 /* Definitions */
chrish 0:785c2b62c4d1 20 /**************************************************************************/
chrish 0:785c2b62c4d1 21 typedef unsigned char byte; /* vorzeichenlose 8-Bit-Zahl */
chrish 0:785c2b62c4d1 22 typedef unsigned short word; /* vorzeichenlose 16-Bit-Zahl */
chrish 0:785c2b62c4d1 23 typedef signed char int8; /* vorzeichenbehaftete 8-Bit-Zahl */
chrish 0:785c2b62c4d1 24 typedef signed short int16; /* vorzeichenbehaftete 16-Bit-Zahl */
chrish 0:785c2b62c4d1 25 //typedef byte bool; /* True/False Aussage */
chrish 0:785c2b62c4d1 26 typedef unsigned int dword; /* Long-Zahl */
chrish 0:785c2b62c4d1 27 typedef signed int int32;
chrish 0:785c2b62c4d1 28
chrish 0:785c2b62c4d1 29
chrish 0:785c2b62c4d1 30 #define True 1
chrish 0:785c2b62c4d1 31 #define False 0
chrish 0:785c2b62c4d1 32 #define true 1
chrish 0:785c2b62c4d1 33 #define false 0
chrish 0:785c2b62c4d1 34 #define On 1
chrish 0:785c2b62c4d1 35 #define Off 0
chrish 0:785c2b62c4d1 36 #define Yes 1
chrish 0:785c2b62c4d1 37 #define No 0
chrish 0:785c2b62c4d1 38
chrish 0:785c2b62c4d1 39 #define Bit0 0x01 /* Bit-Definitionen */
chrish 0:785c2b62c4d1 40 #define Bit1 0x02
chrish 0:785c2b62c4d1 41 #define Bit2 0x04
chrish 0:785c2b62c4d1 42 #define Bit3 0x08
chrish 0:785c2b62c4d1 43 #define Bit4 0x10
chrish 0:785c2b62c4d1 44 #define Bit5 0x20
chrish 0:785c2b62c4d1 45 #define Bit6 0x40
chrish 0:785c2b62c4d1 46 #define Bit7 0x80
chrish 0:785c2b62c4d1 47 #define Bit8 (1 << 8) /* Bit-Definitionen */
chrish 0:785c2b62c4d1 48 #define Bit9 (1 << 9)
chrish 0:785c2b62c4d1 49 #define Bit10 (1 << 10)
chrish 0:785c2b62c4d1 50 #define Bit11 (1 << 11)
chrish 0:785c2b62c4d1 51 #define Bit12 (1 << 12)
chrish 0:785c2b62c4d1 52 #define Bit13 (1 << 13)
chrish 0:785c2b62c4d1 53 #define Bit14 (1 << 14)
chrish 0:785c2b62c4d1 54 #define Bit15 (1 << 15)
chrish 0:785c2b62c4d1 55 #define Bit16 (1 << 16) /* Bit-Definitionen */
chrish 0:785c2b62c4d1 56 #define Bit17 (1 << 17)
chrish 0:785c2b62c4d1 57 #define Bit18 (1 << 18)
chrish 0:785c2b62c4d1 58 #define Bit19 (1 << 19)
chrish 0:785c2b62c4d1 59 #define Bit20 (1 << 20)
chrish 0:785c2b62c4d1 60 #define Bit21 (1 << 21)
chrish 0:785c2b62c4d1 61 #define Bit22 (1 << 22)
chrish 0:785c2b62c4d1 62 #define Bit23 (1 << 23)
chrish 0:785c2b62c4d1 63 #define Bit24 (1 << 24) /* Bit-Definitionen */
chrish 0:785c2b62c4d1 64 #define Bit25 (1 << 25)
chrish 0:785c2b62c4d1 65 #define Bit26 (1 << 26)
chrish 0:785c2b62c4d1 66 #define Bit27 (1 << 27)
chrish 0:785c2b62c4d1 67 #define Bit28 (1 << 28)
chrish 0:785c2b62c4d1 68 #define Bit29 (1 << 29)
chrish 0:785c2b62c4d1 69 #define Bit30 (1 << 30)
chrish 0:785c2b62c4d1 70 #define Bit31 (1 << 31)
chrish 0:785c2b62c4d1 71
chrish 0:785c2b62c4d1 72
chrish 0:785c2b62c4d1 73 #endif
chrish 0:785c2b62c4d1 74 /********************************************************************/
chrish 0:785c2b62c4d1 75