aboutsummaryrefslogtreecommitdiff
path: root/src/stdconst.h
blob: 09d1f31742ae8eeeb890393c3b50ea3e336ef56e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// Programmer      
//
// Date init       14.12.2004
//
// Reviser         $Author:: Dkandlun                                        $
//
// Revision date   $Date:: 14-11-07 12:40                                    $
//
// Filename        $Workfile:: stdconst.h                                    $
//
// Version         $Revision:: 1                                             $
//
// Archive         $Archive:: /LMS2006/Sys01/Main_V02/Firmware/Source/stdcon $
//
// Platform        C
//


#ifndef   STDCONST
#define   STDCONST

#include "config.h"

#ifndef NULL
#define NULL    ((void *)0)
#endif

#define   TRUE                          1
#define   FALSE                         0

typedef   unsigned char                 UCHAR;
typedef   unsigned short                USHORT;

typedef   unsigned char                 UBYTE;
typedef   signed char                   SBYTE;
typedef   unsigned short int            UWORD;
typedef   signed short int              SWORD;
typedef   unsigned long                 ULONG;
typedef   signed long                   SLONG;

typedef   ULONG*                        PULONG;
typedef   USHORT*                       PUSHORT;  
typedef   UCHAR*                        PUCHAR;
typedef   char*                         PSZ;

#define   BASETYPES

#ifdef __GNUC__
#define __ramfunc __attribute__ ((section (".fastrun"), optimize ("no-jump-tables")))
#define __ramdata __attribute__ ((section (".data")))
#else
#define __ramdata
#endif

#endif