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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_STM32F103_Keil/] [STM32F10xFWLib/] [inc/] [stm32f10x_map.h] - Blame information for rev 582

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 582 jeremybenn
/******************** (C) COPYRIGHT 2007 STMicroelectronics ********************
2
* File Name          : stm32f10x_map.h
3
* Author             : MCD Application Team
4
* Date First Issued  : 09/29/2006
5
* Description        : This file contains all the peripheral register's definitions
6
*                      and memory mapping.
7
********************************************************************************
8
* History:
9
* 04/02/2007: V0.2
10
* 02/05/2007: V0.1
11
* 09/29/2006: V0.01
12
********************************************************************************
13
* THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
14
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
15
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
16
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
17
* CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
18
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
19
*******************************************************************************/
20
 
21
/* Define to prevent recursive inclusion -------------------------------------*/
22
#ifndef __STM32F10x_MAP_H
23
#define __STM32F10x_MAP_H
24
 
25
#ifndef EXT
26
  #define EXT extern
27
#endif /* EXT */
28
 
29
/* Includes ------------------------------------------------------------------*/
30
#include "stm32f10x_conf.h"
31
#include "stm32f10x_type.h"
32
#include "cortexm3_macro.h"
33
 
34
/* Exported types ------------------------------------------------------------*/
35
/******************************************************************************/
36
/*                          IP registers structures                           */
37
/******************************************************************************/
38
 
39
/*------------------------ Analog to Digital Converter -----------------------*/
40
typedef struct
41
{
42
  vu32 SR;
43
  vu32 CR1;
44
  vu32 CR2;
45
  vu32 SMPR1;
46
  vu32 SMPR2;
47
  vu32 JOFR1;
48
  vu32 JOFR2;
49
  vu32 JOFR3;
50
  vu32 JOFR4;
51
  vu32 HTR;
52
  vu32 LTR;
53
  vu32 SQR1;
54
  vu32 SQR2;
55
  vu32 SQR3;
56
  vu32 JSQR;
57
  vu32 JDR1;
58
  vu32 JDR2;
59
  vu32 JDR3;
60
  vu32 JDR4;
61
  vu32 DR;
62
} ADC_TypeDef;
63
 
64
/*------------------------ Backup Registers ----------------------------------*/
65
typedef struct
66
{
67
  u32 RESERVED0;
68
  vu16 DR1;
69
  u16  RESERVED1;
70
  vu16 DR2;
71
  u16  RESERVED2;
72
  vu16 DR3;
73
  u16  RESERVED3;
74
  vu16 DR4;
75
  u16  RESERVED4;
76
  vu16 DR5;
77
  u16  RESERVED5;
78
  vu16 DR6;
79
  u16  RESERVED6;
80
  vu16 DR7;
81
  u16  RESERVED7;
82
  vu16 DR8;
83
  u16  RESERVED8;
84
  vu16 DR9;
85
  u16  RESERVED9;
86
  vu16 DR10;
87
  u16  RESERVED10;
88
  vu16 RTCCR;
89
  u16  RESERVED11;
90
  vu16 CR;
91
  u16  RESERVED12;
92
  vu16 CSR;
93
  u16  RESERVED13;
94
} BKP_TypeDef;
95
 
96
/*------------------------ Controller Area Network ---------------------------*/
97
typedef struct
98
{
99
  vu32 TIR;
100
  vu32 TDTR;
101
  vu32 TDLR;
102
  vu32 TDHR;
103
} CAN_TxMailBox_TypeDef;
104
 
105
typedef struct
106
{
107
  vu32 RIR;
108
  vu32 RDTR;
109
  vu32 RDLR;
110
  vu32 RDHR;
111
} CAN_FIFOMailBox_TypeDef;
112
 
113
typedef struct
114
{
115
  vu32 FR0;
116
  vu32 FR1;
117
} CAN_FilterRegister_TypeDef;
118
 
