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