stm32f10x_conf.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. /************************************* BKP ************************************/
  31. #define _BKP
  32. /************************************* CAN ************************************/
  33. #define _CAN
  34. /************************************* CRC ************************************/
  35. #define _CRC
  36. /************************************* DAC ************************************/
  37. #define _DAC
  38. /************************************* DBGMCU *********************************/
  39. #define _DBGMCU
  40. /************************************* DMA ************************************/
  41. #define _DMA
  42. #define _DMA1_Channel1
  43. #define _DMA1_Channel2
  44. #define _DMA1_Channel3
  45. #define _DMA1_Channel4
  46. #define _DMA1_Channel5
  47. #define _DMA1_Channel6
  48. #define _DMA1_Channel7
  49. /************************************* EXTI ***********************************/
  50. #define _EXTI
  51. /************************************* FLASH and Option Bytes *****************/
  52. #define _FLASH
  53. /* Uncomment the line below to enable FLASH program/erase/protections functions,
  54. otherwise only FLASH configuration (latency, prefetch, half cycle) functions
  55. are enabled */
  56. /* #define _FLASH_PROG */
  57. /************************************* GPIO ***********************************/
  58. #define _GPIO
  59. #define _GPIOA
  60. #define _GPIOB
  61. #define _GPIOC
  62. #define _GPIOD
  63. #define _GPIOE
  64. #define _GPIOF
  65. #define _GPIOG
  66. #define _AFIO
  67. /************************************* I2C ************************************/
  68. #define _I2C
  69. #define _I2C1
  70. #define _I2C2
  71. /************************************* IWDG ***********************************/
  72. #define _IWDG
  73. /************************************* NVIC ***********************************/
  74. #define _NVIC
  75. /************************************* PWR ************************************/
  76. #define _PWR
  77. /************************************* RCC ************************************/
  78. #define _RCC
  79. /************************************* RTC ************************************/
  80. #define _RTC
  81. /************************************* SPI ************************************/
  82. #define _SPI
  83. #define _SPI1
  84. #define _SPI2
  85. /************************************* SysTick ********************************/
  86. #define _SysTick
  87. /************************************* TIM ************************************/
  88. #define _TIM
  89. #define _TIM1
  90. #define _TIM2
  91. #define _TIM3
  92. #define _TIM4
  93. /************************************* USART **********************************/
  94. #define _USART
  95. #define _USART1
  96. #define _USART2
  97. #define _USART3
  98. /************************************* WWDG ***********************************/
  99. #define _WWDG
  100. /* In the following line adjust the value of External High Speed oscillator (HSE)
  101. used in your application */
  102. #define HSE_Value ((u32)8000000) /* Value of the External oscillator in Hz*/
  103. /* In the following line adjust the External High Speed oscillator (HSE) Startup
  104. Timeout value */
  105. #define HSEStartUp_TimeOut ((u16)0x0500) /* Time out for HSE start up */
  106. /* Exported macro ------------------------------------------------------------*/
  107. #ifdef DEBUG
  108. /*******************************************************************************
  109. * Macro Name : assert_param
  110. * Description : The assert_param macro is used for function's parameters check.
  111. * It is used only if the library is compiled in DEBUG mode.
  112. * Input : - expr: If expr is false, it calls assert_failed function
  113. * which reports the name of the source file and the source
  114. * line number of the call that failed.
  115. * If expr is true, it returns no value.
  116. * Return : None
  117. *******************************************************************************/
  118. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((u8 *)__FILE__, __LINE__))
  119. /* Exported functions ------------------------------------------------------- */
  120. void assert_failed(u8* file, u32 line);
  121. #else
  122. #define assert_param(expr) ((void)0)
  123. #endif /* DEBUG */
  124. #endif /* __STM32F10x_CONF_H */
  125. /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/