1 |
582 |
jeremybenn |
/******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
|
2 |
|
|
* File Name : stm32f10x_conf.h
|
3 |
|
|
* Author : MCD Application Team
|
4 |
|
|
* Version : V2.0.1
|
5 |
|
|
* Date : 06/13/2008
|
6 |
|
|
* Description : Library configuration file.
|
7 |
|
|
********************************************************************************
|
8 |
|
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
9 |
|
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
|
10 |
|
|
* AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
|
11 |
|
|
* INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
|
12 |
|
|
* CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
|
13 |
|
|
* INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
14 |
|
|
*******************************************************************************/
|
15 |
|
|
|
16 |
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
17 |
|
|
#ifndef __STM32F10x_CONF_H
|
18 |
|
|
#define __STM32F10x_CONF_H
|
19 |
|
|
|
20 |
|
|
/* Includes ------------------------------------------------------------------*/
|
21 |
|
|
#include "stm32f10x_type.h"
|
22 |
|
|
|
23 |
|
|
/* Exported types ------------------------------------------------------------*/
|
24 |
|
|
/* Exported constants --------------------------------------------------------*/
|
25 |
|
|
/* Uncomment the line below to compile the library in DEBUG mode, this will expanse
|
26 |
|
|
the "assert_param" macro in the firmware library code (see "Exported macro"
|
27 |
|
|
section below) */
|
28 |
|
|
/*#define DEBUG 1*/
|
29 |
|
|
|
30 |
|
|
/* Comment the line below to disable the specific peripheral inclusion */
|
31 |
|
|
/************************************* ADC ************************************/
|
32 |
|
|
//#define _ADC
|
33 |
|
|
//#define _ADC1
|
34 |
|
|
//#define _ADC2
|
35 |
|
|
//#define _ADC3
|
36 |
|
|
|
37 |
|
|
/************************************* BKP ************************************/
|
38 |
|
|
//#define _BKP
|
39 |
|
|
|
40 |
|
|
/************************************* CAN ************************************/
|
41 |
|
|
#define _CAN
|
42 |
|
|
|
43 |
|
|
/************************************* CRC ************************************/
|
44 |
|
|
//#define _CRC
|
45 |
|
|
|
46 |
|
|
/************************************* DAC ************************************/
|
47 |
|
|
//#define _DAC
|
48 |
|
|
|
49 |
|
|
/************************************* DBGMCU *********************************/
|
50 |
|
|
//#define _DBGMCU
|
51 |
|
|
|
52 |
|
|
/************************************* DMA ************************************/
|
53 |
|
|
//#define _DMA
|
54 |
|
|
//#define _DMA1_Channel1
|
55 |
|
|
//#define _DMA1_Channel2
|
56 |
|
|
//#define _DMA1_Channel3
|
57 |
|
|
//#define _DMA1_Channel4
|
58 |
|
|
//#define _DMA1_Channel5
|
59 |
|
|
//#define _DMA1_Channel6
|
60 |
|
|
//#define _DMA1_Channel7
|
61 |
|
|
//#define _DMA2_Channel1
|
62 |
|
|
//#define _DMA2_Channel2
|
63 |
|
|
//#define _DMA2_Channel3
|
64 |
|
|
//#define _DMA2_Channel4
|
65 |
|
|
//#define _DMA2_Channel5
|
66 |
|
|
|
67 |
|
|
/************************************* EXTI ***********************************/
|
68 |
|
|
//#define _EXTI
|
69 |
|
|
|
70 |
|
|
/************************************* FLASH and Option Bytes *****************/
|
71 |
|
|
#define _FLASH
|
72 |
|
|
/* Uncomment the line below to enable FLASH program/erase/protections functions,
|
73 |
|
|
otherwise only FLASH configuration (latency, prefetch, half cycle) functions
|
74 |
|
|
are enabled */
|
75 |
|
|
/* #define _FLASH_PROG */
|
76 |
|
|
|
77 |
|
|
/************************************* FSMC ***********************************/
|
78 |
|
|
//#define _FSMC
|
79 |
|
|
|
80 |
|
|
/************************************* GPIO ***********************************/
|
81 |
|
|
#define _GPIO
|
82 |
|
|
#define _GPIOA
|
83 |
|
|
#define _GPIOB
|
84 |
|
|
#define _GPIOC
|
85 |
|
|
#define _GPIOD
|
86 |
|
|
#define _GPIOE
|
87 |
|
|
//#define _GPIOF
|
88 |
|
|
//#define _GPIOG
|
89 |
|
|
#define _AFIO
|
90 |
|
|
|
91 |
|
|
/************************************* I2C ************************************/
|
92 |
|
|
#define _I2C
|
93 |
|
|
#define _I2C1
|
94 |
|
|
//#define _I2C2
|
95 |
|
|
|
96 |
|
|
/************************************* IWDG ***********************************/
|
97 |
|
|
//#define _IWDG
|
98 |
|
|
|
99 |
|
|
/************************************* NVIC ***********************************/
|
100 |
|
|
#define _NVIC
|
101 |
|
|
|
102 |
|
|
/************************************* PWR ************************************/
|
103 |
|
|
//#define _PWR
|
104 |
|
|
|
105 |
|
|
/************************************* RCC ************************************/
|
106 |
|
|
#define _RCC
|
107 |
|
|
|
108 |
|
|
/************************************* RTC ************************************/
|
109 |
|
|
//#define _RTC
|
110 |
|
|
|
111 |
|
|
/************************************* SDIO ***********************************/
|
112 |
|
|
//#define _SDIO
|
113 |
|
|
|
114 |
|
|
/************************************* SPI ************************************/
|
115 |
|
|
#define _SPI
|
116 |
|
|
#define _SPI1
|
117 |
|
|
#define _SPI2
|
118 |
|
|
//#define _SPI3
|
119 |
|
|
|
120 |
|
|
/************************************* SysTick ********************************/
|
121 |
|
|
#define _SysTick
|
122 |
|
|
|
123 |
|
|
/************************************* TIM ************************************/
|
124 |
|
|
//#define _TIM
|
125 |
|
|
//#define _TIM1
|
126 |
|
|
//#define _TIM2
|
127 |
|
|
//#define _TIM3
|
128 |
|
|
//#define _TIM4
|
129 |
|
|
//#define _TIM5
|
130 |
|
|
//#define _TIM6
|
131 |
|
|
//#define _TIM7
|
132 |
|
|
//#define _TIM8
|
133 |
|
|
|
134 |
|
|
/************************************* USART **********************************/
|
135 |
|
|
#define _USART
|
136 |
|
|
#define _USART1
|
137 |
|
|
#define _USART2
|
138 |
|
|
//#define _USART3
|
139 |
|
|
//#define _UART4
|
140 |
|
|
//#define _UART5
|
141 |
|
|
|
142 |
|
|
/************************************* WWDG ***********************************/
|
143 |
|
|
//#define _WWDG
|
144 |
|
|
|
145 |
|
|
/* In the following line adjust the value of External High Speed oscillator (HSE)
|
146 |
|
|
used in your application */
|
147 |
|
|
#define HSE_Value ((u32)8000000) /* Value of the External oscillator in Hz*/
|
148 |
|
|
|
149 |
|
|
/* Exported macro ------------------------------------------------------------*/
|
150 |
|
|
#ifdef DEBUG
|
151 |
|
|
/*******************************************************************************
|
152 |
|
|
* Macro Name : assert_param
|
153 |
|
|
* Description : The assert_param macro is used for function's parameters check.
|
154 |
|
|
* It is used only if the library is compiled in DEBUG mode.
|
155 |
|
|
* Input : - expr: If expr is false, it calls assert_failed function
|
156 |
|
|
* which reports the name of the source file and the source
|
157 |
|
|
* line number of the call that failed.
|
158 |
|
|
* If expr is true, it returns no value.
|
159 |
|
|
* Return : None
|
160 |
|
|
*******************************************************************************/
|
161 |
|
|
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((u8 *)__FILE__, __LINE__))
|
162 |
|
|
/* Exported functions ------------------------------------------------------- */
|
163 |
|
|
void assert_failed(u8* file, u32 line);
|
164 |
|
|
#else
|
165 |
|
|
#define assert_param(expr) ((void)0)
|
166 |
|
|
#endif /* DEBUG */
|
167 |
|
|
|
168 |
|
|
#endif /* __STM32F10x_CONF_H */
|
169 |
|
|
|
170 |
|
|
/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/
|