stm32f2xx_conf.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /**
  2. ******************************************************************************
  3. * @file Project/STM32F2xx_StdPeriph_Template/stm32f2xx_conf.h
  4. * @author MCD Application Team
  5. * @version V1.2.0
  6. * @date 13-April-2012
  7. * @brief Library configuration file.
  8. ******************************************************************************
  9. * @attention
  10. *
  11. * Copyright (c) 2012 STMicroelectronics.
  12. * All rights reserved.
  13. *
  14. * This software is licensed under terms that can be found in the LICENSE file
  15. * in the root directory of this software component.
  16. * If no LICENSE file comes with this software, it is provided AS-IS.
  17. *
  18. ******************************************************************************
  19. */
  20. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef __STM32F2xx_CONF_H
  22. #define __STM32F2xx_CONF_H
  23. /* Includes ------------------------------------------------------------------*/
  24. /* Uncomment the line below to enable peripheral header file inclusion */
  25. #include "stm32f2xx_dma.h"
  26. #include "stm32f2xx_gpio.h"
  27. #include "stm32f2xx_rcc.h"
  28. #include "stm32f2xx_syscfg.h"
  29. #include "stm32f2xx_usart.h"
  30. #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
  31. /* Exported types ------------------------------------------------------------*/
  32. /* Exported constants --------------------------------------------------------*/
  33. /* If an external clock source is used, then the value of the following define
  34. should be set to the value of the external clock source, else, if no external
  35. clock is used, keep this define commented */
  36. /*#define I2S_EXTERNAL_CLOCK_VAL 12288000 */ /* Value of the external clock in Hz */
  37. /* Uncomment the line below to expanse the "assert_param" macro in the
  38. Standard Peripheral Library drivers code */
  39. /* Exported macro ------------------------------------------------------------*/
  40. #define USE_FULL_ASSERT 1
  41. #ifdef USE_FULL_ASSERT
  42. /**
  43. * @brief The assert_param macro is used for function's parameters check.
  44. * @param expr: If expr is false, it calls assert_failed function
  45. * which reports the name of the source file and the source
  46. * line number of the call that failed.
  47. * If expr is true, it returns no value.
  48. * @retval None
  49. */
  50. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
  51. /* Exported functions ------------------------------------------------------- */
  52. void assert_failed(uint8_t* file, uint32_t line);
  53. #else
  54. #define assert_param(expr) ((void)0)
  55. #endif /* USE_FULL_ASSERT */
  56. #endif /* __STM32F2xx_CONF_H */