hc32f4xx_conf.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /**
  2. *******************************************************************************
  3. * @file spi/spi_write_read_flash/source/hc32f4xx_conf.h
  4. * @brief This file contains HC32 Series Device Driver Library usage management.
  5. @verbatim
  6. Change Logs:
  7. Date Author Notes
  8. 2022-12-31 CDT First version
  9. @endverbatim
  10. *******************************************************************************
  11. * Copyright (C) 2022, Xiaohua Semiconductor Co., Ltd. All rights reserved.
  12. *
  13. * This software component is licensed by XHSC under BSD 3-Clause license
  14. * (the "License"); You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. *******************************************************************************
  19. */
  20. #ifndef __HC32F4XX_CONF_H__
  21. #define __HC32F4XX_CONF_H__
  22. /*******************************************************************************
  23. * Include files
  24. ******************************************************************************/
  25. /* C binding of definitions if building with C++ compiler */
  26. #ifdef __cplusplus
  27. extern "C"
  28. {
  29. #endif
  30. /*******************************************************************************
  31. * Global type definitions ('typedef')
  32. ******************************************************************************/
  33. /*******************************************************************************
  34. * Global pre-processor symbols/macros ('#define')
  35. ******************************************************************************/
  36. /**
  37. * @brief This is the list of modules to be used in the Device Driver Library.
  38. * Select the modules you need to use to DDL_ON.
  39. * @note LL_ICG_ENABLE must be turned on(DDL_ON) to ensure that the chip works
  40. * properly.
  41. * @note LL_UTILITY_ENABLE must be turned on(DDL_ON) if using Device Driver
  42. * Library.
  43. * @note LL_PRINT_ENABLE must be turned on(DDL_ON) if using printf function.
  44. */
  45. #define LL_ICG_ENABLE (DDL_ON)
  46. #define LL_UTILITY_ENABLE (DDL_ON)
  47. #define LL_PRINT_ENABLE (DDL_OFF)
  48. #define LL_ADC_ENABLE (DDL_ON)
  49. #define LL_AES_ENABLE (DDL_OFF)
  50. #define LL_AOS_ENABLE (DDL_ON)
  51. #define LL_CLK_ENABLE (DDL_ON)
  52. #define LL_CMP_ENABLE (DDL_OFF)
  53. #define LL_CRC_ENABLE (DDL_OFF)
  54. #define LL_CTC_ENABLE (DDL_OFF)
  55. #define LL_DAC_ENABLE (DDL_OFF)
  56. #define LL_DBGC_ENABLE (DDL_OFF)
  57. #define LL_DCU_ENABLE (DDL_OFF)
  58. #define LL_DMA_ENABLE (DDL_ON)
  59. #define LL_EFM_ENABLE (DDL_ON)
  60. #define LL_EMB_ENABLE (DDL_OFF)
  61. #define LL_EVENT_PORT_ENABLE (DDL_OFF)
  62. #define LL_FCG_ENABLE (DDL_ON)
  63. #define LL_FCM_ENABLE (DDL_OFF)
  64. #define LL_GPIO_ENABLE (DDL_ON)
  65. #define LL_HASH_ENABLE (DDL_ON)
  66. #define LL_I2C_ENABLE (DDL_OFF)
  67. #define LL_INTERRUPTS_ENABLE (DDL_ON)
  68. #define LL_INTERRUPTS_SHARE_ENABLE (DDL_ON)
  69. #define LL_KEYSCAN_ENABLE (DDL_OFF)
  70. #define LL_MCAN_ENABLE (DDL_ON)
  71. #define LL_MPU_ENABLE (DDL_OFF)
  72. #define LL_PWC_ENABLE (DDL_ON)
  73. #define LL_QSPI_ENABLE (DDL_OFF)
  74. #define LL_RMU_ENABLE (DDL_OFF)
  75. #define LL_RTC_ENABLE (DDL_ON)
  76. #define LL_SMC_ENABLE (DDL_OFF)
  77. #define LL_SPI_ENABLE (DDL_ON)
  78. #define LL_SRAM_ENABLE (DDL_ON)
  79. #define LL_SWDT_ENABLE (DDL_OFF)
  80. #define LL_TMR0_ENABLE (DDL_ON)
  81. #define LL_TMR4_ENABLE (DDL_OFF)
  82. #define LL_TMR6_ENABLE (DDL_OFF)
  83. #define LL_TMRA_ENABLE (DDL_ON)
  84. #define LL_TRNG_ENABLE (DDL_OFF)
  85. #define LL_USART_ENABLE (DDL_ON)
  86. #define LL_WDT_ENABLE (DDL_OFF)
  87. /**
  88. * @brief The following is a list of currently supported BSP boards.
  89. */
  90. #define BSP_EV_HC32F448_LQFP80 (9U)
  91. /**
  92. * @brief The macro BSP_EV_HC32F4XX is used to specify the BSP board currently
  93. * in use.
  94. * The value should be set to one of the list of currently supported BSP boards.
  95. * @note If there is no supported BSP board or the BSP function is not used,
  96. * the value needs to be set to 0U.
  97. */
  98. #define BSP_EV_HC32F4XX (BSP_EV_HC32F448_LQFP80)
  99. /**
  100. * @brief This is the list of BSP components to be used.
  101. * Select the components you need to use to DDL_ON.
  102. */
  103. #define BSP_24CXX_ENABLE (DDL_OFF)
  104. #define BSP_GT9XX_ENABLE (DDL_OFF)
  105. #define BSP_IS61LV6416_ENABLE (DDL_OFF)
  106. #define BSP_NT35510_ENABLE (DDL_OFF)
  107. #define BSP_TCA9539_ENABLE (DDL_ON)
  108. #define BSP_W25QXX_ENABLE (DDL_ON)
  109. #define BSP_INT_KEY_ENABLE (DDL_ON)
  110. /*******************************************************************************
  111. * Global variable definitions ('extern')
  112. ******************************************************************************/
  113. /*******************************************************************************
  114. * Global function prototypes (definition in C source)
  115. ******************************************************************************/
  116. #ifdef __cplusplus
  117. }
  118. #endif
  119. #endif /* __HC32F4XX_CONF_H__ */
  120. /*******************************************************************************
  121. * EOF (not truncated)
  122. ******************************************************************************/