tae32f53xx_ll_conf.h 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. /**
  2. ******************************************************************************
  3. * @file tae32f53xx_ll_conf.h
  4. * @author MCD Application Team
  5. * @brief LL configuration file.
  6. *
  7. ******************************************************************************
  8. * @attention
  9. *
  10. * <h2><center>&copy; Copyright (c) 2020 Tai-Action.
  11. * All rights reserved.</center></h2>
  12. *
  13. * This software is licensed by Tai-Action 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. /* Define to prevent recursive inclusion -------------------------------------*/
  21. #ifndef _TAE32F53XX_LL_CONF_H_
  22. #define _TAE32F53XX_LL_CONF_H_
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif /* __cplusplus */
  26. /** @addtogroup TAE32F53xx_Examples
  27. * @{
  28. */
  29. /** @addtogroup TAE32F53xx_Template
  30. * @{
  31. */
  32. /* Exported constants --------------------------------------------------------*/
  33. /** @defgroup CONFIG_LL_Exported_Constants CONFIG LL Exported Constants
  34. * @brief CONFIG LL Exported Constants
  35. * @{
  36. */
  37. /** @defgroup CONFIG_LL_Module_Selection CONFIG LL Module Selection
  38. * @brief CONFIG LL Module Selection
  39. * @note This is the list of modules to be used in the LL driver
  40. * @{
  41. */
  42. /* Internal Class Peripheral */
  43. #define LL_MODULE_ENABLED /*!< LL Module Enable */
  44. #define LL_CORTEX_MODULE_ENABLED /*!< Cortex Module Enable */
  45. #define LL_FPLL_MODULE_ENABLED /*!< FPLL Module Enable */
  46. #define LL_LVD_MODULE_ENABLED /*!< LVD Module Enable */
  47. #define LL_DMA_MODULE_ENABLED /*!< DMA Module Enable */
  48. #define LL_FLASH_MODULE_ENABLED /*!< FLASH Module Enable */
  49. #define LL_DFLASH_MODULE_ENABLED /*!< DFLASH Module Enable */
  50. #define LL_WWDG_MODULE_ENABLED /*!< WWDG Module Enable */
  51. #define LL_IWDG_MODULE_ENABLED /*!< IWDG Module Enable */
  52. #define LL_TMR_MODULE_ENABLED /*!< TMR Module Enable */
  53. #define LL_IIR_MODULE_ENABLED /*!< IIR Module Enable */
  54. /* Interface Class Peripheral */
  55. #define LL_GPIO_MODULE_ENABLED /*!< GPIO Module Enable */
  56. #define LL_UART_MODULE_ENABLED /*!< UART Module Enable */
  57. #define LL_I2C_MODULE_ENABLED /*!< I2C Module Enable */
  58. #define LL_CAN_MODULE_ENABLED /*!< CAN Module Enable */
  59. #define LL_DALI_MODULE_ENABLED /*!< DALI Module Enable */
  60. #define LL_USB_MODULE_ENABLED /*!< USB Module Enable */
  61. /* Analog Class Peripheral */
  62. #define LL_ADC_MODULE_ENABLED /*!< ADC Module Enable */
  63. #define LL_DAC_MODULE_ENABLED /*!< DAC Module Enable */
  64. #define LL_CMP_MODULE_ENABLED /*!< CMP Module Enable */
  65. #define LL_ECU_MODULE_ENABLED /*!< ECU Module Enable */
  66. #define LL_HRPWM_MODULE_ENABLED /*!< HRPWM Module Enable */
  67. /**
  68. * @}
  69. */
  70. /** @defgroup CONFIG_LL_Oscillator_Values_Adaptation CONFIG LL Oscillator Values Adaptation
  71. * @brief CONFIG LL Oscillator Values Adaptation
  72. * @{
  73. */
  74. /**
  75. * @brief Adjust the value of External High Speed oscillator (HSE) used in your application.
  76. * This value is used by the FPLL module to compute the system frequency
  77. * (when HSE is used as system clock source, directly or through the PLL).
  78. */
  79. #if !defined (HSE_VALUE)
  80. #define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */
  81. #endif
  82. /**
  83. * @brief Internal High Speed oscillator (HSI) value.
  84. * This value is used by the FPLL module to compute the system frequency
  85. * (when HSI is used as system clock source, directly or through the PLL).
  86. */
  87. #if !defined (HSI_VALUE)
  88. #define HSI_VALUE 8000000U /*!< Value of the Internal oscillator in Hz */
  89. #endif
  90. /**
  91. * @brief Internal Low Speed oscillator (LSI) value.
  92. * Defines the value of the Internal Low Speed oscillator in Hz.
  93. * @note The real value may vary depending on the variations in voltage and temperature.
  94. */
  95. #if !defined (LSI_VALUE)
  96. #define LSI_VALUE 32000U /*!< LSI Typical Value in Hz */
  97. #endif
  98. /**
  99. * @}
  100. */
  101. /** @defgroup CONFIG_LL_System_Configuration CONFIG LL System Configuration
  102. * @brief CONFIG LL System Configuration
  103. * @note This is the LL system configuration section
  104. * @{
  105. */
  106. #define TICK_INT_PRIORITY 0x07U /*!< tick interrupt priority, set to lowest */
  107. #define USE_RTOS 0U /*!< Support for RTOS (Unsupported in current version) */
  108. #define PREFETCH_ENABLE 1U /*!< Flash prefetch feature */
  109. /**
  110. * @}
  111. */
  112. /**
  113. * @}
  114. */
  115. /* Includes ------------------------------------------------------------------*/
  116. #include "stdbool.h"
  117. #include "tae32f53xx_ll_sysctrl.h"
  118. /* Internal Class Peripheral */
  119. #ifdef LL_CORTEX_MODULE_ENABLED
  120. #include "tae32f53xx_ll_cortex.h"
  121. #endif
  122. #ifdef LL_FPLL_MODULE_ENABLED
  123. #include "tae32f53xx_ll_fpll.h"
  124. #endif
  125. #ifdef LL_LVD_MODULE_ENABLED
  126. #include "tae32f53xx_ll_lvdctrl.h"
  127. #endif
  128. #ifdef LL_DMA_MODULE_ENABLED
  129. #include "tae32f53xx_ll_dma.h"
  130. #endif
  131. #ifdef LL_FLASH_MODULE_ENABLED
  132. #include "tae32f53xx_ll_flash.h"
  133. #endif
  134. #ifdef LL_DFLASH_MODULE_ENABLED
  135. #include "tae32f53xx_ll_dflash.h"
  136. #endif
  137. #ifdef LL_WWDG_MODULE_ENABLED
  138. #include "tae32f53xx_ll_wwdg.h"
  139. #endif
  140. #ifdef LL_IWDG_MODULE_ENABLED
  141. #include "tae32f53xx_ll_iwdg.h"
  142. #endif
  143. #ifdef LL_TMR_MODULE_ENABLED
  144. #include "tae32f53xx_ll_tmr.h"
  145. #endif
  146. #ifdef LL_IIR_MODULE_ENABLED
  147. #include "tae32f53xx_ll_iir.h"
  148. #endif
  149. /* Interface Class Peripheral */
  150. #ifdef LL_GPIO_MODULE_ENABLED
  151. #include "tae32f53xx_ll_gpio.h"
  152. #endif
  153. #ifdef LL_UART_MODULE_ENABLED
  154. #include "tae32f53xx_ll_uart.h"
  155. #endif
  156. #ifdef LL_I2C_MODULE_ENABLED
  157. #include "tae32f53xx_ll_i2c.h"
  158. #endif
  159. #ifdef LL_CAN_MODULE_ENABLED
  160. #include "tae32f53xx_ll_can.h"
  161. #endif
  162. #ifdef LL_DALI_MODULE_ENABLED
  163. #include "tae32f53xx_ll_dali.h"
  164. #endif
  165. #ifdef LL_USB_MODULE_ENABLED
  166. #include "tae32f53xx_ll_usb.h"
  167. #endif
  168. /* Analog Class Peripheral */
  169. #ifdef LL_ADC_MODULE_ENABLED
  170. #include "tae32f53xx_ll_adc.h"
  171. #endif
  172. #ifdef LL_DAC_MODULE_ENABLED
  173. #include "tae32f53xx_ll_dac.h"
  174. #endif
  175. #ifdef LL_CMP_MODULE_ENABLED
  176. #include "tae32f53xx_ll_cmp.h"
  177. #endif
  178. #ifdef LL_ECU_MODULE_ENABLED
  179. #include "tae32f53xx_ll_ecu.h"
  180. #endif
  181. #ifdef LL_HRPWM_MODULE_ENABLED
  182. #include "tae32f53xx_ll_hrpwm.h"
  183. #endif
  184. /* Exported types ------------------------------------------------------------*/
  185. /* Exported macro ------------------------------------------------------------*/
  186. /** @defgroup CONFIG_LL_Exported_Macros CONFIG LL Exported Macros
  187. * @brief CONFIG LL Exported Macros
  188. * @{
  189. */
  190. /** @defgroup CONFIG_LL_Assert_Selection CONFIG LL Assert Selection
  191. * @brief CONFIG LL Assert Selection
  192. * @{
  193. */
  194. /**
  195. * @brief Uncomment the line below to expanse the "assert_param" macro in the LL drivers code
  196. */
  197. //#define USE_FULL_ASSERT
  198. #ifdef USE_FULL_ASSERT
  199. void assert_failed(uint8_t *file, uint32_t line);
  200. /**
  201. * @brief The assert_param macro is used for function's parameters check.
  202. * @param expr: If expr is false, it calls assert_failed function
  203. * which reports the name of the source file and the source
  204. * line number of the call that failed.
  205. * If expr is true, it returns no value.
  206. * @retval None
  207. */
  208. #define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
  209. #else
  210. #define assert_param(expr) ((void)0U)
  211. #endif /* USE_FULL_ASSERT */
  212. /**
  213. * @}
  214. */
  215. /**
  216. * @}
  217. */
  218. /* Exported functions ------------------------------------------------------- */
  219. /* Private types -------------------------------------------------------------*/
  220. /* Private variables ---------------------------------------------------------*/
  221. /* Private constants ---------------------------------------------------------*/
  222. /* Private macros ------------------------------------------------------------*/
  223. /* Private functions ---------------------------------------------------------*/
  224. /**
  225. * @}
  226. */
  227. /**
  228. * @}
  229. */
  230. #ifdef __cplusplus
  231. }
  232. #endif /* __cplusplus */
  233. #endif /* _TAE32F53XX_LL_CONF_H_ */
  234. /************************* (C) COPYRIGHT Tai-Action *****END OF FILE***********/