8
8
******************************************************************************
9
9
* @attention
10
10
*
11
- * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
11
+ * <h2><center>© Copyright (c) 2017 STMicroelectronics.
12
+ * All rights reserved.</center></h2>
12
13
*
13
- * Redistribution and use in source and binary forms, with or without modification,
14
- * are permitted provided that the following conditions are met:
15
- * 1. Redistributions of source code must retain the above copyright notice,
16
- * this list of conditions and the following disclaimer.
17
- * 2. Redistributions in binary form must reproduce the above copyright notice,
18
- * this list of conditions and the following disclaimer in the documentation
19
- * and/or other materials provided with the distribution.
20
- * 3. Neither the name of STMicroelectronics nor the names of its contributors
21
- * may be used to endorse or promote products derived from this software
22
- * without specific prior written permission.
23
- *
24
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
27
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
28
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
31
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
32
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
+ * This software component is licensed by ST under BSD 3-Clause license,
15
+ * the "License"; You may not use this file except in compliance with the
16
+ * License. You may obtain a copy of the License at:
17
+ * opensource.org/licenses/BSD-3-Clause
34
18
*
35
19
******************************************************************************
36
20
*/
37
21
38
22
/* Define to prevent recursive inclusion -------------------------------------*/
39
- #ifndef __STM32L4xx_HAL_CONF_H
40
- #define __STM32L4xx_HAL_CONF_H
23
+ #ifndef STM32L4xx_HAL_CONF_H
24
+ #define STM32L4xx_HAL_CONF_H
41
25
42
26
#ifdef __cplusplus
43
27
extern "C" {
@@ -64,21 +48,22 @@ extern "C" {
64
48
#define HAL_DMA_MODULE_ENABLED
65
49
/* #define HAL_DMA2D_MODULE_ENABLED */
66
50
/* #define HAL_DSI_MODULE_ENABLED */
51
+ /* #define HAL_EXTI_MODULE_ENABLED */
67
52
/* #define HAL_FIREWALL_MODULE_ENABLED */
68
53
#define HAL_FLASH_MODULE_ENABLED
69
54
/* #define HAL_GFXMMU_MODULE_ENABLED */
55
+ #define HAL_GPIO_MODULE_ENABLED
70
56
/* #define HAL_HASH_MODULE_ENABLED */
71
57
/* #define HAL_HCD_MODULE_ENABLED */
72
- /* #define HAL_NAND_MODULE_ENABLED */
73
- /* #define HAL_NOR_MODULE_ENABLED */
74
- /* #define HAL_SRAM_MODULE_ENABLED */
75
- #define HAL_GPIO_MODULE_ENABLED
76
58
#define HAL_I2C_MODULE_ENABLED
77
59
/* #define HAL_IRDA_MODULE_ENABLED */
78
60
/* #define HAL_IWDG_MODULE_ENABLED */
79
61
/* #define HAL_LCD_MODULE_ENABLED */
80
62
/* #define HAL_LPTIM_MODULE_ENABLED */
81
63
/* #define HAL_LTDC_MODULE_ENABLED */
64
+ /* #define HAL_MMC_MODULE_ENABLED */
65
+ /* #define HAL_NAND_MODULE_ENABLED */
66
+ /* #define HAL_NOR_MODULE_ENABLED */
82
67
/* #define HAL_OPAMP_MODULE_ENABLED */
83
68
/* #define HAL_OSPI_MODULE_ENABLED */
84
69
/* #define HAL_PCD_MODULE_ENABLED */
@@ -92,6 +77,7 @@ extern "C" {
92
77
/* #define HAL_SMARTCARD_MODULE_ENABLED */
93
78
/* #define HAL_SMBUS_MODULE_ENABLED */
94
79
#define HAL_SPI_MODULE_ENABLED
80
+ /* #define HAL_SRAM_MODULE_ENABLED */
95
81
/* #define HAL_SWPMI_MODULE_ENABLED */
96
82
#define HAL_TIM_MODULE_ENABLED
97
83
/* #define HAL_TSC_MODULE_ENABLED */
@@ -228,6 +214,7 @@ in voltage and temperature.*/
228
214
#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U
229
215
#define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U
230
216
#define USE_HAL_LTDC_REGISTER_CALLBACKS 0U
217
+ #define USE_HAL_MMC_REGISTER_CALLBACKS 0U
231
218
#define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U
232
219
#define USE_HAL_OSPI_REGISTER_CALLBACKS 0U
233
220
#define USE_HAL_PCD_REGISTER_CALLBACKS 0U
@@ -320,6 +307,14 @@ in voltage and temperature.*/
320
307
#include "stm32l4xx_hal_dsi.h"
321
308
#endif /* HAL_DSI_MODULE_ENABLED */
322
309
310
+ #ifdef HAL_EXTI_MODULE_ENABLED
311
+ #include "stm32l4xx_hal_exti.h"
312
+ #endif /* HAL_EXTI_MODULE_ENABLED */
313
+
314
+ #ifdef HAL_GFXMMU_MODULE_ENABLED
315
+ #include "stm32l4xx_hal_gfxmmu.h"
316
+ #endif /* HAL_GFXMMU_MODULE_ENABLED */
317
+
323
318
#ifdef HAL_FIREWALL_MODULE_ENABLED
324
319
#include "stm32l4xx_hal_firewall.h"
325
320
#endif /* HAL_FIREWALL_MODULE_ENABLED */
@@ -332,22 +327,18 @@ in voltage and temperature.*/
332
327
#include "stm32l4xx_hal_hash.h"
333
328
#endif /* HAL_HASH_MODULE_ENABLED */
334
329
335
- #ifdef HAL_SRAM_MODULE_ENABLED
336
- #include "stm32l4xx_hal_sram.h"
337
- #endif /* HAL_SRAM_MODULE_ENABLED */
338
-
339
- #ifdef HAL_NOR_MODULE_ENABLED
340
- #include "stm32l4xx_hal_nor.h"
341
- #endif /* HAL_NOR_MODULE_ENABLED */
342
-
343
- #ifdef HAL_NAND_MODULE_ENABLED
344
- #include "stm32l4xx_hal_nand.h"
345
- #endif /* HAL_NAND_MODULE_ENABLED */
330
+ #ifdef HAL_HCD_MODULE_ENABLED
331
+ #include "stm32l4xx_hal_hcd.h"
332
+ #endif /* HAL_HCD_MODULE_ENABLED */
346
333
347
334
#ifdef HAL_I2C_MODULE_ENABLED
348
335
#include "stm32l4xx_hal_i2c.h"
349
336
#endif /* HAL_I2C_MODULE_ENABLED */
350
337
338
+ #ifdef HAL_IRDA_MODULE_ENABLED
339
+ #include "stm32l4xx_hal_irda.h"
340
+ #endif /* HAL_IRDA_MODULE_ENABLED */
341
+
351
342
#ifdef HAL_IWDG_MODULE_ENABLED
352
343
#include "stm32l4xx_hal_iwdg.h"
353
344
#endif /* HAL_IWDG_MODULE_ENABLED */
@@ -364,6 +355,18 @@ in voltage and temperature.*/
364
355
#include "stm32l4xx_hal_ltdc.h"
365
356
#endif /* HAL_LTDC_MODULE_ENABLED */
366
357
358
+ #ifdef HAL_MMC_MODULE_ENABLED
359
+ #include "stm32l4xx_hal_mmc.h"
360
+ #endif /* HAL_MMC_MODULE_ENABLED */
361
+
362
+ #ifdef HAL_NAND_MODULE_ENABLED
363
+ #include "stm32l4xx_hal_nand.h"
364
+ #endif /* HAL_NAND_MODULE_ENABLED */
365
+
366
+ #ifdef HAL_NOR_MODULE_ENABLED
367
+ #include "stm32l4xx_hal_nor.h"
368
+ #endif /* HAL_NOR_MODULE_ENABLED */
369
+
367
370
#ifdef HAL_OPAMP_MODULE_ENABLED
368
371
#include "stm32l4xx_hal_opamp.h"
369
372
#endif /* HAL_OPAMP_MODULE_ENABLED */
@@ -372,6 +375,10 @@ in voltage and temperature.*/
372
375
#include "stm32l4xx_hal_ospi.h"
373
376
#endif /* HAL_OSPI_MODULE_ENABLED */
374
377
378
+ #ifdef HAL_PCD_MODULE_ENABLED
379
+ #include "stm32l4xx_hal_pcd.h"
380
+ #endif /* HAL_PCD_MODULE_ENABLED */
381
+
375
382
#ifdef HAL_PWR_MODULE_ENABLED
376
383
#include "stm32l4xx_hal_pwr.h"
377
384
#endif /* HAL_PWR_MODULE_ENABLED */
@@ -396,6 +403,10 @@ in voltage and temperature.*/
396
403
#include "stm32l4xx_hal_sd.h"
397
404
#endif /* HAL_SD_MODULE_ENABLED */
398
405
406
+ #ifdef HAL_SMARTCARD_MODULE_ENABLED
407
+ #include "stm32l4xx_hal_smartcard.h"
408
+ #endif /* HAL_SMARTCARD_MODULE_ENABLED */
409
+
399
410
#ifdef HAL_SMBUS_MODULE_ENABLED
400
411
#include "stm32l4xx_hal_smbus.h"
401
412
#endif /* HAL_SMBUS_MODULE_ENABLED */
@@ -404,6 +415,10 @@ in voltage and temperature.*/
404
415
#include "stm32l4xx_hal_spi.h"
405
416
#endif /* HAL_SPI_MODULE_ENABLED */
406
417
418
+ #ifdef HAL_SRAM_MODULE_ENABLED
419
+ #include "stm32l4xx_hal_sram.h"
420
+ #endif /* HAL_SRAM_MODULE_ENABLED */
421
+
407
422
#ifdef HAL_SWPMI_MODULE_ENABLED
408
423
#include "stm32l4xx_hal_swpmi.h"
409
424
#endif /* HAL_SWPMI_MODULE_ENABLED */
@@ -424,30 +439,10 @@ in voltage and temperature.*/
424
439
#include "stm32l4xx_hal_usart.h"
425
440
#endif /* HAL_USART_MODULE_ENABLED */
426
441
427
- #ifdef HAL_IRDA_MODULE_ENABLED
428
- #include "stm32l4xx_hal_irda.h"
429
- #endif /* HAL_IRDA_MODULE_ENABLED */
430
-
431
- #ifdef HAL_SMARTCARD_MODULE_ENABLED
432
- #include "stm32l4xx_hal_smartcard.h"
433
- #endif /* HAL_SMARTCARD_MODULE_ENABLED */
434
-
435
442
#ifdef HAL_WWDG_MODULE_ENABLED
436
443
#include "stm32l4xx_hal_wwdg.h"
437
444
#endif /* HAL_WWDG_MODULE_ENABLED */
438
445
439
- #ifdef HAL_PCD_MODULE_ENABLED
440
- #include "stm32l4xx_hal_pcd.h"
441
- #endif /* HAL_PCD_MODULE_ENABLED */
442
-
443
- #ifdef HAL_HCD_MODULE_ENABLED
444
- #include "stm32l4xx_hal_hcd.h"
445
- #endif /* HAL_HCD_MODULE_ENABLED */
446
-
447
- #ifdef HAL_GFXMMU_MODULE_ENABLED
448
- #include "stm32l4xx_hal_gfxmmu.h"
449
- #endif /* HAL_GFXMMU_MODULE_ENABLED */
450
-
451
446
/* Exported macro ------------------------------------------------------------*/
452
447
#ifdef USE_FULL_ASSERT
453
448
/**
@@ -458,9 +453,9 @@ in voltage and temperature.*/
458
453
* If expr is true, it returns no value.
459
454
* @retval None
460
455
*/
461
- #define assert_param (expr ) ((expr) ? (void)0U : assert_failed((char *)__FILE__, __LINE__))
456
+ #define assert_param (expr ) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
462
457
/* Exported functions ------------------------------------------------------- */
463
- void assert_failed (char * file , uint32_t line );
458
+ void assert_failed (uint8_t * file , uint32_t line );
464
459
#else
465
460
#define assert_param (expr ) ((void)0U)
466
461
#endif /* USE_FULL_ASSERT */
@@ -469,7 +464,7 @@ void assert_failed(char *file, uint32_t line);
469
464
}
470
465
#endif
471
466
472
- #endif /* __STM32L4xx_HAL_CONF_H */
467
+ #endif /* STM32L4xx_HAL_CONF_H */
473
468
474
469
475
470
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
0 commit comments