ft32f0xx_conf.h 3.0 KB
Newer Older
F
FmdAE 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
/**
  ******************************************************************************
  * @file    ft32f0xx_conf.h
  * @author  FMD-AE
  * @version V1.0.0
  * @date    2021-8-2
  * @brief   Library configuration file.
  ******************************************************************************
*/

#ifndef __FT32F030XX_CONF_H
#define __FT32F030XX_CONF_H

#ifdef _RTE_
#include "RTE_Components.h"             /* Component selection */
#endif

#ifdef __cplusplus
 extern "C" {
#endif

#ifdef  RTE_DEVICE_ADC
#include "ft32f0xx_adc.h"
#endif  /*RTE_DEVICE_ADC*/

#ifdef   RTE_DEVICE_COMP
#include "ft32f0xx_comp.h"
#endif  /*RTE_DEVICE_COMP*/

#ifdef   RTE_DEVICE_CRC
#include "ft32f0xx_crc.h"
#endif  /*RTE_DEVICE_CRC*/

#ifdef   RTE_DEVICE_CRS
#include "ft32f0xx_crs.h"
#endif  /*RTE_DEVICE_CRS*/

#ifdef   RTE_DEVICE_DAC
#include "ft32f0xx_dac.h"
#endif  /*RTE_DEVICE_DAC*/

#ifdef   RTE_DEVICE_DMA
#include "ft32f0xx_dma.h"
#endif  /*RTE_DEVICE_DMA*/

#ifdef   RTE_DEVICE_DBGMCU
#include "ft32f0xx_debug.h"
#endif  /*RTE_DEVICE_DBGMCU*/

#ifdef   RTE_DEVICE_EXTI
#include "ft32f0xx_exti.h"
#endif  /*RTE_DEVICE_EXTI*/

#ifdef   RTE_DEVICE_FLASH
#include "ft32f0xx_flash.h"
#endif  /*RTE_DEVICE_FLASH*/

#ifdef   RTE_DEVICE_GPIO
#include "ft32f0xx_gpio.h"
#endif  /*RTE_DEVICE_GPIO*/

#ifdef   RTE_DEVICE_I2C
#include "ft32f0xx_i2c.h"
#endif  /*RTE_DEVICE_I2C*/

#ifdef   RTE_DEVICE_IWDG
#include "ft32f0xx_iwdg.h"
#endif  /*RTE_DEVICE_IWDG*/

#ifdef   RTE_DEVICE_MISC
#include "ft32f0xx_misc.h"
#endif  /*RTE_DEVICE_MISC*/

#ifdef   RTE_DEVICE_OPA
#include "ft32f0xx_opa.h"
#endif  /*RTE_DEVICE_OPA*/

#ifdef   RTE_DEVICE_PWR
#include "ft32f0xx_pwr.h"
#endif  /*RTE_DEVICE_PWR*/

#ifdef   RTE_DEVICE_RCC
#include "ft32f0xx_rcc.h"
#endif  /*RTE_DEVICE_RCC*/

#ifdef   RTE_DEVICE_RTC
#include "ft32f0xx_rtc.h"
#endif  /*RTE_DEVICE_RTC*/

#ifdef   RTE_DEVICE_SPI
#include "ft32f0xx_spi.h"
#endif  /*RTE_DEVICE_SPI*/

#ifdef   RTE_DEVICE_SYSCFG
#include "ft32f0xx_syscfg.h"
#endif  /*RTE_DEVICE_SYSCFG*/

#ifdef   RTE_DEVICE_TIM
#include "ft32f0xx_tim.h"
#endif  /*RTE_DEVICE_TIM*/

#ifdef   RTE_DEVICE_USART
#include "ft32f0xx_usart.h"
#endif  /*RTE_DEVICE_USART*/

#ifdef   RTE_DEVICE_WWDG
#include "ft32f0xx_wwdg.h"
#endif  /*RTE_DEVICE_WWDG*/



#include "stdio.h"

#ifdef  USE_FULL_ASSERT

/**
  * @brief  The assert_param macro is used for function's parameters check.
  * @param  expr: If expr is false, it calls assert_failed function which reports
  *         the name of the source file and the source line number of the call
  *         that failed. If expr is true, it returns no value.
  * @retval None
  */
  #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
/* Exported functions ------------------------------------------------------- */
  void assert_failed(uint8_t* file, uint32_t line);
#else
  #define assert_param(expr) ((void)0)
#endif /* USE_FULL_ASSERT */

#endif /* __FT32F030X8_CONF_H */

/************************ (C) COPYRIGHT FMD *****END OF FILE****/