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

Subversion Repositories sdcard_mass_storage_controller

[/] [sdcard_mass_storage_controller/] [trunk/] [sw/] [sdc_dma/] [orsocdef.h] - Blame information for rev 127

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 69 tac2
#ifndef __orsocdef_h_
2
#define __orsocdef_h_
3
/*$$HEADER*/
4
/******************************************************************************/
5
/*                                                                            */
6
/*                    H E A D E R   I N F O R M A T I O N                     */
7
/*                                                                            */
8
/******************************************************************************/
9
 
10
// Project Name                   : Development Board Debugger Example 
11
// File Name                      : orsocdef.h
12
// Prepared By                    : jb
13
// Project Start                  : 2009-01-01
14
 
15
 
16
/*$$COPYRIGHT NOTICE*/
17
/******************************************************************************/
18
/*                                                                            */
19
/*                      C O P Y R I G H T   N O T I C E                       */
20
/*                                                                            */
21
/******************************************************************************/
22
 
23
// Copyright (c) ORSoC 2009 All rights reserved.
24
 
25
// The information in this document is the property of ORSoC.
26
// Except as specifically authorized in writing by ORSoC, the receiver of
27
// this document shall keep the information contained herein confidential and
28
// shall protect the same in whole or in part thereof from disclosure and
29
// dissemination to third parties. Disclosure and disseminations to the receiver's
30
// employees shall only be made on a strict need to know basis.
31
 
32
 
33
/*$$DESCRIPTION*/
34
/******************************************************************************/
35
/*                                                                            */
36
/*                           D E S C R I P T I O N                            */
37
/*                                                                            */
38
/******************************************************************************/
39
 
40
// Define some types used in our project.
41
 
42
/*$$CHANGE HISTORY*/
43
/******************************************************************************/
44
/*                                                                            */
45
/*                         C H A N G E  H I S T O R Y                         */
46
/*                                                                            */
47
/******************************************************************************/
48
 
49
// Date         Version Description
50
//------------------------------------------------------------------------
51
// 090101       1.0     First version                           jb
52
 
53
/*$$GENERAL PARTS*/
54
/******************************************************************************/
55
/*                                                                            */
56
/*                        G E N E R A L   P A R T S                           */
57
/*                                                                            */
58
/******************************************************************************/
59
 
60
 
61
/******************************************************************************/
62
/*                              T Y P E D E F S                               */
63
/******************************************************************************/
64
 
65
typedef unsigned int        uint;
66
 
67
/******************************************************************************/
68
/*                              M A C R O S                                   */
69
/******************************************************************************/
70
 
71
/* Max and min functions */
72
 
73
#define MIN(a,b) (((a)<(b))?(a):(b))
74
#define MAX(a,b) (((a)>(b))?(a):(b))
75
 
76
/* the nuldelimiter of a string */
77
 
78
#define NUL3          '\n'
79
 
80
#define OK              1
81
#define NOK             0
82
 
83
/* nullpointer is defined if not already done */
84
 
85
#ifndef NULL
86
 #define NULL          (void *)0
87
#endif
88
 
89
/* define min and max for all types */
90
 
91
#define INT8_MAX      0x7F
92
#define UINT8_MAX     0xFF
93
#define INT16_MAX     0x7FFF
94
#define UINT16_MAX    0xFFFF
95
#define INT32_MAX     0x7FFFFFFF
96
#define UINT32_MAX    0xFFFFFFFF
97
#define FALSE 0
98
#define TRUE  !FALSE
99
 
100
/******************************************************************************/
101
/*                 R E G I S T E R   A C C E S S   M A C R O S                */
102
/******************************************************************************/
103
 
104
#define REG8(add)  *((volatile unsigned char *)  (add))
105
#define REG16(add) *((volatile unsigned short *) (add))
106
#define REG32(add) *((volatile unsigned long *)  (add))
107
 
108
 
109
/******************************************************************************/
110
/*                            G C C   C O M P I L E R                         */
111
/******************************************************************************/
112
 
113
#if defined (__GNUC__)
114
 
115
  typedef unsigned char     bool;
116
 
117
  typedef signed char       int8;
118
  typedef signed short      int16;
119
  typedef signed long       int32;
120
 
121
  typedef unsigned char     uint8;
122
  typedef unsigned short    uint16;
123
  typedef unsigned long     uint32;
124
 
125
  typedef unsigned char     char8;
126
  typedef unsigned short    char16;
127
 
128
 
129
 #else
130
 
131
  #error Undefined compiler used !
132
 
133
#endif
134
 
135
#endif
136
 

powered by: WebSVN 2.1.0

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