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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [WizNET_DEMO_TERN_186/] [include/] [TYPES.H] - Blame information for rev 585

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 585 jeremybenn
/*
2
********************************************************************************
3
* Wiznet.
4
* 5F Simmtech Bldg., 228-3, Nonhyun-dong, Kangnam-gu,
5
* Seoul, Korea
6
*
7
* (c) Copyright 2002, Wiznet, Seoul, Korea
8
*
9
* Filename : types.h
10
* Programmer(s):
11
* Created : 2002/01/
12
* Modified :
13
* Description : Define of data type.
14
********************************************************************************
15
*/
16
 
17
#ifndef _TYPES_H_
18
#define _TYPES_H_
19
 
20
#ifndef NULL
21
# define NULL           ((void *) 0)
22
#endif
23
 
24
typedef enum { false, true } bool;
25
 
26
#ifndef _SIZE_T
27
#define _SIZE_T
28
typedef unsigned int size_t;
29
#endif
30
 
31
typedef unsigned char   BYTE;           // 8-bit value
32
typedef unsigned char   UCHAR;          // 8-bit value
33
typedef          int    INT;            // 16-bit value
34
typedef unsigned int    UINT;           // 16-bit value
35
typedef unsigned short  USHORT;         // 16-bit value
36
typedef unsigned short  WORD;           // 16-bit value
37
typedef unsigned long   ULONG;          // 32-bit value
38
typedef unsigned long   DWORD;          // 32-bit value
39
 
40
// bsd
41
typedef unsigned char   u_char;         // 8-bit value
42
typedef unsigned short  u_short;        // 16-bit value
43
typedef unsigned int            u_int;          // 16-bit value
44
typedef unsigned long   u_long;         // 32-bit value
45
 
46
typedef UCHAR   SOCKET;
47
 
48
 
49
/* Type for treating 4 byte variables with byte by byte */
50
typedef union un_l2cval
51
  {
52
  u_long        lVal;
53
  u_char        cVal[4];
54
  };
55
 
56
/* Type for treating 2 byte variables with byte by byte */
57
typedef union un_i2cval
58
  {
59
  u_int iVal;
60
  u_char        cVal[2];
61
  };
62
 
63
#endif          // _TYPES_H_
64
 

powered by: WebSVN 2.1.0

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