Skip to content

Commit b72c556

Browse files
committed
stm32cube: update stm32l1 to cube version V1.10.5
Update Cube version for STM32L1xx series on https://github.com/STMicroelectronics from version v1.10.4 to version v1.10.5 Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent 93eb573 commit b72c556

File tree

78 files changed

+5525
-3151
lines changed

Some content is hidden

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

78 files changed

+5525
-3151
lines changed

stm32cube/stm32l1xx/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Origin:
66
http://www.st.com/en/embedded-software/stm32cubel1.html
77

88
Status:
9-
version v1.10.4
9+
version v1.10.5
1010

1111
Purpose:
1212
ST Microelectronics official MCU package for STM32L1 series.
@@ -23,7 +23,7 @@ URL:
2323
https://github.com/STMicroelectronics/STM32CubeL1
2424

2525
Commit:
26-
70d2e128f3869fbf6d76fca52a72bf381e0f09ed
26+
988c26cf46340f2e00bbc8089385a2b1c14f42b9
2727

2828
Maintained-by:
2929
External

stm32cube/stm32l1xx/drivers/include/Legacy/stm32_hal_legacy.h

Lines changed: 118 additions & 30 deletions
Large diffs are not rendered by default.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/**
2+
******************************************************************************
3+
* @file stm32_assert.h
4+
* @author MCD Application Team
5+
* @brief STM32 assert template file.
6+
* This file should be copied to the application folder and renamed
7+
* to stm32_assert.h.
8+
******************************************************************************
9+
* @attention
10+
*
11+
* Copyright (c) 2017 STMicroelectronics.
12+
* All rights reserved.
13+
*
14+
* This software is licensed under terms that can be found in the LICENSE file
15+
* in the root directory of this software component.
16+
* If no LICENSE file comes with this software, it is provided AS-IS.
17+
*
18+
******************************************************************************
19+
*/
20+
21+
/* Define to prevent recursive inclusion -------------------------------------*/
22+
#ifndef __STM32_ASSERT_H
23+
#define __STM32_ASSERT_H
24+
25+
#ifdef __cplusplus
26+
extern "C" {
27+
#endif
28+
29+
/* Exported types ------------------------------------------------------------*/
30+
/* Exported constants --------------------------------------------------------*/
31+
/* Includes ------------------------------------------------------------------*/
32+
/* Exported macro ------------------------------------------------------------*/
33+
#ifdef USE_FULL_ASSERT
34+
/**
35+
* @brief The assert_param macro is used for function's parameters check.
36+
* @param expr If expr is false, it calls assert_failed function
37+
* which reports the name of the source file and the source
38+
* line number of the call that failed.
39+
* If expr is true, it returns no value.
40+
* @retval None
41+
*/
42+
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
43+
/* Exported functions ------------------------------------------------------- */
44+
void assert_failed(uint8_t* file, uint32_t line);
45+
#else
46+
#define assert_param(expr) ((void)0U)
47+
#endif /* USE_FULL_ASSERT */
48+
49+
#ifdef __cplusplus
50+
}
51+
#endif
52+
53+
#endif /* __STM32_ASSERT_H */

stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_cortex.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,8 @@ uint32_t HAL_SYSTICK_Config(uint32_t TicksNumb);
399399
#if (__MPU_PRESENT == 1)
400400
void HAL_MPU_Enable(uint32_t MPU_Control);
401401
void HAL_MPU_Disable(void);
402+
void HAL_MPU_EnableRegion(uint32_t RegionNumber);
403+
void HAL_MPU_DisableRegion(uint32_t RegionNumber);
402404
void HAL_MPU_ConfigRegion(MPU_Region_InitTypeDef *MPU_Init);
403405
#endif /* __MPU_PRESENT */
404406
uint32_t HAL_NVIC_GetPriorityGrouping(void);
@@ -432,4 +434,3 @@ void HAL_SYSTICK_Callback(void);
432434

433435
#endif /* __STM32L1xx_HAL_CORTEX_H */
434436