119
typedef struct
120
{
121
  vu32 MCR;
122
  vu32 MSR;
123
  vu32 TSR;
124
  vu32 RF0R;
125
  vu32 RF1R;
126
  vu32 IER;
127
  vu32 ESR;
128
  vu32 BTR;
129
  u32 RESERVED0[88];
130
  CAN_TxMailBox_TypeDef sTxMailBox[3];
131
  CAN_FIFOMailBox_TypeDef sFIFOMailBox[2];
132
  u32 RESERVED1[12];
133
  vu32 FMR;
134
  vu32 FM0R;
135
  u32 RESERVED2[1];
136
  vu32 FS0R;
137
  u32 RESERVED3[1];
138
  vu32 FFA0R;
139
  u32 RESERVED4[1];
140
  vu32 FA0R;
141
  u32 RESERVED5[8];
142
  CAN_FilterRegister_TypeDef sFilterRegister[14];
143
} CAN_TypeDef;
144
 
145
/*------------------------ DMA Controller ------------------------------------*/
146
typedef struct
147
{
148
  vu32 CCR;
149
  vu32 CNDTR;
150
  vu32 CPAR;
151
  vu32 CMAR;
152
} DMA_Channel_TypeDef;
153
 
154
typedef struct
155
{
156
  vu32 ISR;
157
  vu32 IFCR;
158
} DMA_TypeDef;
159
 
160
/*------------------------ External Interrupt/Event Controller ---------------*/
161
typedef struct
162
{
163
  vu32 IMR;
164
  vu32 EMR;
165
  vu32 RTSR;
166
  vu32 FTSR;
167
  vu32 SWIER;
168
  vu32 PR;
169
} EXTI_TypeDef;
170
 
171
/*------------------------ FLASH and Option Bytes Registers ------------------*/
172
typedef struct
173
{
174
  vu32 ACR;
175
  vu32 KEYR;
176
  vu32 OPTKEYR;
177
  vu32 SR;
178
  vu32 CR;
179
  vu32 AR;
180
  vu32 RESERVED;
181
  vu32 OBR;
182
  vu32 WRPR;
183
} FLASH_TypeDef;
184
 
185
typedef struct
186
{
187
  vu16 RDP;
188
  vu16 USER;
189
  vu16 Data0;
190
  vu16 Data1;
191
  vu16 WRP0;
192
  vu16 WRP1;
193
  vu16 WRP2;
194
  vu16 WRP3;
195
} OB_TypeDef;
196
 
197
/*------------------------ General Purpose and Alternate Function IO ---------*/
198
typedef struct
199
{
200
  vu32 CRL;
201
  vu32 CRH;
202
  vu32 IDR;
203
  vu32 ODR;
204
  vu32 BSRR;
205
  vu32 BRR;
206
  vu32 LCKR;
207
} GPIO_TypeDef;
208
 
209
typedef struct
210
{
211
  vu32 EVCR;
212
  vu32 MAPR;
213
  vu32 EXTICR[4];
214
} AFIO_TypeDef;
215
 
216
/*------------------------ Inter-integrated Circuit Interface ----------------*/
217
typedef struct
218
{
219
  vu16 CR1;
220
  u16 RESERVED0;
221
  vu16 CR2;
222
  u16 RESERVED1;
223
  vu16 OAR1;
224
  u16 RESERVED2;
225
  vu16 OAR2;
226
  u16 RESERVED3;
227
  vu16 DR;
228
  u16 RESERVED4;
229
  vu16 SR1;
230
  u16 RESERVED5;
231
  vu16 SR2;
232
  u16 RESERVED6;
233
  vu16 CCR;
234
  u16 RESERVED7;
235
  vu16 TRISE;
236
  u16 RESERVED8;
237
} I2C_TypeDef;
238
 
239
/*------------------------ Independent WATCHDOG ------------------------------*/
240
typedef struct
241
{
242
  vu32 KR;
243
  vu32 PR;
244
  vu32 RLR;
245
  vu32 SR;
246
} IWDG_TypeDef;
247
 
