Testprogramm zu den Laborversuchen MPRO an der TH Bingen

Dependencies:   mbed

Committer:
prof_al
Date:
Mon Oct 25 10:14:30 2021 +0000
Revision:
2:a3df98386c21
Parent:
0:146c55884a99
Version_1_1

Who changed what in which revision?

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