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