248
/*------------------------ Nested Vectored Interrupt Controller --------------*/
249
typedef struct
250
{
251
  vu32 Enable[2];
252
  u32 RESERVED0[30];
253
  vu32 Disable[2];
254
  u32 RSERVED1[30];
255
  vu32 Set[2];
256
  u32 RESERVED2[30];
257
  vu32 Clear[2];
258
  u32 RESERVED3[30];
259
  vu32 Active[2];
260
  u32 RESERVED4[62];
261
  vu32 Priority[11];
262
} NVIC_TypeDef;
263
 
264
typedef struct
265
{
266
  vu32 CPUID;
267
  vu32 IRQControlState;
268
  vu32 ExceptionTableOffset;
269
  vu32 AIRC;
270
  vu32 SysCtrl;
271
  vu32 ConfigCtrl;
272
  vu32 SystemPriority[3];
273
  vu32 SysHandlerCtrl;
274
  vu32 ConfigFaultStatus;
275
  vu32 HardFaultStatus;
276
  vu32 DebugFaultStatus;
277
  vu32 MemoryManageFaultAddr;
278
  vu32 BusFaultAddr;
279
} SCB_TypeDef;
280
 
281
/*------------------------ Power Controller ----------------------------------*/
282
typedef struct
283
{
284
  vu32 CR;
285
  vu32 CSR;
286
} PWR_TypeDef;
287
 
288
/*------------------------ Reset and Clock Controller ------------------------*/
289
typedef struct
290
{
291
  vu32 CR;
292
  vu32 CFGR;
293
  vu32 CIR;
294
  vu32 APB2RSTR;
295
  vu32 APB1RSTR;
296
  vu32 AHBENR;
297
  vu32 APB2ENR;
298
  vu32 APB1ENR;
299
  vu32 BDCR;
300
  vu32 CSR;
301
} RCC_TypeDef;
302
 
303
/*------------------------ Real-Time Clock -----------------------------------*/
304
typedef struct
305
{
306
  vu16 CRH;
307
  u16 RESERVED0;
308
  vu16 CRL;
309
  u16 RESERVED1;
310
  vu16 PRLH;
311
  u16 RESERVED2;
312
  vu16 PRLL;
313
  u16 RESERVED3;
314
  vu16 DIVH;
315
  u16 RESERVED4;
316
  vu16 DIVL;
317
  u16 RESERVED5;
318
  vu16 CNTH;
319
  u16 RESERVED6;
320
  vu16 CNTL;
321
  u16 RESERVED7;
322
  vu16 ALRH;
323
  u16 RESERVED8;
324
  vu16 ALRL;
325
  u16 RESERVED9;
326
} RTC_TypeDef;
327
 
328
/*------------------------ Serial Peripheral Interface -----------------------*/
329
typedef struct
330
{
331
  vu16 CR1;
332
  u16 RESERVED0;
333
  vu16 CR2;
334
  u16 RESERVED1;
335
  vu16 SR;
336
  u16  RESERVED2;
337
  vu16 DR;
338
  u16  RESERVED3;
339
  vu16 CRCPR;
340
  u16 RESERVED4;
341
  vu16 RXCRCR;
342
  u16  RESERVED5;
343
  vu16 TXCRCR;
344
  u16  RESERVED6;
345
} SPI_TypeDef;
346
 
347
/*------------------------ SystemTick ----------------------------------------*/
348
typedef struct
349
{
350
  vu32 CTRL;
351
  vu32 LOAD;
352
  vu32 VAL;
353
  vuc32 CALIB;
354
} SysTick_TypeDef;
355
 
356
/*------------------------ Advanced Control Timer ----------------------------*/
357
typedef struct
358
{
359
  vu16 CR1;
360
  u16 RESERVED0;
361
  vu16 CR2;
362
  u16 RESERVED1;
363
  vu16 SMCR;
364
  u16 RESERVED2;
365
  vu16 DIER;
366
  u16 RESERVED3;
367
  vu16 SR;
368
  u16 RESERVED4;
369
  vu16 EGR;
370
  u16 RESERVED5;
371
  vu16 CCMR1;
372
  u16 RESERVED6;
373
  vu16 CCMR2;
374
  u16 RESERVED7;
375
  vu16 CCER;
376
  u16 RESERVED8;
377
  vu16 CNT;
378
  u16 RESERVED9;
379
  vu16 PSC;
380
  u16 RESERVED10;
381
  vu16 ARR;
382
  u16 RESERVED11;
383
  vu16 RCR;
384
  u16 RESERVED12;
385
  vu16 CCR1;
386
  u16 RESERVED13;
387
  vu16 CCR2;
388
  u16 RESERVED14;
389
  vu16 CCR3;
390
  u16 RESERVED15;
391
  vu16 CCR4;
392
  u16 RESERVED16;
393
  vu16 BDTR;
394
  u16 RESERVED17;
395
  vu16 DCR;
396
  u16 RESERVED18;
397
  vu16 DMAR;
398
  u16 RESERVED19;
399
} TIM1_TypeDef;
400
 
