Skip to content

Commit f902853

Browse files
djiatsaf-sterwango
authored andcommitted
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 ada4ca1 commit f902853

File tree

77 files changed

+5472
-3192
lines changed

Some content is hidden

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

77 files changed

+5472
-3192
lines changed

stm32cube/stm32l1xx/README

Lines changed: 2 additions & 43 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
@@ -36,47 +36,6 @@ License Link:
3636

3737
Patch List:
3838

39-
*ext/hal/st/stm32cube/stm32l1xx: rename SVC_IRQn -> SVCall_IRQn
40-
41-
SVCall_IRQn is used as enum value for SV Call Interrupt for Cortex-M
42-
based SoCs for which CPU_CORTEX_M_HAS_BASEPRI=y. However stm32cube
43-
for stm32l1xx uses SVC_IRQn enum value for this purpose.
44-
This leads to this error:
45-
46-
arch/arm/include/cortex_m/exc.h:101:19: error: 'SVCall_IRQn'
47-
undeclared (first use in this function); did you mean 'SVC_IRQn'?
48-
49-
NVIC_SetPriority(SVCall_IRQn, _EXC_SVC_PRIO);
50-
^~~~~~~~~~~
51-
SVC_IRQn
52-
53-
NB: ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xb.h file was already
54-
fixed in 9f8260457b86 ('ext: hal: st: stm32cube: Add HAL for
55-
the STM32L1x series').
56-
Impacted files:
57-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l100xb.h
58-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l100xba.h
59-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l100xc.h
60-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xba.h
61-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xc.h
62-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xca.h
63-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xd.h
64-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xdx.h
65-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l151xe.h
66-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xb.h
67-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xba.h
68-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xc.h
69-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xca.h
70-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xd.h
71-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xdx.h
72-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l152xe.h
73-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xc.h
74-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xca.h
75-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xd.h
76-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xdx.h
77-
ext/hal/st/stm32cube/stm32l1xx/soc/stm32l162xe.h
78-
ST Bug tracker ID: 66029
79-
8039
*Disable i2c HAL
8140
Due to conflict with zephyr i2c.h (I2C_SPEED_STANDARD and I2C_SPEED_FAST
8241
redefinition), deactivate STM32Cube I2C HAL. This raises no issue since

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

Lines changed: 118 additions & 30 deletions
Large diffs are not rendered by default.

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

stm32cube/stm32l1xx/drivers/include/stm32l1xx_hal_rtc_ex.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,10 @@ typedef struct
695695
* @param __FLAG__ specifies the RTC Tamper flag to be checked.
696696
* This parameter can be:
697697
* @arg RTC_FLAG_TAMP1F: Tamper 1 interrupt flag
698-
* @arg RTC_FLAG_TAMP2F: Tamper 2 interrupt flag
699-
* @arg RTC_FLAG_TAMP3F: Tamper 3 interrupt flag
700-
* @note RTC_FLAG_TAMP2F is not applicable to all devices.
701-
* @note RTC_FLAG_TAMP3F is not applicable to all devices.
698+
* @arg RTC_FLAG_TAMP2F: Tamper 2 interrupt flag (*)
699+
* @arg RTC_FLAG_TAMP3F: Tamper 3 interrupt flag (*)
700+
*
701+
* (*) value not applicable to all devices.
702702
* @retval None
703703
*/
704704
#define __HAL_RTC_TAMPER_GET_FLAG(__HANDLE__, __FLAG__) (((((__HANDLE__)->Instance->ISR) & (__FLAG__)) != 0U)? 1U : 0U)
@@ -709,10 +709,10 @@ typedef struct
709709
* @param __FLAG__ specifies the RTC Tamper Flag to clear.
710710
* This parameter can be:
711711
* @arg RTC_FLAG_TAMP1F: Tamper 1 interrupt flag
712-
* @arg RTC_FLAG_TAMP2F: Tamper 2 interrupt flag
713-
* @arg RTC_FLAG_TAMP3F: Tamper 3 interrupt flag
714-
* @note RTC_FLAG_TAMP2F is not applicable to all devices.
715-
* @note RTC_FLAG_TAMP3F is not applicable to all devices.
712+
* @arg RTC_FLAG_TAMP2F: Tamper 2 interrupt flag (*)
713+
* @arg RTC_FLAG_TAMP3F: Tamper 3 interrupt flag (*)
714+
*
715+
* (*) value not applicable to all devices.
716716
* @retval None
717717
*/
718718
#define __HAL_RTC_TAMPER_CLEAR_FLAG(__HANDLE__, __FLAG__) ((__HANDLE__)->Instance->ISR) = (~((__FLAG__) | RTC_ISR_INIT)|((__HANDLE__)->Instance->ISR & RTC_ISR_INIT))
@@ -741,13 +741,13 @@ typedef struct
741741
* @brief Enable event on the RTC Tamper and Timestamp associated EXTI line.
742742
* @retval None.
743743
*/
744-
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
744+
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_ENABLE_EVENT() (EXTI->EMR |= RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
745745

746746
/**
747747
* @brief Disable event on the RTC Tamper and Timestamp associated EXTI line.
748748
* @retval None.
749749
*/
750-
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
750+
#define __HAL_RTC_TAMPER_TIMESTAMP_EXTI_DISABLE_EVENT() (EXTI->EMR &= ~RTC_EXTI_LINE_TAMPER_TIMESTAMP_EVENT)
751751

752752
/**
753753
* @brief Enable falling edge trigger on the RTC Tamper and Timestamp associated EXTI line.
@@ -970,7 +970,7 @@ HAL_StatusTypeDef HAL_RTCEx_DisableBypassShadow(RTC_HandleTypeDef *hrtc);
970970
* @{
971971
*/
972972
/* Extended RTC features functions *******************************************/
973-
void HAL_RTCEx_AlarmBEventCallback(RTC_HandleTypeDef *hrtc);
973+
void HAL_RTCEx_AlarmBEventCallback(RTC_HandleTypeDef *hrtc);
974974
HAL_StatusTypeDef HAL_RTCEx_PollForAlarmBEvent(RTC_HandleTypeDef *hrtc, uint32_t Timeout);
975975
/**
976976
* @}

0 commit comments

Comments
 (0)