Einführung HAPO WS2020 TH Bingen, Prof. Jens Altenburg, LV2

Dependencies:   mbed

Committer:
prof_al
Date:
Wed Nov 18 14:32:21 2020 +0000
Revision:
0:d56a66901ae9
Version 1.0

Who changed what in which revision?

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