1 |
/** |
1 |
/** |
2 |
****************************************************************************** |
2 |
****************************************************************************** |
3 |
* @file Project/STM32F10x_StdPeriph_Template/stm32f10x_conf.h |
3 |
* @file Project/STM32F10x_StdPeriph_Template/stm32f10x_conf.h |
4 |
* @author MCD Application Team |
4 |
* @author MCD Application Team |
5 |
* @version V3.4.0 |
5 |
* @version V3.4.0 |
6 |
* @date 10/15/2010 |
6 |
* @date 10/15/2010 |
7 |
* @brief Library configuration file. |
7 |
* @brief Library configuration file. |
8 |
****************************************************************************** |
8 |
****************************************************************************** |
9 |
* @copy |
9 |
* @copy |
10 |
* |
10 |
* |
11 |
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
11 |
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
12 |
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE |
12 |
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE |
13 |
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY |
13 |
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY |
14 |
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING |
14 |
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING |
15 |
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE |
15 |
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE |
16 |
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
16 |
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
17 |
* |
17 |
* |
18 |
* <h2><center>© COPYRIGHT 2010 STMicroelectronics</center></h2> |
18 |
* <h2><center>© COPYRIGHT 2010 STMicroelectronics</center></h2> |
19 |
*/ |
19 |
*/ |
20 |
|
20 |
|
21 |
/* Define to prevent recursive inclusion -------------------------------------*/ |
21 |
/* Define to prevent recursive inclusion -------------------------------------*/ |
22 |
#ifndef __STM32F10x_CONF_H |
22 |
#ifndef __STM32F10x_CONF_H |
23 |
#define __STM32F10x_CONF_H |
23 |
#define __STM32F10x_CONF_H |
24 |
|
24 |
|
25 |
/* Includes ------------------------------------------------------------------*/ |
25 |
/* Includes ------------------------------------------------------------------*/ |
26 |
/* Uncomment the line below to enable peripheral header file inclusion */ |
26 |
/* Uncomment the line below to enable peripheral header file inclusion */ |
27 |
/* #include "stm32f10x_adc.h" */ |
27 |
/* #include "stm32f10x_adc.h" */ |
28 |
/* #include "stm32f10x_bkp.h" */ |
28 |
/* #include "stm32f10x_bkp.h" */ |
29 |
/* #include "stm32f10x_can.h" */ |
29 |
/* #include "stm32f10x_can.h" */ |
30 |
/* #include "stm32f10x_cec.h" */ |
30 |
/* #include "stm32f10x_cec.h" */ |
31 |
/* #include "stm32f10x_crc.h" */ |
31 |
/* #include "stm32f10x_crc.h" */ |
32 |
/* #include "stm32f10x_dac.h" */ |
32 |
/* #include "stm32f10x_dac.h" */ |
33 |
/* #include "stm32f10x_dbgmcu.h" */ |
33 |
/* #include "stm32f10x_dbgmcu.h" */ |
34 |
//!!#include "stm32f10x_dma.h" |
34 |
//!!#include "stm32f10x_dma.h" |
35 |
//!!#include "stm32f10x_exti.h" |
35 |
//!!#include "stm32f10x_exti.h" |
36 |
//!!#include "stm32f10x_flash.h" |
36 |
//!!#include "stm32f10x_flash.h" |
37 |
//!!#include "stm32f10x_fsmc.h" |
37 |
//!!#include "stm32f10x_fsmc.h" |
38 |
#include "stm32f10x_gpio.h" |
38 |
#include "stm32f10x_gpio.h" |
39 |
/*#include "stm32f10x_i2c.h"*/ |
39 |
/*#include "stm32f10x_i2c.h"*/ |
40 |
/* #include "stm32f10x_iwdg.h" */ |
40 |
/* #include "stm32f10x_iwdg.h" */ |
41 |
/* #include "stm32f10x_pwr.h" */ |
41 |
/* #include "stm32f10x_pwr.h" */ |
42 |
#include "stm32f10x_rcc.h" |
42 |
#include "stm32f10x_rcc.h" |
43 |
/* #include "stm32f10x_rtc.h" */ |
43 |
/* #include "stm32f10x_rtc.h" */ |
44 |
/* #include "stm32f10x_sdio.h" */ |
44 |
/* #include "stm32f10x_sdio.h" */ |
45 |
//!!#include "stm32f10x_spi.h" |
45 |
//!!#include "stm32f10x_spi.h" |
46 |
/* #include "stm32f10x_tim.h" */ |
46 |
/* #include "stm32f10x_tim.h" */ |
47 |
//!!#include "stm32f10x_usart.h" |
47 |
//!!#include "stm32f10x_usart.h" |
48 |
/* #include "stm32f10x_wwdg.h" */ |
48 |
/* #include "stm32f10x_wwdg.h" */ |
49 |
#include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */ |
49 |
#include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */ |
50 |
|
50 |
|
51 |
/* Exported types ------------------------------------------------------------*/ |
51 |
/* Exported types ------------------------------------------------------------*/ |
52 |
/* Exported constants --------------------------------------------------------*/ |
52 |
/* Exported constants --------------------------------------------------------*/ |
53 |
/* Uncomment the line below to expanse the "assert_param" macro in the |
53 |
/* Uncomment the line below to expanse the "assert_param" macro in the |
54 |
Standard Peripheral Library drivers code */ |
54 |
Standard Peripheral Library drivers code */ |
55 |
//#define USE_FULL_ASSERT 1 |
55 |
//#define USE_FULL_ASSERT 1 |
56 |
|
56 |
|
57 |
/* Exported macro ------------------------------------------------------------*/ |
57 |
/* Exported macro ------------------------------------------------------------*/ |
58 |
#ifdef USE_FULL_ASSERT |
58 |
#ifdef USE_FULL_ASSERT |
59 |
|
59 |
|
60 |
/** |
60 |
/** |
61 |
* @brief The assert_param macro is used for function's parameters check. |
61 |
* @brief The assert_param macro is used for function's parameters check. |
62 |
* @param expr: If expr is false, it calls assert_failed function |
62 |
* @param expr: If expr is false, it calls assert_failed function |
63 |
* which reports the name of the source file and the source |
63 |
* which reports the name of the source file and the source |
64 |
* line number of the call that failed. |
64 |
* line number of the call that failed. |
65 |
* If expr is true, it returns no value. |
65 |
* If expr is true, it returns no value. |
66 |
* @retval None |
66 |
* @retval None |
67 |
*/ |
67 |
*/ |
68 |
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) |
68 |
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__)) |
69 |
/* Exported functions ------------------------------------------------------- */ |
69 |
/* Exported functions ------------------------------------------------------- */ |
70 |
void assert_failed(uint8_t* file, uint32_t line); |
70 |
void assert_failed(uint8_t* file, uint32_t line); |
71 |
#else |
71 |
#else |
72 |
#define assert_param(expr) ((void)0) |
72 |
#define assert_param(expr) ((void)0) |
73 |
#endif /* USE_FULL_ASSERT */ |
73 |
#endif /* USE_FULL_ASSERT */ |
74 |
|
74 |
|
75 |
#endif /* __STM32F10x_CONF_H */ |
75 |
#endif /* __STM32F10x_CONF_H */ |
76 |
|
76 |
|
77 |
/******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/ |
77 |
/******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/ |