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