ft32f0xx_conf.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /**
  2. ******************************************************************************
  3. * @file ft32f0xx_conf.h
  4. * @author FMD-AE
  5. * @version V1.0.0
  6. * @date 2021-8-2
  7. * @brief Library configuration file.
  8. ******************************************************************************
  9. */
  10. #ifndef __FT32F030XX_CONF_H
  11. #define __FT32F030XX_CONF_H
  12. #ifdef _RTE_
  13. #include "RTE_Components.h" /* Component selection */
  14. #endif
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #ifdef RTE_DEVICE_ADC
  19. #include "ft32f0xx_adc.h"
  20. #endif /*RTE_DEVICE_ADC*/
  21. #ifdef RTE_DEVICE_COMP
  22. #include "ft32f0xx_comp.h"
  23. #endif /*RTE_DEVICE_COMP*/
  24. #ifdef RTE_DEVICE_CRC
  25. #include "ft32f0xx_crc.h"
  26. #endif /*RTE_DEVICE_CRC*/
  27. #ifdef RTE_DEVICE_CRS
  28. #include "ft32f0xx_crs.h"
  29. #endif /*RTE_DEVICE_CRS*/
  30. #ifdef RTE_DEVICE_DAC
  31. #include "ft32f0xx_dac.h"
  32. #endif /*RTE_DEVICE_DAC*/
  33. #ifdef RTE_DEVICE_DMA
  34. #include "ft32f0xx_dma.h"
  35. #endif /*RTE_DEVICE_DMA*/
  36. #ifdef RTE_DEVICE_DBGMCU
  37. #include "ft32f0xx_debug.h"
  38. #endif /*RTE_DEVICE_DBGMCU*/
  39. #ifdef RTE_DEVICE_EXTI
  40. #include "ft32f0xx_exti.h"
  41. #endif /*RTE_DEVICE_EXTI*/
  42. #ifdef RTE_DEVICE_FLASH
  43. #include "ft32f0xx_flash.h"
  44. #endif /*RTE_DEVICE_FLASH*/
  45. #ifdef RTE_DEVICE_GPIO
  46. #include "ft32f0xx_gpio.h"
  47. #endif /*RTE_DEVICE_GPIO*/
  48. #ifdef RTE_DEVICE_I2C
  49. #include "ft32f0xx_i2c.h"
  50. #endif /*RTE_DEVICE_I2C*/
  51. #ifdef RTE_DEVICE_IWDG
  52. #include "ft32f0xx_iwdg.h"
  53. #endif /*RTE_DEVICE_IWDG*/
  54. #ifdef RTE_DEVICE_MISC
  55. #include "ft32f0xx_misc.h"
  56. #endif /*RTE_DEVICE_MISC*/
  57. #ifdef RTE_DEVICE_OPA
  58. #include "ft32f0xx_opa.h"
  59. #endif /*RTE_DEVICE_OPA*/
  60. #ifdef RTE_DEVICE_PWR
  61. #include "ft32f0xx_pwr.h"
  62. #endif /*RTE_DEVICE_PWR*/
  63. #ifdef RTE_DEVICE_RCC
  64. #include "ft32f0xx_rcc.h"
  65. #endif /*RTE_DEVICE_RCC*/
  66. #ifdef RTE_DEVICE_RTC
  67. #include "ft32f0xx_rtc.h"
  68. #endif /*RTE_DEVICE_RTC*/
  69. #ifdef RTE_DEVICE_SPI
  70. #include "ft32f0xx_spi.h"
  71. #endif /*RTE_DEVICE_SPI*/
  72. #ifdef RTE_DEVICE_SYSCFG
  73. #include "ft32f0xx_syscfg.h"
  74. #endif /*RTE_DEVICE_SYSCFG*/
  75. #ifdef RTE_DEVICE_TIM
  76. #include "ft32f0xx_tim.h"
  77. #endif /*RTE_DEVICE_TIM*/
  78. #ifdef RTE_DEVICE_USART
  79. #include "ft32f0xx_usart.h"
  80. #endif /*RTE_DEVICE_USART*/
  81. #ifdef RTE_DEVICE_WWDG
  82. #include "ft32f0xx_wwdg.h"
  83. #endif /*RTE_DEVICE_WWDG*/
  84. #include "stdio.h"
  85. #ifdef USE_FULL_ASSERT
  86. /**
  87. * @brief The assert_param macro is used for function's parameters check.
  88. * @param expr: If expr is false, it calls assert_failed function which reports
  89. * the name of the source file and the source line number of the call
  90. * that failed. If expr is true, it returns no value.
  91. * @retval None
  92. */
  93. #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
  94. /* Exported functions ------------------------------------------------------- */
  95. void assert_failed(uint8_t* file, uint32_t line);
  96. #else
  97. #define assert_param(expr) ((void)0)
  98. #endif /* USE_FULL_ASSERT */
  99. #endif /* __FT32F030X8_CONF_H */
  100. /************************ (C) COPYRIGHT FMD *****END OF FILE****/