OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [exec/] [itron/] [include/] [itronsys/] [types.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 158 chris
/*
2
 *  COPYRIGHT (c) 1989-1999.
3
 *  On-Line Applications Research Corporation (OAR).
4
 *
5
 *  The license and distribution terms for this file may be
6
 *  found in the file LICENSE in this distribution or at
7
 *  http://www.OARcorp.com/rtems/license.html.
8
 *
9 208 chris
 *  $Id: types.h,v 1.2 2001-09-27 11:59:12 chris Exp $
10 158 chris
 */
11
 
12
#ifndef __ITRON_TYPES_h_
13
#define __ITRON_TYPES_h_
14
 
15
#ifdef __cplusplus
16
extern "C" {
17
#endif
18
 
19
/* XXX some of these may need to be moved */
20
/*
21
 *  XXX: These names are too short and conflict with numerous
22
 *       off the shell programs including paranoia.
23
 */
24
 
25
typedef signed8      B;       /* signed 8-bit integer */
26
typedef signed16     H;       /* signed 16-bit integer */
27
typedef signed32     W;       /* signed 32-bit integer */
28
typedef unsigned8    UB;      /* unsigned 8-bit integer */
29
typedef unsigned16   UH;      /* unsigned 16-bit integer */
30
typedef unsigned32   UW;      /* unsigned 32-bit integer */
31
 
32
typedef unsigned32   VW;      /* unpredictable data type (32-bit size) */
33
typedef unsigned16   VH;      /* unpredictable data type (16-bit size) */
34
typedef unsigned8    VB;      /* unpredictable data type (8-bit size) */
35
 
36
typedef void        *VP;      /* pointer to an unpredictable data type */
37
 
38
typedef void (*FP)();         /* program start address */
39
 
40
/*
41
 *  6.4 Data Types
42
 *
43
 *  The difference between VB, VH and VW and B, H and W is that only the
44
 *  number of bits is known for the former, not the data type of the
45
 *  contents.  The latter clearly represent integers.
46
 */
47
 
48
/*
49
 *  Data Types Dependent on ITRON Specification
50
 *
51
 *  In order to clarify the meanings of certain parameters, the
52
 *  following names are used for data types which appear frequently
53
 *  and/or have special meanings.
54
 */
55
 
56
typedef signed32   INT;    /* Signed integer (bit width of processor) */
57
typedef unsigned32 UINT;   /* Unsigned integer (bit width of processor) */
58
typedef boolean    BOOL;   /* Boolean value.  TRUE (1) or FALSE (0). */
59
typedef signed16   FN;     /* Function code. Signed integer. Maximum 2 bytes. */
60
typedef int        ID;     /* Object ID number (???id) */
61
                           /*   Value range depends on the system.  Usually */
62
                           /*   a signed integer.  Certain ID values may */
63
                           /*   represent objects on other nodes when the */
64
                           /*   connection function is supported. */
65
 
66
typedef unsigned32 BOOL_ID;/* Boolean value or ID number */
67
 
68
typedef signed32 HNO;      /* Handler number */
69
typedef signed32 RNO;      /* Rendezvous number */
70
typedef signed32 NODE;     /* Node Number.  Usually a signed integer. */
71
typedef signed32 ATR;      /* Object or handler attribute. */
72
                           /*   An unsigned integer. */
73
typedef signed32 ER;       /* Error code.  A signed integer. */
74
typedef unsigned32 PRI;    /* Task priority.  A signed integer. */
75
typedef signed32 TMO;      /* Timeout value.  A signed integer. */
76
                           /*   TMO_POL = 0 indicates polling, */
77
                           /*   while TMO_FEVR = -1 indicates wait forever. */
78
 
79
/*
80
 *   6.6 Common Constants and Data Structure Packet Formats
81
 */
82
 
83
#define NADR   (-1)   /* invalid address or pointer value */
84
 
85
#ifndef TRUE
86
#define TRUE     1    /* true */
87
#endif
88
 
89
#ifndef FALSE
90
#define FALSE    0    /* false */
91
#endif
92
 
93
/*
94
 *  ATR tskatr, intatr, cycatr, almatr, svcatr, excatr:
95
 *
96
 *  TA_ASM indicates that the task or handler is directly started
97
 *         at the assembly language level.  The TA_ASM attribute has the
98
 *         opposite meaning of TA_HLNG.
99
 *
100
 *  NOTE: Really in <itronsys/task.h>
101
 */
102
 
103
#if 0
104
#define TA_ASM    0x00   /* program written in assembly language */
105
#define TA_HLNG   0x01   /* program written in high-level language */
106
#endif
107
 
108
/*
109
 *  TMO tmout:
110
 */
111
 
112
#define TMO_POL      0    /* polling */
113
#define TMO_FEVR   (-1)   /* wait forever */
114
 
115
#ifdef __cplusplus
116
}
117
#endif
118
 
119
#endif
120
/* end of include file */
121
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.