Skip to content

Commit 79d2e78

Browse files
committed
[L5] Update STM32L5xx HAL Drivers to v1.0.4
Included in STM32CubeL5 FW v1.4.0 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 01a1aa3 commit 79d2e78

File tree

108 files changed

+8601
-4821
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+8601
-4821
lines changed

system/Drivers/STM32L5xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h

Lines changed: 71 additions & 101 deletions
Large diffs are not rendered by default.

system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32_assert_template.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#define STM32_ASSERT_H
2525

2626
#ifdef __cplusplus
27-
extern "C" {
27+
extern "C" {
2828
#endif
2929

3030
/* Exported types ------------------------------------------------------------*/

system/Drivers/STM32L5xx_HAL_Driver/Inc/stm32l5xx_hal.h

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define STM32L5xx_HAL_H
2424

2525
#ifdef __cplusplus
26-
extern "C" {
26+
extern "C" {
2727
#endif
2828

2929
/* Includes ------------------------------------------------------------------*/
@@ -204,8 +204,8 @@ typedef enum
204204
#define SYSCFG_FASTMODEPLUS_PB9 SYSCFG_CFGR1_I2C_PB9_FMP /*!< Enable Fast-mode Plus on PB9 */
205205

206206
/**
207-
* @}
208-
*/
207+
* @}
208+
*/
209209

210210
/** @defgroup SYSCFG_Lock_items SYSCFG Lock items
211211
* @brief SYSCFG items to set lock on
@@ -395,15 +395,15 @@ typedef enum
395395
*/
396396
#define __HAL_SYSCFG_SRAM2_WRP_0_31_ENABLE(__SRAM2WRP__) do {assert_param(IS_SYSCFG_SRAM2WRP_PAGE((__SRAM2WRP__)));\
397397
SET_BIT(SYSCFG->SWPR, (__SRAM2WRP__));\
398-
}while(0)
398+
}while(0)
399399

400400
/** @brief SRAM2 page 32 to 63 write protection enable macro
401401
* @param __SRAM2WRP__ This parameter can be a combination of values of @ref SYSCFG_SRAM2WRP_32_63
402402
* @note Write protection can only be disabled by a system reset
403403
*/
404404
#define __HAL_SYSCFG_SRAM2_WRP_32_63_ENABLE(__SRAM2WRP__) do {assert_param(IS_SYSCFG_SRAM2WRP_PAGE((__SRAM2WRP__)));\
405405
SET_BIT(SYSCFG->SWPR2, (__SRAM2WRP__));\
406-
}while(0)
406+
}while(0)
407407

408408
/** @brief SRAM2 page write protection unlock prior to erase
409409
* @note Writing a wrong key reactivates the write protection
@@ -422,11 +422,11 @@ typedef enum
422422
*/
423423
#define __HAL_SYSCFG_FPU_INTERRUPT_ENABLE(__INTERRUPT__) do {assert_param(IS_SYSCFG_FPU_INTERRUPT((__INTERRUPT__)));\
424424
SET_BIT(SYSCFG->FPUIMR, (__INTERRUPT__));\
425-
}while(0)
425+
}while(0)
426426

427427
#define __HAL_SYSCFG_FPU_INTERRUPT_DISABLE(__INTERRUPT__) do {assert_param(IS_SYSCFG_FPU_INTERRUPT((__INTERRUPT__)));\
428428
CLEAR_BIT(SYSCFG->FPUIMR, (__INTERRUPT__));\
429-
}while(0)
429+
}while(0)
430430

431431
/** @brief SYSCFG Break ECC lock.
432432
* Enable and lock the connection of Flash ECC error connection to TIM1/8/15/16/17 Break input.
@@ -459,7 +459,8 @@ typedef enum
459459
* @arg @ref SYSCFG_FLAG_SRAM2_BUSY SRAM2 Erase Ongoing
460460
* @retval The new state of __FLAG__ (TRUE or FALSE).
461461
*/
462-
#define __HAL_SYSCFG_GET_FLAG(__FLAG__) ((((((__FLAG__) == SYSCFG_SCSR_SRAM2BSY)? SYSCFG->SCSR : SYSCFG->CFGR2) & (__FLAG__))!= 0U) ? 1U : 0U)
462+
#define __HAL_SYSCFG_GET_FLAG(__FLAG__) ((((((__FLAG__) == SYSCFG_SCSR_SRAM2BSY)? SYSCFG->SCSR : SYSCFG->CFGR2)\
463+
& (__FLAG__))!= 0U) ? 1U : 0U)
463464

464465
/** @brief Set the SPF bit to clear the SRAM Parity Error Flag.
465466
*/
@@ -587,7 +588,7 @@ HAL_StatusTypeDef HAL_Init(void);
587588
HAL_StatusTypeDef HAL_DeInit(void);
588589
void HAL_MspInit(void);
589590
void HAL_MspDeInit(void);
590-
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority);
591+
HAL_StatusTypeDef HAL_InitTick(uint32_t TickPriority);
591592

592593
/**
593594
* @}

0 commit comments

Comments
 (0)