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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ARM9_STR91X_IAR/] [Library/] [source/] [91x_lib.c] - Blame information for rev 577

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 577 jeremybenn
/******************** (C) COPYRIGHT 2006 STMicroelectronics ********************
2
* File Name          : 91x_lib.c
3
* Author             : MCD Application Team
4
* Date First Issued  : 05/18/2006 : Version 1.0
5
* Description        : This file provides all peripherals pointers
6
                     : initialization.
7
********************************************************************************
8
* History:
9
* 05/24/2006 : Version 1.1
10
* 05/18/2006 : Version 1.0
11
********************************************************************************
12
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH
13
* CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS
14
* A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT
15
* OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT
16
* OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION
17
* CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
18
*******************************************************************************/
19
#define EXT
20
 
21
/* Standard include ----------------------------------------------------------*/
22
#include "91x_map.h"
23
 
24
/* Include of other module interface headers ---------------------------------*/
25
/* Local includes ------------------------------------------------------------*/
26
/* Private typedef -----------------------------------------------------------*/
27
/* Private define ------------------------------------------------------------*/
28
/* Private macro -------------------------------------------------------------*/
29
/* Private variables ---------------------------------------------------------*/
30
/* Private function prototypes -----------------------------------------------*/
31
/* Interface functions -------------------------------------------------------*/
32
/* Private functions ---------------------------------------------------------*/
33
#ifdef DEBUG
34
 
