Contiki 2.5
stm32w_conf.h
1 /******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
2 * File Name : stm32w_conf.h
3 * Author : MCD Application Team
4 * Version : V2.0.3
5 * Date : 09/22/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 "stm32w108_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 /* In the following line adjust the External High Speed oscillator (HSE) Startup
150  Timeout value */
151 #define HSEStartUp_TimeOut ((u16)0x0500) /* Time out for HSE start up */
152 
153 /* Exported macro ------------------------------------------------------------*/
154 #ifdef DEBUG
155 /*******************************************************************************
156 * Macro Name : assert_param
157 * Description : The assert_param macro is used for function's parameters check.
158 * It is used only if the library is compiled in DEBUG mode.
159 * Input : - expr: If expr is false, it calls assert_failed function
160 * which reports the name of the source file and the source
161 * line number of the call that failed.
162 * If expr is true, it returns no value.
163 * Return : None
164 *******************************************************************************/
165  #define assert_param(expr) ((expr) ? (void)0 : assert_failed((u8 *)__FILE__, __LINE__))
166 /* Exported functions ------------------------------------------------------- */
167  void assert_failed(u8* file, u32 line);
168 #else
169  #define assert_param(expr) ((void)0)
170 #endif /* DEBUG */
171 
172 #endif /* __STM32F10x_CONF_H */
173 
174 /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/