401
/*------------------------ General Purpose Timer -----------------------------*/
402
typedef struct
403
{
404
  vu16 CR1;
405
  u16 RESERVED0;
406
  vu16 CR2;
407
  u16 RESERVED1;
408
  vu16 SMCR;
409
  u16 RESERVED2;
410
  vu16 DIER;
411
  u16 RESERVED3;
412
  vu16 SR;
413
  u16 RESERVED4;
414
  vu16 EGR;
415
  u16 RESERVED5;
416
  vu16 CCMR1;
417
  u16 RESERVED6;
418
  vu16 CCMR2;
419
  u16 RESERVED7;
420
  vu16 CCER;
421
  u16 RESERVED8;
422
  vu16 CNT;
423
  u16 RESERVED9;
424
  vu16 PSC;
425
  u16 RESERVED10;
426
  vu16 ARR;
427
  u16 RESERVED11[3];
428
  vu16 CCR1;
429
  u16 RESERVED12;
430
  vu16 CCR2;
431
  u16 RESERVED13;
432
  vu16 CCR3;
433
  u16 RESERVED14;
434
  vu16 CCR4;
435
  u16 RESERVED15[3];
436
  vu16 DCR;
437
  u16 RESERVED16;
438
  vu16 DMAR;
439
  u16 RESERVED17;
440
} TIM_TypeDef;
441
 
442
/*----------------- Universal Synchronous Asynchronous Receiver Transmitter --*/
443
typedef struct
444
{
445
  vu16 SR;
446
  u16 RESERVED0;
447
  vu16 DR;
448
  u16 RESERVED1;
449
  vu16 BRR;
450
  u16 RESERVED2;
451
  vu16 CR1;
452
  u16 RESERVED3;
453
  vu16 CR2;
454
  u16 RESERVED4;
455
  vu16 CR3;
456
  u16 RESERVED5;
457
  vu16 GTPR;
458
  u16 RESERVED6;
459
} USART_TypeDef;
460
 
461
/*------------------------ Window WATCHDOG -----------------------------------*/
462
typedef struct
463
{
464
  vu32 CR;
465
  vu32 CFR;
466
  vu32 SR;
467
} WWDG_TypeDef;
468
 
469
/******************************************************************************/
470
/*                       Peripheral memory map                                */
471
/******************************************************************************/
472
/* Peripheral and SRAM base address in the alias region */
473
#define PERIPH_BB_BASE        ((u32)0x42000000)
474
#define SRAM_BB_BASE          ((u32)0x22000000)
475
 
476
/* Peripheral and SRAM base address in the bit-band region */
477
#define SRAM_BASE             ((u32)0x20000000)
478
#define PERIPH_BASE           ((u32)0x40000000)
479
 
480
/* Flash refisters base address */
481
#define FLASH_BASE            ((u32)0x40022000)
482
/* Flash Option Bytes base address */
483
#define OB_BASE               ((u32)0x1FFFF800)
484
 
485
/* Peripheral memory map */
486
#define APB1PERIPH_BASE       PERIPH_BASE
487
#define APB2PERIPH_BASE       (PERIPH_BASE + 0x10000)
488
#define AHBPERIPH_BASE        (PERIPH_BASE + 0x20000)
489
 
