Skip to content

Commit 3817d78

Browse files
committed
[L4] Update stm32l4xx_hal_conf.h in variant
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 182111a commit 3817d78

File tree

7 files changed

+401
-433
lines changed

7 files changed

+401
-433
lines changed

variants/DISCO_L475VG_IOT/stm32l4xx_hal_conf.h

Lines changed: 57 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,20 @@
88
******************************************************************************
99
* @attention
1010
*
11-
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
11+
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
12+
* All rights reserved.</center></h2>
1213
*
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
3418
*
3519
******************************************************************************
3620
*/
3721

3822
/* 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
4125

4226
#ifdef __cplusplus
4327
extern "C" {
@@ -64,21 +48,22 @@ extern "C" {
6448
#define HAL_DMA_MODULE_ENABLED
6549
/* #define HAL_DMA2D_MODULE_ENABLED */
6650
/* #define HAL_DSI_MODULE_ENABLED */
51+
/* #define HAL_EXTI_MODULE_ENABLED */
6752
/* #define HAL_FIREWALL_MODULE_ENABLED */
6853
#define HAL_FLASH_MODULE_ENABLED
6954
/* #define HAL_GFXMMU_MODULE_ENABLED */
55+
#define HAL_GPIO_MODULE_ENABLED
7056
/* #define HAL_HASH_MODULE_ENABLED */
7157
/* #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
7658
#define HAL_I2C_MODULE_ENABLED
7759
/* #define HAL_IRDA_MODULE_ENABLED */
7860
/* #define HAL_IWDG_MODULE_ENABLED */
7961
/* #define HAL_LCD_MODULE_ENABLED */
8062
/* #define HAL_LPTIM_MODULE_ENABLED */
8163
/* #define HAL_LTDC_MODULE_ENABLED */
64+
/* #define HAL_MMC_MODULE_ENABLED */
65+
/* #define HAL_NAND_MODULE_ENABLED */
66+
/* #define HAL_NOR_MODULE_ENABLED */
8267
/* #define HAL_OPAMP_MODULE_ENABLED */
8368
/* #define HAL_OSPI_MODULE_ENABLED */
8469
/* #define HAL_PCD_MODULE_ENABLED */
@@ -92,6 +77,7 @@ extern "C" {
9277
/* #define HAL_SMARTCARD_MODULE_ENABLED */
9378
/* #define HAL_SMBUS_MODULE_ENABLED */
9479
#define HAL_SPI_MODULE_ENABLED
80+
/* #define HAL_SRAM_MODULE_ENABLED */
9581
/* #define HAL_SWPMI_MODULE_ENABLED */
9682
#define HAL_TIM_MODULE_ENABLED
9783
/* #define HAL_TSC_MODULE_ENABLED */
@@ -228,6 +214,7 @@ in voltage and temperature.*/
228214
#define USE_HAL_IRDA_REGISTER_CALLBACKS 0U
229215
#define USE_HAL_LPTIM_REGISTER_CALLBACKS 0U
230216
#define USE_HAL_LTDC_REGISTER_CALLBACKS 0U
217+
#define USE_HAL_MMC_REGISTER_CALLBACKS 0U
231218
#define USE_HAL_OPAMP_REGISTER_CALLBACKS 0U
232219
#define USE_HAL_OSPI_REGISTER_CALLBACKS 0U
233220
#define USE_HAL_PCD_REGISTER_CALLBACKS 0U
@@ -320,6 +307,14 @@ in voltage and temperature.*/
320307
#include "stm32l4xx_hal_dsi.h"
321308
#endif /* HAL_DSI_MODULE_ENABLED */
322309

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+
323318
#ifdef HAL_FIREWALL_MODULE_ENABLED
324319
#include "stm32l4xx_hal_firewall.h"
325320
#endif /* HAL_FIREWALL_MODULE_ENABLED */
@@ -332,22 +327,18 @@ in voltage and temperature.*/
332327
#include "stm32l4xx_hal_hash.h"
333328
#endif /* HAL_HASH_MODULE_ENABLED */
334329

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 */
346333

347334
#ifdef HAL_I2C_MODULE_ENABLED
348335
#include "stm32l4xx_hal_i2c.h"
349336
#endif /* HAL_I2C_MODULE_ENABLED */
350337

338+
#ifdef HAL_IRDA_MODULE_ENABLED
339+
#include "stm32l4xx_hal_irda.h"
340+
#endif /* HAL_IRDA_MODULE_ENABLED */
341+
351342
#ifdef HAL_IWDG_MODULE_ENABLED
352343
#include "stm32l4xx_hal_iwdg.h"
353344
#endif /* HAL_IWDG_MODULE_ENABLED */
@@ -364,6 +355,18 @@ in voltage and temperature.*/
364355
#include "stm32l4xx_hal_ltdc.h"
365356
#endif /* HAL_LTDC_MODULE_ENABLED */
366357

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+
367370
#ifdef HAL_OPAMP_MODULE_ENABLED
368371
#include "stm32l4xx_hal_opamp.h"
369372
#endif /* HAL_OPAMP_MODULE_ENABLED */
@@ -372,6 +375,10 @@ in voltage and temperature.*/
372375
#include "stm32l4xx_hal_ospi.h"
373376
#endif /* HAL_OSPI_MODULE_ENABLED */
374377

378+
#ifdef HAL_PCD_MODULE_ENABLED
379+
#include "stm32l4xx_hal_pcd.h"
380+
#endif /* HAL_PCD_MODULE_ENABLED */
381+
375382
#ifdef HAL_PWR_MODULE_ENABLED
376383
#include "stm32l4xx_hal_pwr.h"
377384
#endif /* HAL_PWR_MODULE_ENABLED */
@@ -396,6 +403,10 @@ in voltage and temperature.*/
396403
#include "stm32l4xx_hal_sd.h"
397404
#endif /* HAL_SD_MODULE_ENABLED */
398405

406+
#ifdef HAL_SMARTCARD_MODULE_ENABLED
407+
#include "stm32l4xx_hal_smartcard.h"
408+
#endif /* HAL_SMARTCARD_MODULE_ENABLED */
409+
399410
#ifdef HAL_SMBUS_MODULE_ENABLED
400411
#include "stm32l4xx_hal_smbus.h"
401412
#endif /* HAL_SMBUS_MODULE_ENABLED */
@@ -404,6 +415,10 @@ in voltage and temperature.*/
404415
#include "stm32l4xx_hal_spi.h"
405416
#endif /* HAL_SPI_MODULE_ENABLED */
406417

418+
#ifdef HAL_SRAM_MODULE_ENABLED
419+
#include "stm32l4xx_hal_sram.h"
420+
#endif /* HAL_SRAM_MODULE_ENABLED */
421+
407422
#ifdef HAL_SWPMI_MODULE_ENABLED
408423
#include "stm32l4xx_hal_swpmi.h"
409424
#endif /* HAL_SWPMI_MODULE_ENABLED */
@@ -424,30 +439,10 @@ in voltage and temperature.*/
424439
#include "stm32l4xx_hal_usart.h"
425440
#endif /* HAL_USART_MODULE_ENABLED */
426441

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-
435442
#ifdef HAL_WWDG_MODULE_ENABLED
436443
#include "stm32l4xx_hal_wwdg.h"
437444
#endif /* HAL_WWDG_MODULE_ENABLED */
438445

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-
451446
/* Exported macro ------------------------------------------------------------*/
452447
#ifdef USE_FULL_ASSERT
453448
/**
@@ -458,9 +453,9 @@ in voltage and temperature.*/
458453
* If expr is true, it returns no value.
459454
* @retval None
460455
*/
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__))
462457
/* Exported functions ------------------------------------------------------- */
463-
void assert_failed(char *file, uint32_t line);
458+
void assert_failed(uint8_t *file, uint32_t line);
464459
#else
465460
#define assert_param(expr) ((void)0U)
466461
#endif /* USE_FULL_ASSERT */
@@ -469,7 +464,7 @@ void assert_failed(char *file, uint32_t line);
469464
}
470465
#endif
471466

472-
#endif /* __STM32L4xx_HAL_CONF_H */
467+
#endif /* STM32L4xx_HAL_CONF_H */
473468

474469

475470
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

0 commit comments

Comments
 (0)