435-

stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_i2s.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ void HAL_I2S_ErrorCallback(I2S_HandleTypeDef *hi2s);
457457
* @{
458458
*/
459459
/* Peripheral Control and State functions ************************************/
460-
HAL_I2S_StateTypeDef HAL_I2S_GetState(I2S_HandleTypeDef *hi2s);
461-
uint32_t HAL_I2S_GetError(I2S_HandleTypeDef *hi2s);
460+
HAL_I2S_StateTypeDef HAL_I2S_GetState(const I2S_HandleTypeDef *hi2s);
461+
uint32_t HAL_I2S_GetError(const I2S_HandleTypeDef *hi2s);
462462
/**
463463
* @}
464464
*/

stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_nor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ HAL_StatusTypeDef HAL_NOR_WriteOperation_Disable(NOR_HandleTypeDef *hnor);
234234
*/
235235

236236
/* NOR State functions ********************************************************/
237-
HAL_NOR_StateTypeDef HAL_NOR_GetState(NOR_HandleTypeDef *hnor);
237+
HAL_NOR_StateTypeDef HAL_NOR_GetState(const NOR_HandleTypeDef *hnor);
238238
HAL_NOR_StatusTypeDef HAL_NOR_GetStatus(NOR_HandleTypeDef *hnor, uint32_t Address, uint32_t Timeout);
239239
/**
240240
* @}

stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_pcd.h

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -801,20 +801,17 @@ PCD_StateTypeDef HAL_PCD_GetState(PCD_HandleTypeDef const *hpcd);
801801
\
802802
*(pdwReg) &= 0x3FFU; \
803803
\
804-
if ((wCount) > 62U) \
804+
if ((wCount) == 0U) \
805805
{ \
806-
PCD_CALC_BLK32((pdwReg), (wCount), wNBlocks); \
806+
*(pdwReg) |= USB_CNTRX_BLSIZE; \
807+
} \
808+
else if ((wCount) <= 62U) \
809+
{ \
810+
PCD_CALC_BLK2((pdwReg), (wCount), wNBlocks); \
807811
} \
808812
else \
809813
{ \
810-
if ((wCount) == 0U) \
811-
{ \
812-
*(pdwReg) |= USB_CNTRX_BLSIZE; \
813-
} \
814-
else \
815-
{ \
816-
PCD_CALC_BLK2((pdwReg), (wCount), wNBlocks); \
817-
} \
814+
PCD_CALC_BLK32((pdwReg), (wCount), wNBlocks); \
818815
} \
819816
} while(0) /* PCD_SET_EP_CNT_RX_REG */
820817

stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_pcd_ex.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ extern "C" {
4747
*/
4848

4949

50-
5150
HAL_StatusTypeDef HAL_PCDEx_PMAConfig(PCD_HandleTypeDef *hpcd, uint16_t ep_addr,
5251
uint16_t ep_kind, uint32_t pmaadress);
5352

stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_rcc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ typedef struct
18451845
/* Initialization and de-initialization functions ******************************/
18461846
HAL_StatusTypeDef HAL_RCC_DeInit(void);
18471847
HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct);
1848-
HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
1848+
HAL_StatusTypeDef HAL_RCC_ClockConfig(const RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency);
18491849

18501850
/**
18511851
* @}

stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_rtc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ HAL_RTCStateTypeDef HAL_RTC_GetState(RTC_HandleTypeDef *hrtc);
810810

811811
#define RTC_TIMEOUT_VALUE 1000U
812812

813-
#define RTC_EXTI_LINE_ALARM_EVENT EXTI_IMR_MR17 /*!< External interrupt line 17 Connected to the RTC Alarm event */
813+
#define RTC_EXTI_LINE_ALARM_EVENT EXTI_IMR_MR17 /*!< External interrupt line 17 connected to the RTC Alarm event */
814814
/**
815815
* @}
816816
*/

0 commit comments

Comments
 (0)