490
#define TIM2_BASE             (APB1PERIPH_BASE + 0x0000)
491
#define TIM3_BASE             (APB1PERIPH_BASE + 0x0400)
492
#define TIM4_BASE             (APB1PERIPH_BASE + 0x0800)
493
#define RTC_BASE              (APB1PERIPH_BASE + 0x2800)
494
#define WWDG_BASE             (APB1PERIPH_BASE + 0x2C00)
495
#define IWDG_BASE             (APB1PERIPH_BASE + 0x3000)
496
#define SPI2_BASE             (APB1PERIPH_BASE + 0x3800)
497
#define USART2_BASE           (APB1PERIPH_BASE + 0x4400)
498
#define USART3_BASE           (APB1PERIPH_BASE + 0x4800)
499
#define I2C1_BASE             (APB1PERIPH_BASE + 0x5400)
500
#define I2C2_BASE             (APB1PERIPH_BASE + 0x5800)
501
#define CAN_BASE              (APB1PERIPH_BASE + 0x6400)
502
#define BKP_BASE              (APB1PERIPH_BASE + 0x6C00)
503
#define PWR_BASE              (APB1PERIPH_BASE + 0x7000)
504
 
505
#define AFIO_BASE             (APB2PERIPH_BASE + 0x0000)
506
#define EXTI_BASE             (APB2PERIPH_BASE + 0x0400)
507
#define GPIOA_BASE            (APB2PERIPH_BASE + 0x0800)
508
#define GPIOB_BASE            (APB2PERIPH_BASE + 0x0C00)
509
#define GPIOC_BASE            (APB2PERIPH_BASE + 0x1000)
510
#define GPIOD_BASE            (APB2PERIPH_BASE + 0x1400)
511
#define GPIOE_BASE            (APB2PERIPH_BASE + 0x1800)
512
#define ADC1_BASE             (APB2PERIPH_BASE + 0x2400)
513
#define ADC2_BASE             (APB2PERIPH_BASE + 0x2800)
514
#define TIM1_BASE             (APB2PERIPH_BASE + 0x2C00)
515
#define SPI1_BASE             (APB2PERIPH_BASE + 0x3000)
516
#define USART1_BASE           (APB2PERIPH_BASE + 0x3800)
517
 
518
#define DMA_BASE              (AHBPERIPH_BASE + 0x0000)
519
#define DMA_Channel1_BASE     (AHBPERIPH_BASE + 0x0008)
520
#define DMA_Channel2_BASE     (AHBPERIPH_BASE + 0x001C)
521
#define DMA_Channel3_BASE     (AHBPERIPH_BASE + 0x0030)
522
#define DMA_Channel4_BASE     (AHBPERIPH_BASE + 0x0044)
523
#define DMA_Channel5_BASE     (AHBPERIPH_BASE + 0x0058)
524
#define DMA_Channel6_BASE     (AHBPERIPH_BASE + 0x006C)
525
#define DMA_Channel7_BASE     (AHBPERIPH_BASE + 0x0080)
526
#define RCC_BASE              (AHBPERIPH_BASE + 0x1000)
527
 
528
/* System Control Space memory map */
529
#define SCS_BASE              ((u32)0xE000E000)
530
 
531
#define SysTick_BASE          (SCS_BASE + 0x0010)
532
#define NVIC_BASE             (SCS_BASE + 0x0100)
533
#define SCB_BASE              (SCS_BASE + 0x0D00)
534
 
535
 
536
/******************************************************************************/
537
/*                            IPs' declaration                                */
538
/******************************************************************************/
539
 
540
/*------------------- Non Debug Mode -----------------------------------------*/
541
#ifndef DEBUG
542
#ifdef _TIM2
543
  #define TIM2                  ((TIM_TypeDef *) TIM2_BASE)
544
#endif /*_TIM2 */
545
 
546
#ifdef _TIM3
547
  #define TIM3                  ((TIM_TypeDef *) TIM3_BASE)
548
#endif /*_TIM3 */
549
 
550
#ifdef _TIM4
551
  #define TIM4                  ((TIM_TypeDef *) TIM4_BASE)
552
#endif /*_TIM4 */
553
 
554
#ifdef _RTC
555
  #define RTC                   ((RTC_TypeDef *) RTC_BASE)