35
/*******************************************************************************
36
* Function Name  : debug
37
* Description    : this function initialize peripherals pointers
38
* Input          : no one
39
* Output         : no one
40
* Return         : no one
41
*******************************************************************************/
42
void debug(void)
43
{
44
 
45
 
46
/************************* DMA *************************/
47
 
48
#ifdef _DMA
49
  DMA = (DMA_TypeDef *)DMA_BASE;
50
#endif /* _DMA */
51
 
52
/************************* DMA *************************/
53
 
54
 
55
#ifdef _DMA_Channel0
56
  DMA_Channel0= (DMA_Channel_TypeDef *)DMA_Channel0_BASE;
57
#endif /* _DMA_Channel0 */
58
 
59
#ifdef _DMA_Channel1
60
  DMA_Channel1=       (DMA_Channel_TypeDef *)DMA_Channel1_BASE;
61
#endif /* _DMA_Channel1 */
62
 
63
#ifdef _DMA_Channel2
64
  DMA_Channel2 =      (DMA_Channel_TypeDef *)DMA_Channel2_BASE;
65
#endif /* _DMA_Channel2 */
66
 
67
#ifdef _DMA_Channel3
68
  DMA_Channel3 =       (DMA_Channel_TypeDef *)DMA_Channel3_BASE;
69
#endif /* _DMA_Channel3 */
70
 
71
#ifdef _DMA_Channel4
72
 DMA_Channel4 =      (DMA_Channel_TypeDef *)DMA_Channel4_BASE;
73
#endif /* _DMA_Channel4 */
74
 
75
#ifdef _DMA_Channel5
76
 DMA_Channel5=       (DMA_Channel_TypeDef *)DMA_Channel5_BASE;
77
#endif /* _DMA_Channel5*/
78
 
79
 
80
#ifdef _DMA_Channel6
81
 DMA_Channel6 =      (DMA_Channel_TypeDef *)DMA_Channel6_BASE;
82
#endif /* _DMA_Channel6 */
83
 
84
#ifdef _DMA_Channel7
85
 DMA_Channel7 =      (DMA_Channel_TypeDef *)DMA_Channel7_BASE;
86
#endif /* _DMA_Channel7 */
87
 
88
 
89
 
90
 /************************* EMI *************************/
91
 
92
#ifdef _EMI_Bank0
93
  EMI_Bank0= (EMI_Bank_TypeDef *)EMI_Bank0_BASE;
94
#endif /* _EMI_Bank0 */
95
 
96
#ifdef _EMI_Bank1
97
  EMI_Bank1=       (EMI_Bank_TypeDef *)EMI_Bank1_BASE;
98
#endif /* _EMI_Bank1 */
99
 
100
#ifdef _EMI_Bank2
101
  EMI_Bank2 =      (EMI_Bank_TypeDef *)EMI_Bank2_BASE;
102
#endif /* _EMI_Bank2 */
103
 
104
#ifdef _EMI_Bank3
105
 EMI_Bank3 =      (EMI_Bank_TypeDef *)EMI_Bank3_BASE;
106
 #endif /* _EMI_Bank3 */
107
 
108
 
109
 
110
/************************* AHBAPB *************************/
111
 
112
#ifdef _AHBAPB0
113
  AHBAPB0 = (AHBAPB_TypeDef *)AHBAPB0_BASE;
114
#endif /* _AHBAPB0 */
115
 
116
#ifdef _AHBAPB1
117
  AHBAPB1 = (AHBAPB_TypeDef *)AHBAPB1_BASE;
118
#endif /*_AHBAPB1 */
119
 
120
 
121
 
122
/************************* FMI *************************/
123
 
124
#ifdef _FMI
125
  FMI = (FMI_TypeDef *)FMI_BASE;
126
#endif /* _FMI */
127
 
128
/************************* VIC *************************/
129
 
130
#ifdef _VIC0
131
  VIC0 = (VIC_TypeDef *)VIC0_BASE;
132
#endif /* _VIC0 */
133
 
134
#ifdef _VIC1
135
  VIC1 = (VIC_TypeDef *)VIC1_BASE;
136
#endif /* _VIC1 */
137
 
138
/************************* WIU *************************/
139
 
140
#ifdef _WIU
141
  WIU  = (WIU_TypeDef *)WIU_BASE;
142
#endif /* _WIU */
143
 
144
/************************* TIM *************************/
145
 
146
#ifdef _TIM0
147
  TIM0 = (TIM_TypeDef *)TIM0_BASE;
148
#endif /* _TIM0 */
149
 
150
#ifdef _TIM1
151
  TIM1 = (TIM_TypeDef *)TIM1_BASE;
152
#endif /* _TIM1 */
153
 
154
#ifdef _TIM2
155
  TIM2 = (TIM_TypeDef *)TIM2_BASE;
156
#endif /* _TIM2 */
157
 
158
#ifdef _TIM3
159
  TIM3 = (TIM_TypeDef *)TIM3_BASE;
160
#endif /* _TIM3 */
161
 
162
/************************* GPIO ************************/
163
 
164
#ifdef _GPIO0
165
  GPIO0 = (GPIO_TypeDef *)GPIO0_BASE;
166
#endif /* _GPIO0 */
167
 
168
#ifdef _GPIO1
169
  GPIO1 = (GPIO_TypeDef *)GPIO1_BASE;
170
#endif /* _GPIO1 */
171
 
172
#ifdef _GPIO2
173
  GPIO2 = (GPIO_TypeDef *)GPIO2_BASE;
174
#endif /* _GPIO2 */
175
 
176
#ifdef _GPIO3
177
  GPIO3 = (GPIO_TypeDef *)GPIO3_BASE;
178
#endif /* _GPIO3 */
179
 
180
#ifdef _GPIO4
181
  GPIO4 = (GPIO_TypeDef *)GPIO4_BASE;
182
#endif /* _GPIO4 */
183
 
184
#ifdef _GPIO5
185
  GPIO5 = (GPIO_TypeDef *)GPIO5_BASE;
186
#endif /* _GPIO5 */
187
 
188
#ifdef _GPIO6
189
  GPIO6 = (GPIO_TypeDef *)GPIO6_BASE;
190
#endif /* _GPIO6 */
191
 
192
#ifdef _GPIO7
193
  GPIO7 = (GPIO_TypeDef *)GPIO7_BASE;
194
#endif /* _GPIO7 */
195
 
196
#ifdef _GPIO8
197
  GPIO8 = (GPIO_TypeDef *)GPIO8_BASE;
198
#endif /* _GPIO8 */
199
 
200
#ifdef _GPIO9
201
  GPIO9 = (GPIO_TypeDef *)GPIO9_BASE;
202
#endif /* _GPIO9 */
203
 
204
/************************* RTC *************************/
205
 
206
#ifdef _RTC
207
  RTC = (RTC_TypeDef *)RTC_BASE;
208
#endif /* _RTC */
209
 
210
/************************* PRCCU ***********************/
211
 
212
#ifdef _SCU
213
  SCU = (SCU_TypeDef *)SCU_BASE;
214
#endif /* _PRCCU */
215
 
216
/************************** MC *************************/
217
 
218
#ifdef _MC
219
  MC = (MC_TypeDef *)MC_BASE;
220
#endif /* _MC */
221
 
222
/************************* UART ************************/
223
 
224
#ifdef _UART0
225
  UART0 = (UART_TypeDef *)UART0_BASE;
226
#endif /* _UART0 */
227
 
228
#ifdef _UART1
229
  UART1 = (UART_TypeDef *)UART1_BASE;
230
#endif /* _UART1 */
231
 
232
#ifdef _UART2
233
  UART2 = (UART_TypeDef *)UART2_BASE;
234
#endif /* _UART2 */
235
 
236
/************************* SSP *************************/
237
 
238
#ifdef _SSP0
239
  SSP0 = (SSP_TypeDef *)SSP0_BASE;
240
#endif /* _SSP0 */
241
 
242
#ifdef _SSP1
243
  SSP1 = (SSP_TypeDef *)SSP1_BASE;
244
#endif /* _SSP1 */
245
 
246
/************************* CAN *************************/
247
 
248
#ifdef _CAN
249
  CAN = (CAN_TypeDef *)CAN_BASE;
250
#endif /* _CAN */
251
 
252
/************************* ADC *************************/
253
 
254
#ifdef _ADC
255
  ADC = (ADC_TypeDef *)ADC_BASE;
256
#endif /* _ADC */
257
 
258
/************************* WDG *************************/
259
 
260
#ifdef _WDG
261
  WDG = (WDG_TypeDef *)WDG_BASE;
262
#endif /* _WDG */
263
 
264
/************************* I2C *************************/
265
 
266
#ifdef _I2C0
267
  I2C0 = (I2C_TypeDef *)I2C0_BASE;
268
#endif /* _I2C0 */
269
 
270
#ifdef _I2C1
271
  I2C1 = (I2C_TypeDef *)I2C1_BASE;
272
#endif /* _I2C1 */
273
/********************** ENET **************************/
274
#ifdef _ENET
275
  ENET_MAC = (ENET_MAC_TypeDef *)ENET_MAC_BASE;
276
  ENET_DMA = (ENET_DMA_TypeDef *)ENET_DMA_BASE;
277
#endif /* _ENET */
278
}
279
#endif  /* DEBUG */
280
 
281
/******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/

powered by: WebSVN 2.1.0

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