stm32f10x_conf.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /******************** (C) COPYRIGHT 2008 STMicroelectronics ********************
  2. * File Name : stm32f10x_conf.h
  3. * Author : MCD Application Team
  4. * Version : V1.1.2
  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. /* Define to prevent recursive inclusion -------------------------------------*/
  16. #ifndef __STM32F10x_CONF_H
  17. #define __STM32F10x_CONF_H
  18. /* Includes ------------------------------------------------------------------*/
  19. #include "stm32f10x_type.h"
  20. /* Exported types ------------------------------------------------------------*/
  21. /* Exported constants --------------------------------------------------------*/
  22. /* Uncomment the line below to compile the library in DEBUG mode, this will expanse
  23. the "assert_param" macro in the firmware library code (see "Exported macro"
  24. section below) */
  25. /* #define DEBUG 1*/
  26. /* Comment the line below to disable the specific peripheral inclusion */
  27. /************************************* ADC ************************************/
  28. #define _ADC
  29. #define _ADC1
  30. #define _ADC2
  31. #define _ADC3
  32. /************************************* BKP ************************************/
  33. #define _BKP
  34. /************************************* CAN ************************************/
  35. #define _CAN
  36. /************************************* CRC ************************************/
  37. #define _CRC
  38. /************************************* DAC ************************************/
  39. #define _DAC
  40. /************************************* DBGMCU *********************************/
  41. #define _DBGMCU
  42. /************************************* DMA ************************************/
  43. #define _DMA
  44. #define _DMA1_Channel1
  45. #define _DMA1_Channel2
  46. #define _DMA1_Channel3
  47. #define _DMA1_Channel4
  48. #define _DMA1_Channel5
  49. #define _DMA1_Channel6
  50. #define _DMA1_Channel7
  51. #define _DMA2_Channel1
  52. #define _DMA2_Channel2
  53. #define _DMA2_Channel3
  54. #define _DMA2_Channel4
  55. #define _DMA2_Channel5
  56. /************************************* EXTI ***********************************/
  57. #define _EXTI
  58. /************************************* FLASH and Option Bytes *****************/
  59. #define _FLASH
  60. /* Uncomment the line below to enable FLASH program/erase/protections functions,
  61. otherwise only FLASH configuration (latency, prefetch, half cycle) functions
  62. are enabled */
  63. /* #define _FLASH_PROG */
  64. /************************************* FSMC ***********************************/
  65. #define _FSMC
  66. /************************************* GPIO ***********************************/
  67. #define _GPIO
  68. #define _GPIOA
  69. #define _GPIOB
  70. #define _GPIOC
  71. #define _GPIOD
  72. #define _GPIOE
  73. #define _GPIOF
  74. #define _GPIOG
  75. #define _AFIO
  76. /************************************* I2C ************************************/
  77. #define _I2C
  78. #define _I2C1
  79. #define _I2C2
  80. /************************************* IWDG ***********************************/
  81. #define _IWDG
  82. /************************************* NVIC ***********************************/
  83. #define _NVIC
  84. /************************************* PWR ************************************/
  85. #define _PWR
  86. /************************************* RCC ************************************/
  87. #define _RCC
  88. /************************************* RTC ************************************/
  89. #define _RTC
  90. /************************************* SDIO ***********************************/
  91. #define _SDIO
  92. /************************************* SPI ************************************/
  93. #define _SPI
  94. #define _SPI1
  95. #define _SPI2
  96. #define _SPI3
  97. /************************************* SysTick ********************************/
  98. #define _SysTick
  99. /************************************* TIM ************************************/
  100. #define _TIM
  101. #define _TIM1
  102. #define _TIM2
  103. #define _TIM3
  104. #define _TIM4
  105. #define _TIM5
  106. #define _TIM6
  107. #define _TIM7
  108. #define _TIM8
  109. /************************************* USART **********************************/
  110. #define _USART
  111. #define _USART1
  112. #define _USART2
  113. #define _USART3
  114. #define _UART4
  115. #define _UART5
  116. /************************************* WWDG ***********************************/
  117. #define _WWDG
  118. /* In the following line adjust the value of External High Speed oscillator (HSE)
  119. used in your application */
  120. #define HSE_Value ((u32)8000000) /* Value of the External oscillator in Hz*/
  121. /* In the following line adjust the External High Speed oscillator (HSE) Startup
  122. Timeout value */
  123. #define HSEStartUp_TimeOut ((u16)0x0500) /* Time out for HSE start up */
  124. /* Exported macro ------------------------------------------------------------*/
  125. #ifdef DEBUG
  126. /*******************************************************************************
  127. * Macro Name : assert_param
  128. * Description : The assert_param macro is used for function's parameters check.
  129. * It is used only if the library is compiled in DEBUG mode.
  130. * Input : - expr: If expr is false, it calls assert_failed function
  131. * which reports the name of the source file and the source
  132. * line number of the call that failed.
  133. * If expr is true, it returns no value.
  134. * Return : None
  135. *******************************************************************************/
  136. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((u8 *)__FILE__, __LINE__))
  137. /* Exported functions ------------------------------------------------------- */
  138. void assert_failed(u8* file, u32 line);
  139. #else
  140. #define assert_param(expr) ((void)0)
  141. #endif /* DEBUG */
  142. #endif /* __STM32F10x_CONF_H */
  143. /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/