ciu32f003_std_config.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /************************************************************************************************/
  2. /**
  3. * @file ciu32f003_std_config.h
  4. * @author MCU Ecosystem Development Team
  5. * @brief STD库相关配置项定义。
  6. *
  7. *
  8. **************************************************************************************************
  9. * @attention
  10. * Copyright (c) CEC Huada Electronic Design Co.,Ltd. All rights reserved.
  11. *
  12. **************************************************************************************************
  13. */
  14. /*避免头文件重复引用*/
  15. #ifndef CIU32F003_STD_CONFIG_H
  16. #define CIU32F003_STD_CONFIG_H
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. /*--------------------------------------------define--------------------------------------------*/
  21. /* 定义CIU32F003 STD库中所有芯片外设的使用开关 */
  22. #define STD_ADC_PERIPHERAL_USED
  23. #define STD_COMP_PERIPHERAL_USED
  24. #define STD_CRC_PERIPHERAL_USED
  25. #define STD_DBG_PERIPHERAL_USED
  26. #define STD_EXTI_PERIPHERAL_USED
  27. #define STD_FLASH_PERIPHERAL_USED
  28. #define STD_GPIO_PERIPHERAL_USED
  29. #define STD_I2C_PERIPHERAL_USED
  30. #define STD_IRTIM_PERIPHERAL_USED
  31. #define STD_IWDG_PERIPHERAL_USED
  32. #define STD_LPTIM_PERIPHERAL_USED
  33. #define STD_PMU_PERIPHERAL_USED
  34. #define STD_SPI_PERIPHERAL_USED
  35. #define STD_TIM_PERIPHERAL_USED
  36. #define STD_UART_PERIPHERAL_USED
  37. #if !defined (EXTCLK_VALUE)
  38. #define EXTCLK_VALUE (8000000UL) /**< EXTclock frequency(Hz) */
  39. #endif
  40. #if !defined (RCH_VALUE)
  41. #define RCH_VALUE (48000000UL) /**< RCH clock frequency(Hz) */
  42. #endif
  43. #if !defined (RCL_VALUE)
  44. #define RCL_VALUE (32000UL) /**< RCL clock frequency(Hz) */
  45. #endif
  46. /*------------------------------------------includes--------------------------------------------*/
  47. /* 根据外设配置,引用外设头文件 */
  48. #include "ciu32f003_std_rcc.h"
  49. #ifdef STD_ADC_PERIPHERAL_USED
  50. #include "ciu32f003_std_adc.h"
  51. #endif
  52. #ifdef STD_COMP_PERIPHERAL_USED
  53. #include "ciu32f003_std_comp.h"
  54. #endif
  55. #ifdef STD_CRC_PERIPHERAL_USED
  56. #include "ciu32f003_std_crc.h"
  57. #endif
  58. #ifdef STD_DBG_PERIPHERAL_USED
  59. #include "ciu32f003_std_dbg.h"
  60. #endif
  61. #ifdef STD_EXTI_PERIPHERAL_USED
  62. #include "ciu32f003_std_exti.h"
  63. #endif
  64. #ifdef STD_FLASH_PERIPHERAL_USED
  65. #include "ciu32f003_std_flash.h"
  66. #endif
  67. #ifdef STD_GPIO_PERIPHERAL_USED
  68. #include "ciu32f003_std_gpio.h"
  69. #endif
  70. #ifdef STD_I2C_PERIPHERAL_USED
  71. #include "ciu32f003_std_i2c.h"
  72. #endif
  73. #ifdef STD_IRTIM_PERIPHERAL_USED
  74. #include "ciu32f003_std_irtim.h"
  75. #endif
  76. #ifdef STD_IWDG_PERIPHERAL_USED
  77. #include "ciu32f003_std_iwdg.h"
  78. #endif
  79. #ifdef STD_LPTIM_PERIPHERAL_USED
  80. #include "ciu32f003_std_lptim.h"
  81. #endif
  82. #ifdef STD_PMU_PERIPHERAL_USED
  83. #include "ciu32f003_std_pmu.h"
  84. #endif
  85. #ifdef STD_SPI_PERIPHERAL_USED
  86. #include "ciu32f003_std_spi.h"
  87. #endif
  88. #ifdef STD_TIM_PERIPHERAL_USED
  89. #include "ciu32f003_std_tim.h"
  90. #endif
  91. #ifdef STD_UART_PERIPHERAL_USED
  92. #include "ciu32f003_std_uart.h"
  93. #endif
  94. /*-------------------------------------------functions------------------------------------------*/
  95. #ifdef __cplusplus
  96. }
  97. #endif
  98. #endif /* CIU32F003_STD_CONFIG_H */