556
#endif /*_RTC */
557
 
558
#ifdef _WWDG
559
  #define WWDG                  ((WWDG_TypeDef *) WWDG_BASE)
560
#endif /*_WWDG */
561
 
562
#ifdef _IWDG
563
  #define IWDG                  ((IWDG_TypeDef *) IWDG_BASE)
564
#endif /*_IWDG */
565
 
566
#ifdef _SPI2
567
  #define SPI2                  ((SPI_TypeDef *) SPI2_BASE)
568
#endif /*_SPI2 */
569
 
570
#ifdef _USART2
571
  #define USART2                ((USART_TypeDef *) USART2_BASE)
572
#endif /*_USART2 */
573
 
574
#ifdef _USART3
575
  #define USART3                ((USART_TypeDef *) USART3_BASE)
576
#endif /*_USART3 */
577
 
578
#ifdef _I2C1
579
  #define I2C1                  ((I2C_TypeDef *) I2C1_BASE)
580
#endif /*_I2C1 */
581
 
582
#ifdef _I2C2
583
  #define I2C2                  ((I2C_TypeDef *) I2C2_BASE)
584
#endif /*_I2C2 */
585
 
586
#ifdef _CAN
587
  #define CAN                   ((CAN_TypeDef *) CAN_BASE)
588
#endif /*_CAN */
589
 
590
#ifdef _BKP
591
  #define BKP                   ((BKP_TypeDef *) BKP_BASE)
592
#endif /*_BKP */
593
 
594
#ifdef _PWR
595
  #define PWR                   ((PWR_TypeDef *) PWR_BASE)
596
#endif /*_PWR */
597
 
598
#ifdef _AFIO
599
  #define AFIO                  ((AFIO_TypeDef *) AFIO_BASE)
600
#endif /*_AFIO */
601
 
602
#ifdef _EXTI
603
  #define EXTI                  ((EXTI_TypeDef *) EXTI_BASE)
604
#endif /*_EXTI */
605
 
606
#ifdef _GPIOA
607
  #define GPIOA                 ((GPIO_TypeDef *) GPIOA_BASE)
608
#endif /*_GPIOA */
609
 
610
#ifdef _GPIOB
611
  #define GPIOB                 ((GPIO_TypeDef *) GPIOB_BASE)
612
#endif /*_GPIOB */
613
 
614
#ifdef _GPIOC
615
  #define GPIOC                 ((GPIO_TypeDef *) GPIOC_BASE)
616
#endif /*_GPIOC */
617
 
618
#ifdef _GPIOD
619
  #define GPIOD                 ((GPIO_TypeDef *) GPIOD_BASE)
620
#endif /*_GPIOD */
621
 
622
#ifdef _GPIOE
623
  #define GPIOE                 ((GPIO_TypeDef *) GPIOE_BASE)
624
#endif /*_GPIOE */
625
 
626
#ifdef _ADC1
627
  #define ADC1                  ((ADC_TypeDef *) ADC1_BASE)
628
#endif /*_ADC1 */
629
 
630
#ifdef _ADC2
631
  #define ADC2                  ((ADC_TypeDef *) ADC2_BASE)
632
#endif /*_ADC2 */
633
 
634
#ifdef _TIM1
635
  #define TIM1                  ((TIM1_TypeDef *) TIM1_BASE)
636
#endif /*_TIM1 */
637
 
638
#ifdef _SPI1
639
  #define SPI1                  ((SPI_TypeDef *) SPI1_BASE)
640
#endif /*_SPI1 */
641
 
642
#ifdef _USART1
643
  #define USART1                ((USART_TypeDef *) USART1_BASE)
644
#endif /*_USART1 */
645
 
646
#ifdef _DMA
647
  #define DMA                   ((DMA_TypeDef *) DMA_BASE)
648
#endif /*_DMA */
649
 
650
#ifdef _DMA_Channel1
651
  #define DMA_Channel1          ((DMA_Channel_TypeDef *) DMA_Channel1_BASE)
652
#endif /*_DMA_Channel1 */
653
 
654
#ifdef _DMA_Channel2
655
  #define DMA_Channel2          ((DMA_Channel_TypeDef *) DMA_Channel2_BASE)
