Mercurial > ~darius > hgwebdir.cgi > stm32test
comparison stm32f10x_conf.h @ 0:c59513fd84fb
Initial commit of STM32 test code.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Mon, 03 Oct 2011 21:19:15 +1030 |
parents | |
children | 74e9b3baac1e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c59513fd84fb |
---|---|
1 /** | |
2 ****************************************************************************** | |
3 * @file USART/Polling/stm32f10x_conf.h | |
4 * @author MCD Application Team, mod. Martin Thomas for this project | |
5 * @version V3.0.0 | |
6 * @date 04/18/2009 | |
7 * @brief Library configuration file. | |
8 ****************************************************************************** | |
9 * @copy | |
10 * | |
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 | |
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 | |
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. | |
17 * | |
18 * <h2><center>© COPYRIGHT 2009 STMicroelectronics</center></h2> | |
19 */ | |
20 | |
21 /* Define to prevent recursive inclusion -------------------------------------*/ | |
22 #ifndef __STM32F10x_CONF_H | |
23 #define __STM32F10x_CONF_H | |
24 | |
25 /* Includes ------------------------------------------------------------------*/ | |
26 /* Uncomment the line below to enable peripheral header file inclusion */ | |
27 /* #include "stm32f10x_adc.h" */ | |
28 #include "stm32f10x_bkp.h" | |
29 /* #include "stm32f10x_can.h" */ | |
30 /* #include "stm32f10x_crc.h" */ | |
31 /* #include "stm32f10x_dac.h" */ | |
32 /* #include "stm32f10x_dbgmcu.h" */ | |
33 #include "stm32f10x_dma.h" | |
34 /* #include "stm32f10x_exti.h" */ | |
35 #include "stm32f10x_flash.h" | |
36 /* #include "stm32f10x_fsmc.h" */ | |
37 #include "stm32f10x_gpio.h" | |
38 /* #include "stm32f10x_i2c.h" */ | |
39 /* #include "stm32f10x_iwdg.h" */ | |
40 #include "stm32f10x_pwr.h" | |
41 #include "stm32f10x_rcc.h" | |
42 #include "stm32f10x_rtc.h" | |
43 /* #include "stm32f10x_sdio.h" */ | |
44 #include "stm32f10x_spi.h" | |
45 #include "stm32f10x_tim.h" | |
46 #include "stm32f10x_usart.h" | |
47 /* #include "stm32f10x_wwdg.h" */ | |
48 #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */ | |
49 | |
50 /* Exported types ------------------------------------------------------------*/ | |
51 /* Exported constants --------------------------------------------------------*/ | |
52 /* Uncomment the line below to expanse the "assert_param" macro in the | |
53 Standard Peripheral Library drivers code */ | |
54 /* #define USE_FULL_ASSERT 1 */ | |
55 | |
56 /* Exported macros -----------------------------------------------------------*/ | |
57 #ifdef USE_FULL_ASSERT | |
58 /** | |
59 * @brief The assert_param macro is used for function's parameters check. | |
60 * @param expr: If expr is false, it calls assert_failed function | |
61 * which reports the name of the source file and the source | |
62 * line number of the call that failed. | |
63 * If expr is true, it returns no value. | |
64 * @retval : None | |
65 */ | |
66 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((const uint8_t *)__FILE__, (const uint8_t *)__FUNCTION__, __LINE__)) | |
67 /* Exported functions ------------------------------------------------------- */ | |
68 void assert_failed(const uint8_t* file, const uint8_t* function, uint32_t line); | |
69 #else | |
70 #define assert_param(expr) ((void)0) | |
71 #endif /* USE_FULL_ASSERT */ | |
72 | |
73 // mthomas: | |
74 #ifdef __GNUC__ | |
75 #define RAMFUNC __attribute__ ((long_call, section(".ramfunc"))) | |
76 #else | |
77 #define RAMFUNC | |
78 #endif | |
79 | |
80 #endif /* __STM32F10x_CONF_H */ | |
81 | |
82 /******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/ |