stm32w_conf.h

00001 /******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
00002 * File Name          : stm32w_conf.h
00003 * Author             : MCD Application Team
00004 * Version            : V2.0.3
00005 * Date               : 09/22/2008
00006 * Description        : Library configuration file.
00007 ********************************************************************************
00008 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00009 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
00010 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
00011 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
00012 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
00013 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00014 *******************************************************************************/
00015 
00016 /* Define to prevent recursive inclusion -------------------------------------*/
00017 #ifndef __STM32F10x_CONF_H
00018 #define __STM32F10x_CONF_H
00019 
00020 /* Includes ------------------------------------------------------------------*/
00021 #include "stm32w108_type.h"
00022 
00023 /* Exported types ------------------------------------------------------------*/
00024 /* Exported constants --------------------------------------------------------*/
00025 /* Uncomment the line below to compile the library in DEBUG mode, this will expanse
00026    the "assert_param" macro in the firmware library code (see "Exported macro"
00027    section below) */
00028 /*#define DEBUG    1*/
00029 
00030 /* Comment the line below to disable the specific peripheral inclusion */
00031 /************************************* ADC ************************************/
00032 //#define _ADC
00033 //#define _ADC1
00034 //#define _ADC2
00035 //#define _ADC3
00036 
00037 /************************************* BKP ************************************/
00038 //#define _BKP 
00039 
00040 /************************************* CAN ************************************/
00041 //#define _CAN
00042 
00043 /************************************* CRC ************************************/
00044 //#define _CRC
00045 
00046 /************************************* DAC ************************************/
00047 //#define _DAC
00048 
00049 /************************************* DBGMCU *********************************/
00050 //#define _DBGMCU
00051 
00052 /************************************* DMA ************************************/
00053 //#define _DMA
00054 //#define _DMA1_Channel1
00055 //#define _DMA1_Channel2
00056 //#define _DMA1_Channel3
00057 //#define _DMA1_Channel4
00058 //#define _DMA1_Channel5
00059 //#define _DMA1_Channel6
00060 //#define _DMA1_Channel7
00061 //#define _DMA2_Channel1
00062 //#define _DMA2_Channel2
00063 //#define _DMA2_Channel3
00064 //#define _DMA2_Channel4
00065 //#define _DMA2_Channel5
00066 
00067 /************************************* EXTI ***********************************/
00068 //#define _EXTI
00069 
00070 /************************************* FLASH and Option Bytes *****************/
00071 #define _FLASH
00072 /* Uncomment the line below to enable FLASH program/erase/protections functions,
00073    otherwise only FLASH configuration (latency, prefetch, half cycle) functions
00074    are enabled */
00075 /* #define _FLASH_PROG */
00076 
00077 /************************************* FSMC ***********************************/
00078 //#define _FSMC
00079 
00080 /************************************* GPIO ***********************************/
00081 #define _GPIO
00082 //#define _GPIOA
00083 //#define _GPIOB
00084 #define _GPIOC
00085 //#define _GPIOD
00086 //#define _GPIOE
00087 #define _GPIOF
00088 //#define _GPIOG
00089 #define _AFIO
00090 
00091 /************************************* I2C ************************************/
00092 //#define _I2C
00093 //#define _I2C1
00094 //#define _I2C2
00095 
00096 /************************************* IWDG ***********************************/
00097 //#define _IWDG
00098 
00099 /************************************* NVIC ***********************************/
00100 #define _NVIC
00101 
00102 /************************************* PWR ************************************/
00103 //#define _PWR
00104 
00105 /************************************* RCC ************************************/
00106 #define _RCC
00107 
00108 /************************************* RTC ************************************/
00109 //#define _RTC
00110 
00111 /************************************* SDIO ***********************************/
00112 //#define _SDIO
00113 
00114 /************************************* SPI ************************************/
00115 //#define _SPI
00116 //#define _SPI1
00117 //#define _SPI2
00118 //#define _SPI3
00119 
00120 /************************************* SysTick ********************************/
00121 #define _SysTick
00122 
00123 /************************************* TIM ************************************/
00124 //#define _TIM
00125 //#define _TIM1
00126 //#define _TIM2
00127 //#define _TIM3
00128 //#define _TIM4
00129 //#define _TIM5
00130 //#define _TIM6
00131 //#define _TIM7
00132 //#define _TIM8
00133 
00134 /************************************* USART **********************************/
00135 //#define _USART
00136 //#define _USART1
00137 //#define _USART2
00138 //#define _USART3
00139 //#define _UART4
00140 //#define _UART5
00141 
00142 /************************************* WWDG ***********************************/
00143 //#define _WWDG
00144 
00145 /* In the following line adjust the value of External High Speed oscillator (HSE)
00146    used in your application */
00147 #define HSE_Value    ((u32)8000000) /* Value of the External oscillator in Hz*/
00148 
00149 /* In the following line adjust the External High Speed oscillator (HSE) Startup 
00150    Timeout value */
00151 #define HSEStartUp_TimeOut    ((u16)0x0500) /* Time out for HSE start up */
00152 
00153 /* Exported macro ------------------------------------------------------------*/
00154 #ifdef  DEBUG
00155 /*******************************************************************************
00156 * Macro Name     : assert_param
00157 * Description    : The assert_param macro is used for function's parameters check.
00158 *                  It is used only if the library is compiled in DEBUG mode. 
00159 * Input          : - expr: If expr is false, it calls assert_failed function
00160 *                    which reports the name of the source file and the source
00161 *                    line number of the call that failed. 
00162 *                    If expr is true, it returns no value.
00163 * Return         : None
00164 *******************************************************************************/ 
00165   #define assert_param(expr) ((expr) ? (void)0 : assert_failed((u8 *)__FILE__, __LINE__))
00166 /* Exported functions ------------------------------------------------------- */
00167   void assert_failed(u8* file, u32 line);
00168 #else
00169   #define assert_param(expr) ((void)0)
00170 #endif /* DEBUG */
00171 
00172 #endif /* __STM32F10x_CONF_H */
00173 
00174 /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/

Generated on Mon Apr 11 14:23:39 2011 for Contiki 2.5 by  doxygen 1.6.1