stm32f4xx_conf.h 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. ******************************************************************************
  3. * @file SysTick/stm32f4xx_conf.h
  4. * @author MCD Application Team
  5. * @version V1.0.0
  6. * @date 19-September-2011
  7. * @brief Library configuration file.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  12. * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  13. * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  14. * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  15. * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  16. * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  17. *
  18. * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
  19. ******************************************************************************
  20. */
  21. /* Define to prevent recursive inclusion -------------------------------------*/
  22. #ifndef __STM32F4xx_CONF_H
  23. #define __STM32F4xx_CONF_H
  24. #if defined (HSE_VALUE)
  25. /* Redefine the HSE value; it's equal to 8 MHz on the STM32F4-DISCOVERY Kit */
  26. #undef HSE_VALUE
  27. #define HSE_VALUE ((uint32_t)8000000)
  28. #endif /* HSE_VALUE */
  29. /* Includes ------------------------------------------------------------------*/
  30. /* Uncomment the line below to enable peripheral header file inclusion */
  31. #include "stm32f4xx_adc.h"
  32. #include "stm32f4xx_can.h"
  33. #include "stm32f4xx_crc.h"
  34. #include "stm32f4xx_cryp.h"
  35. #include "stm32f4xx_dac.h"
  36. #include "stm32f4xx_dbgmcu.h"
  37. #include "stm32f4xx_dcmi.h"
  38. #include "stm32f4xx_dma.h"
  39. #include "stm32f4xx_exti.h"
  40. #include "stm32f4xx_flash.h"
  41. #include "stm32f4xx_fsmc.h"
  42. #include "stm32f4xx_hash.h"
  43. #include "stm32f4xx_gpio.h"
  44. #include "stm32f4xx_i2c.h"
  45. #include "stm32f4xx_iwdg.h"
  46. #include "stm32f4xx_pwr.h"
  47. #include "stm32f4xx_rcc.h"
  48. #include "stm32f4xx_rng.h"
  49. #include "stm32f4xx_rtc.h"
  50. #include "stm32f4xx_sdio.h"
  51. #include "stm32f4xx_spi.h"
  52. #include "stm32f4xx_syscfg.h"
  53. #include "stm32f4xx_tim.h"
  54. #include "stm32f4xx_usart.h"
  55. #include "stm32f4xx_wwdg.h"
  56. #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
  57. /* Exported types ------------------------------------------------------------*/
  58. /* Exported constants --------------------------------------------------------*/
  59. /* If an external clock source is used, then the value of the following define
  60. should be set to the value of the external clock source, else, if no external
  61. clock is used, keep this define commented */
  62. /*#define I2S_EXTERNAL_CLOCK_VAL 12288000 */ /* Value of the external clock in Hz */
  63. /* Uncomment the line below to expanse the "assert_param" macro in the
  64. Standard Peripheral Library drivers code */
  65. /* #define USE_FULL_ASSERT 1 */
  66. /* Exported macro ------------------------------------------------------------*/
  67. #ifdef USE_FULL_ASSERT
  68. /**
  69. * @brief The assert_param macro is used for function's parameters check.
  70. * @param expr: If expr is false, it calls assert_failed function
  71. * which reports the name of the source file and the source
  72. * line number of the call that failed.
  73. * If expr is true, it returns no value.
  74. * @retval None
  75. */
  76. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
  77. /* Exported functions ------------------------------------------------------- */
  78. void assert_failed(uint8_t* file, uint32_t line);
  79. #else
  80. #define assert_param(expr) ((void)0)
  81. #endif /* USE_FULL_ASSERT */
  82. #endif /* __STM32F4xx_CONF_H */
  83. /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/