656
#endif /*_DMA_Channel2 */
657
 
658
#ifdef _DMA_Channel3
659
  #define DMA_Channel3          ((DMA_Channel_TypeDef *) DMA_Channel3_BASE)
660
#endif /*_DMA_Channel3 */
661
 
662
#ifdef _DMA_Channel4
663
  #define DMA_Channel4          ((DMA_Channel_TypeDef *) DMA_Channel4_BASE)
664
#endif /*_DMA_Channel4 */
665
 
666
#ifdef _DMA_Channel5
667
  #define DMA_Channel5          ((DMA_Channel_TypeDef *) DMA_Channel5_BASE)
668
#endif /*_DMA_Channel5 */
669
 
670
#ifdef _DMA_Channel6
671
  #define DMA_Channel6          ((DMA_Channel_TypeDef *) DMA_Channel6_BASE)
672
#endif /*_DMA_Channel6 */
673
 
674
#ifdef _DMA_Channel7
675
  #define DMA_Channel7          ((DMA_Channel_TypeDef *) DMA_Channel7_BASE)
676
#endif /*_DMA_Channel7 */
677
 
678
#ifdef _FLASH
679
  #define FLASH                 ((FLASH_TypeDef *) FLASH_BASE)
680
  #define OB                    ((OB_TypeDef *) OB_BASE) 
681
#endif /*_FLASH */
682
 
683
#ifdef _RCC
684
  #define RCC                   ((RCC_TypeDef *) RCC_BASE)
685
#endif /*_RCC */
686
 
687
#ifdef _SysTick
688
  #define SysTick               ((SysTick_TypeDef *) SysTick_BASE)
689
#endif /*_SysTick */
690
 
691
#ifdef _NVIC
692
  #define NVIC                  ((NVIC_TypeDef *) NVIC_BASE)
693
#endif /*_NVIC */
694
 
695
#ifdef _SCB
696
  #define SCB                   ((SCB_TypeDef *) SCB_BASE)
697
#endif /*_SCB */
698
/*----------------------  Debug Mode -----------------------------------------*/
699
#else   /* DEBUG */
700
#ifdef _TIM2
701
  EXT TIM_TypeDef             *TIM2;
702
#endif /*_TIM2 */
703
 
704
#ifdef _TIM3
705
  EXT TIM_TypeDef             *TIM3;
706
#endif /*_TIM3 */
707
 
708
#ifdef _TIM4
709
  EXT TIM_TypeDef             *TIM4;
710
#endif /*_TIM4 */
711
 
712
#ifdef _RTC
713
  EXT RTC_TypeDef             *RTC;
714
#endif /*_RTC */
715
 
716
#ifdef _WWDG
717
  EXT WWDG_TypeDef            *WWDG;
718
#endif /*_WWDG */
719
 
720
#ifdef _IWDG
721
  EXT IWDG_TypeDef            *IWDG;
722
#endif /*_IWDG */
723
 
724
#ifdef _SPI2
725
  EXT SPI_TypeDef             *SPI2;
726
#endif /*_SPI2 */
727
 
728
#ifdef _USART2
729
  EXT USART_TypeDef           *USART2;
730
#endif /*_USART2 */
731
 
732
#ifdef _USART3
733
  EXT USART_TypeDef           *USART3;
734
#endif /*_USART3 */
735
 
736
#ifdef _I2C1
737
  EXT I2C_TypeDef             *I2C1;
738
#endif /*_I2C1 */
739
 
740
#ifdef _I2C2
741
  EXT I2C_TypeDef             *I2C2;
742
#endif /*_I2C2 */
743
 
744
#ifdef _CAN
745
  EXT CAN_TypeDef             *CAN;
746
#endif /*_CAN */
747
 
748
#ifdef _BKP
749
  EXT BKP_TypeDef             *BKP;
750
#endif /*_BKP */
751
 
752
#ifdef _PWR
753
  EXT PWR_TypeDef             *PWR;
754
#endif /*_PWR */
755
 
756
#ifdef _AFIO
757
  EXT AFIO_TypeDef            *AFIO;
