blob: 2453f74d44b796b241dbca7e95ddbcf76763f274 (
plain)
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
|
/**
******************************************************************************
* @file tae32f53xx_ll_conf.h
* @author MCD Application Team
* @brief LL configuration file.
*
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2020 Tai-Action.
* All rights reserved.</center></h2>
*
* This software is licensed by Tai-Action under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _TAE32F53XX_LL_CONF_H_
#define _TAE32F53XX_LL_CONF_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/** @addtogroup TAE32F53xx_Examples
* @{
*/
/** @addtogroup TAE32F53xx_Template
* @{
*/
/* Exported constants --------------------------------------------------------*/
/** @defgroup CONFIG_LL_Exported_Constants CONFIG LL Exported Constants
* @brief CONFIG LL Exported Constants
* @{
*/
/** @defgroup CONFIG_LL_Module_Selection CONFIG LL Module Selection
* @brief CONFIG LL Module Selection
* @note This is the list of modules to be used in the LL driver
* @{
*/
/* Internal Class Peripheral */
#define LL_MODULE_ENABLED /*!< LL Module Enable */
#define LL_CORTEX_MODULE_ENABLED /*!< Cortex Module Enable */
#define LL_FPLL_MODULE_ENABLED /*!< FPLL Module Enable */
#define LL_LVD_MODULE_ENABLED /*!< LVD Module Enable */
#define LL_DMA_MODULE_ENABLED /*!< DMA Module Enable */
#define LL_FLASH_MODULE_ENABLED /*!< FLASH Module Enable */
#define LL_DFLASH_MODULE_ENABLED /*!< DFLASH Module Enable */
#define LL_WWDG_MODULE_ENABLED /*!< WWDG Module Enable */
#define LL_IWDG_MODULE_ENABLED /*!< IWDG Module Enable */
#define LL_TMR_MODULE_ENABLED /*!< TMR Module Enable */
#define LL_IIR_MODULE_ENABLED /*!< IIR Module Enable */
/* Interface Class Peripheral */
#define LL_GPIO_MODULE_ENABLED /*!< GPIO Module Enable */
#define LL_UART_MODULE_ENABLED /*!< UART Module Enable */
#define LL_I2C_MODULE_ENABLED /*!< I2C Module Enable */
#define LL_CAN_MODULE_ENABLED /*!< CAN Module Enable */
#define LL_DALI_MODULE_ENABLED /*!< DALI Module Enable */
#define LL_USB_MODULE_ENABLED /*!< USB Module Enable */
/* Analog Class Peripheral */
#define LL_ADC_MODULE_ENABLED /*!< ADC Module Enable */
#define LL_DAC_MODULE_ENABLED /*!< DAC Module Enable */
#define LL_CMP_MODULE_ENABLED /*!< CMP Module Enable */
#define LL_ECU_MODULE_ENABLED /*!< ECU Module Enable */
#define LL_HRPWM_MODULE_ENABLED /*!< HRPWM Module Enable */
/**
* @}
*/
/** @defgroup CONFIG_LL_Oscillator_Values_Adaptation CONFIG LL Oscillator Values Adaptation
* @brief CONFIG LL Oscillator Values Adaptation
* @{
*/
/**
* @brief Adjust the value of External High Speed oscillator (HSE) used in your application.
* This value is used by the FPLL module to compute the system frequency
* (when HSE is used as system clock source, directly or through the PLL).
*/
#if !defined (HSE_VALUE)
#define HSE_VALUE 8000000U /*!< Value of the External oscillator in Hz */
#endif
/**
* @brief Internal High Speed oscillator (HSI) value.
* This value is used by the FPLL module to compute the system frequency
* (when HSI is used as system clock source, directly or through the PLL).
*/
#if !defined (HSI_VALUE)
#define HSI_VALUE 8000000U /*!< Value of the Internal oscillator in Hz */
#endif
/**
* @brief Internal Low Speed oscillator (LSI) value.
* Defines the value of the Internal Low Speed oscillator in Hz.
* @note The real value may vary depending on the variations in voltage and temperature.
*/
#if !defined (LSI_VALUE)
#define LSI_VALUE 32000U /*!< LSI Typical Value in Hz */
#endif
/**
* @}
*/
/** @defgroup CONFIG_LL_System_Configuration CONFIG LL System Configuration
* @brief CONFIG LL System Configuration
* @note This is the LL system configuration section
* @{
*/
#define TICK_INT_PRIORITY 0x07U /*!< tick interrupt priority, set to lowest */
#define USE_RTOS 0U /*!< Support for RTOS (Unsupported in current version) */
#define PREFETCH_ENABLE 1U /*!< Flash prefetch feature */
/**
* @}
*/
/**
* @}
*/
/* Includes ------------------------------------------------------------------*/
#include "stdbool.h"
#include "tae32f53xx_ll_sysctrl.h"
/* Internal Class Peripheral */
#ifdef LL_CORTEX_MODULE_ENABLED
#include "tae32f53xx_ll_cortex.h"
#endif
#ifdef LL_FPLL_MODULE_ENABLED
#include "tae32f53xx_ll_fpll.h"
#endif
#ifdef LL_LVD_MODULE_ENABLED
#include "tae32f53xx_ll_lvdctrl.h"
#endif
#ifdef LL_DMA_MODULE_ENABLED
#include "tae32f53xx_ll_dma.h"
#endif
#ifdef LL_FLASH_MODULE_ENABLED
#include "tae32f53xx_ll_flash.h"
#endif
#ifdef LL_DFLASH_MODULE_ENABLED
#include "tae32f53xx_ll_dflash.h"
#endif
#ifdef LL_WWDG_MODULE_ENABLED
#include "tae32f53xx_ll_wwdg.h"
#endif
#ifdef LL_IWDG_MODULE_ENABLED
#include "tae32f53xx_ll_iwdg.h"
#endif
#ifdef LL_TMR_MODULE_ENABLED
#include "tae32f53xx_ll_tmr.h"
#endif
#ifdef LL_IIR_MODULE_ENABLED
#include "tae32f53xx_ll_iir.h"
#endif
/* Interface Class Peripheral */
#ifdef LL_GPIO_MODULE_ENABLED
#include "tae32f53xx_ll_gpio.h"
#endif
#ifdef LL_UART_MODULE_ENABLED
#include "tae32f53xx_ll_uart.h"
#endif
#ifdef LL_I2C_MODULE_ENABLED
#include "tae32f53xx_ll_i2c.h"
#endif
#ifdef LL_CAN_MODULE_ENABLED
#include "tae32f53xx_ll_can.h"
#endif
#ifdef LL_DALI_MODULE_ENABLED
#include "tae32f53xx_ll_dali.h"
#endif
#ifdef LL_USB_MODULE_ENABLED
#include "tae32f53xx_ll_usb.h"
#endif
/* Analog Class Peripheral */
#ifdef LL_ADC_MODULE_ENABLED
#include "tae32f53xx_ll_adc.h"
#endif
#ifdef LL_DAC_MODULE_ENABLED
#include "tae32f53xx_ll_dac.h"
#endif
#ifdef LL_CMP_MODULE_ENABLED
#include "tae32f53xx_ll_cmp.h"
#endif
#ifdef LL_ECU_MODULE_ENABLED
#include "tae32f53xx_ll_ecu.h"
#endif
#ifdef LL_HRPWM_MODULE_ENABLED
#include "tae32f53xx_ll_hrpwm.h"
#endif
/* Exported types ------------------------------------------------------------*/
/* Exported macro ------------------------------------------------------------*/
/** @defgroup CONFIG_LL_Exported_Macros CONFIG LL Exported Macros
* @brief CONFIG LL Exported Macros
* @{
*/
/** @defgroup CONFIG_LL_Assert_Selection CONFIG LL Assert Selection
* @brief CONFIG LL Assert Selection
* @{
*/
/**
* @brief Uncomment the line below to expanse the "assert_param" macro in the LL drivers code
*/
//#define USE_FULL_ASSERT
#ifdef USE_FULL_ASSERT
void assert_failed(uint8_t *file, uint32_t line);
/**
* @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)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
#else
#define assert_param(expr) ((void)0U)
#endif /* USE_FULL_ASSERT */
/**
* @}
*/
/**
* @}
*/
/* Exported functions ------------------------------------------------------- */
/* Private types -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private constants ---------------------------------------------------------*/
/* Private macros ------------------------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/**
* @}
*/
/**
* @}
*/
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _TAE32F53XX_LL_CONF_H_ */
/************************* (C) COPYRIGHT Tai-Action *****END OF FILE***********/
|