758
#endif /*_AFIO */
759
 
760
#ifdef _EXTI
761
  EXT EXTI_TypeDef            *EXTI;
762
#endif /*_EXTI */
763
 
764
#ifdef _GPIOA
765
  EXT GPIO_TypeDef            *GPIOA;
766
#endif /*_GPIOA */
767
 
768
#ifdef _GPIOB
769
  EXT GPIO_TypeDef            *GPIOB;
770
#endif /*_GPIOB */
771
 
772
#ifdef _GPIOC
773
  EXT GPIO_TypeDef            *GPIOC;
774
#endif /*_GPIOC */
775
 
776
#ifdef _GPIOD
777
  EXT GPIO_TypeDef            *GPIOD;
778
#endif /*_GPIOD */
779
 
780
#ifdef _GPIOE
781
  EXT GPIO_TypeDef            *GPIOE;
782
#endif /*_GPIOE */
783
 
784
#ifdef _ADC1
785
  EXT ADC_TypeDef             *ADC1;
786
#endif /*_ADC1 */
787
 
788
#ifdef _ADC2
789
  EXT ADC_TypeDef             *ADC2;
790
#endif /*_ADC2 */
791
 
792
#ifdef _TIM1
793
  EXT TIM1_TypeDef            *TIM1;
794
#endif /*_TIM1 */
795
 
796
#ifdef _SPI1
797
  EXT SPI_TypeDef             *SPI1;
798
#endif /*_SPI1 */
799
 
800
#ifdef _USART1
801
  EXT USART_TypeDef           *USART1;
802
#endif /*_USART1 */
803
 
804
#ifdef _DMA
805
  EXT DMA_TypeDef             *DMA;
806
#endif /*_DMA */
807
 
808
#ifdef _DMA_Channel1
809
  EXT DMA_Channel_TypeDef     *DMA_Channel1;
810
#endif /*_DMA_Channel1 */
811
 
812
#ifdef _DMA_Channel2
813
  EXT DMA_Channel_TypeDef     *DMA_Channel2;
814
#endif /*_DMA_Channel2 */
815
 
816
#ifdef _DMA_Channel3
817
  EXT DMA_Channel_TypeDef     *DMA_Channel3;
818
#endif /*_DMA_Channel3 */
819
 
820
#ifdef _DMA_Channel4
821
  EXT DMA_Channel_TypeDef     *DMA_Channel4;
822
#endif /*_DMA_Channel4 */
823
 
824
#ifdef _DMA_Channel5
825
  EXT DMA_Channel_TypeDef     *DMA_Channel5;
826
#endif /*_DMA_Channel5 */
827
 
828
#ifdef _DMA_Channel6
829
  EXT DMA_Channel_TypeDef     *DMA_Channel6;
830
#endif /*_DMA_Channel6 */
831
 
832
#ifdef _DMA_Channel7
833
  EXT DMA_Channel_TypeDef     *DMA_Channel7;
834
#endif /*_DMA_Channel7 */
835
 
836
#ifdef _FLASH
837
  EXT FLASH_TypeDef            *FLASH;
838
  EXT OB_TypeDef               *OB;
839
#endif /*_FLASH */
840
 
841
#ifdef _RCC
842
  EXT RCC_TypeDef             *RCC;
843
#endif /*_RCC */
844
 
845
#ifdef _SysTick
846
  EXT SysTick_TypeDef         *SysTick;
847
#endif /*_SysTick */
848
 
849
#ifdef _NVIC
850
  EXT NVIC_TypeDef            *NVIC;
851
#endif /*_NVIC */
852
 
853
#ifdef _SCB
854
  EXT SCB_TypeDef             *SCB;
855
#endif /*_SCB */
856
 
857
#endif  /* DEBUG */
858
 
859
/* Exported constants --------------------------------------------------------*/
860
/* Exported macro ------------------------------------------------------------*/
861
/* Exported functions ------------------------------------------------------- */
862
 
863
#endif /* __STM32F10x_MAP_H */
864
 
865
/******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/

powered by: WebSVN 2.1.0

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