Skip to content

Commit c8a8b97

Browse files
authored
Merge pull request #5129 from liukangcc/hal
[update] the stm32_hal library to the latest version.
2 parents bacbf28 + 698569c commit c8a8b97

File tree

3,195 files changed

+502232
-232862
lines changed

Some content is hidden

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

3,195 files changed

+502232
-232862
lines changed

bsp/stm32/libraries/.ignore_format.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44

55
dir_path:
66
- STM32F0xx_HAL
7+
- STM32F1xx_HAL
78
- STM32F2xx_HAL
9+
- STM32F3xx_HAL
810
- STM32F4xx_HAL
911
- STM32F7xx_HAL
1012
- STM32G0xx_HAL
1113
- STM32G4xx_HAL
14+
- STM32H7xx_HAL
15+
- STM32L0xx_HAL
16+
- STM32L1xx_HAL
1217
- STM32L4xx_HAL
1318
- STM32MPxx_HAL
1419
- STM32WBxx_HAL
15-
- STM32H7xx_HAL
20+
- STM32WLxx_HAL

bsp/stm32/libraries/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x6.h

+14-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
extern "C" {
4141
#endif /* __cplusplus */
4242

43-
/** @addtogroup Configuration_section_for_CMSIS
43+
/** @addtogroup Configuration_section_for_CMSIS
4444
* @{
4545
*/
4646
/**
@@ -64,7 +64,7 @@
6464
* in @ref Library_configuration_section
6565
*/
6666

67-
/*!< Interrupt Number Definition */
67+
/*!< Interrupt Number Definition */
6868
typedef enum
6969
{
7070
/****** Cortex-M0 Processor Exceptions Numbers **************************************************************/
@@ -525,7 +525,16 @@ typedef struct
525525
* @{
526526
*/
527527

528-
/** @addtogroup Peripheral_Registers_Bits_Definition
528+
/** @addtogroup Hardware_Constant_Definition
529+
* @{
530+
*/
531+
#define LSI_STARTUP_TIME 85U /*!< LSI Maximum startup time in us */
532+
533+
/**
534+
* @}
535+
*/
536+
537+
/** @addtogroup Peripheral_Registers_Bits_Definition
529538
* @{
530539
*/
531540

@@ -2262,7 +2271,7 @@ typedef struct
22622271
#define GPIO_AFRL_AFSEL7_Msk (0xFUL << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
22632272
#define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
22642273

2265-
/* Legacy aliases */
2274+
/* Legacy aliases */
22662275
#define GPIO_AFRL_AFRL0_Pos GPIO_AFRL_AFSEL0_Pos
22672276
#define GPIO_AFRL_AFRL0_Msk GPIO_AFRL_AFSEL0_Msk
22682277
#define GPIO_AFRL_AFRL0 GPIO_AFRL_AFSEL0
@@ -5352,7 +5361,7 @@ typedef struct
53525361
* @}
53535362
*/
53545363

5355-
/**
5364+
/**
53565365
* @}
53575366
*/
53585367

bsp/stm32/libraries/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Include/stm32f030x8.h

+14-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
extern "C" {
4141
#endif /* __cplusplus */
4242

43-
/** @addtogroup Configuration_section_for_CMSIS
43+
/** @addtogroup Configuration_section_for_CMSIS
4444
* @{
4545
*/
4646
/**
@@ -64,7 +64,7 @@
6464
* in @ref Library_configuration_section
6565
*/
6666

67-
/*!< Interrupt Number Definition */
67+
/*!< Interrupt Number Definition */
6868
typedef enum
6969
{
7070
/****** Cortex-M0 Processor Exceptions Numbers **************************************************************/
@@ -541,7 +541,16 @@ typedef struct
541541
* @{
542542
*/
543543

544-
/** @addtogroup Peripheral_Registers_Bits_Definition
544+
/** @addtogroup Hardware_Constant_Definition
545+
* @{
546+
*/
547+
#define LSI_STARTUP_TIME 85U /*!< LSI Maximum startup time in us */
548+
549+
/**
550+
* @}
551+
*/
552+
553+
/** @addtogroup Peripheral_Registers_Bits_Definition
545554
* @{
546555
*/
547556

@@ -2292,7 +2301,7 @@ typedef struct
22922301
#define GPIO_AFRL_AFSEL7_Msk (0xFUL << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
22932302
#define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
22942303

2295-
/* Legacy aliases */
2304+
/* Legacy aliases */
22962305
#define GPIO_AFRL_AFRL0_Pos GPIO_AFRL_AFSEL0_Pos
22972306
#define GPIO_AFRL_AFRL0_Msk GPIO_AFRL_AFSEL0_Msk
22982307
#define GPIO_AFRL_AFRL0 GPIO_AFRL_AFSEL0
@@ -5419,7 +5428,7 @@ typedef struct
54195428
* @}
54205429
*/
54215430

5422-
/**
5431+
/**
54235432
* @}
54245433
*/
54255434

bsp/stm32/libraries/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Include/stm32f030xc.h

+16-7
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
extern "C" {
4141
#endif /* __cplusplus */
4242

43-
/** @addtogroup Configuration_section_for_CMSIS
43+
/** @addtogroup Configuration_section_for_CMSIS
4444
* @{
4545
*/
4646
/**
@@ -64,7 +64,7 @@
6464
* in @ref Library_configuration_section
6565
*/
6666

67-
/*!< Interrupt Number Definition */
67+
/*!< Interrupt Number Definition */
6868
typedef enum
6969
{
7070
/****** Cortex-M0 Processor Exceptions Numbers **************************************************************/
@@ -557,7 +557,16 @@ typedef struct
557557
* @{
558558
*/
559559

560-
/** @addtogroup Peripheral_Registers_Bits_Definition
560+
/** @addtogroup Hardware_Constant_Definition
561+
* @{
562+
*/
563+
#define LSI_STARTUP_TIME 85U /*!< LSI Maximum startup time in us */
564+
565+
/**
566+
* @}
567+
*/
568+
569+
/** @addtogroup Peripheral_Registers_Bits_Definition
561570
* @{
562571
*/
563572

@@ -2543,7 +2552,7 @@ typedef struct
25432552
#define GPIO_AFRL_AFSEL7_Msk (0xFUL << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
25442553
#define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
25452554

2546-
/* Legacy aliases */
2555+
/* Legacy aliases */
25472556
#define GPIO_AFRL_AFRL0_Pos GPIO_AFRL_AFSEL0_Pos
25482557
#define GPIO_AFRL_AFRL0_Msk GPIO_AFRL_AFSEL0_Msk
25492558
#define GPIO_AFRL_AFRL0 GPIO_AFRL_AFSEL0
@@ -3131,8 +3140,8 @@ typedef struct
31313140
#define RCC_CFGR_PPRE_DIV16_Msk (0x7UL << RCC_CFGR_PPRE_DIV16_Pos) /*!< 0x00000700 */
31323141
#define RCC_CFGR_PPRE_DIV16 RCC_CFGR_PPRE_DIV16_Msk /*!< HCLK divided by 16 */
31333142

3134-
#define RCC_CFGR_PLLSRC_Pos (15U)
3135-
#define RCC_CFGR_PLLSRC_Msk (0x3UL << RCC_CFGR_PLLSRC_Pos) /*!< 0x00018000 */
3143+
#define RCC_CFGR_PLLSRC_Pos (16U)
3144+
#define RCC_CFGR_PLLSRC_Msk (0x1UL << RCC_CFGR_PLLSRC_Pos) /*!< 0x00010000 */
31363145
#define RCC_CFGR_PLLSRC RCC_CFGR_PLLSRC_Msk /*!< PLL entry clock source */
31373146
#define RCC_CFGR_PLLSRC_HSI_DIV2 (0x00000000U) /*!< HSI clock divided by 2 selected as PLL entry clock source */
31383147
#define RCC_CFGR_PLLSRC_HSI_PREDIV (0x00008000U) /*!< HSI/PREDIV clock selected as PLL entry clock source */
@@ -5798,7 +5807,7 @@ typedef struct
57985807
* @}
57995808
*/
58005809

5801-
/**
5810+
/**
58025811
* @}
58035812
*/
58045813

bsp/stm32/libraries/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Include/stm32f031x6.h

+14-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
extern "C" {
4141
#endif /* __cplusplus */
4242

43-
/** @addtogroup Configuration_section_for_CMSIS
43+
/** @addtogroup Configuration_section_for_CMSIS
4444
* @{
4545
*/
4646
/**
@@ -64,7 +64,7 @@
6464
* in @ref Library_configuration_section
6565
*/
6666

67-
/*!< Interrupt Number Definition */
67+
/*!< Interrupt Number Definition */
6868
typedef enum
6969
{
7070
/****** Cortex-M0 Processor Exceptions Numbers **************************************************************/
@@ -535,7 +535,16 @@ typedef struct
535535
* @{
536536
*/
537537

538-
/** @addtogroup Peripheral_Registers_Bits_Definition
538+
/** @addtogroup Hardware_Constant_Definition
539+
* @{
540+
*/
541+
#define LSI_STARTUP_TIME 85U /*!< LSI Maximum startup time in us */
542+
543+
/**
544+
* @}
545+
*/
546+
547+
/** @addtogroup Peripheral_Registers_Bits_Definition
539548
* @{
540549
*/
541550

@@ -2358,7 +2367,7 @@ typedef struct
23582367
#define GPIO_AFRL_AFSEL7_Msk (0xFUL << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
23592368
#define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
23602369

2361-
/* Legacy aliases */
2370+
/* Legacy aliases */
23622371
#define GPIO_AFRL_AFRL0_Pos GPIO_AFRL_AFSEL0_Pos
23632372
#define GPIO_AFRL_AFRL0_Msk GPIO_AFRL_AFSEL0_Msk
23642373
#define GPIO_AFRL_AFRL0 GPIO_AFRL_AFSEL0
@@ -5678,7 +5687,7 @@ typedef struct
56785687
* @}
56795688
*/
56805689

5681-
/**
5690+
/**
56825691
* @}
56835692
*/
56845693

bsp/stm32/libraries/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Include/stm32f038xx.h

+14-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
extern "C" {
4141
#endif /* __cplusplus */
4242

43-
/** @addtogroup Configuration_section_for_CMSIS
43+
/** @addtogroup Configuration_section_for_CMSIS
4444
* @{
4545
*/
4646
/**
@@ -64,7 +64,7 @@
6464
* in @ref Library_configuration_section
6565
*/
6666

67-
/*!< Interrupt Number Definition */
67+
/*!< Interrupt Number Definition */
6868
typedef enum
6969
{
7070
/****** Cortex-M0 Processor Exceptions Numbers **************************************************************/
@@ -534,7 +534,16 @@ typedef struct
534534
* @{
535535
*/
536536

537-
/** @addtogroup Peripheral_Registers_Bits_Definition
537+
/** @addtogroup Hardware_Constant_Definition
538+
* @{
539+
*/
540+
#define LSI_STARTUP_TIME 85U /*!< LSI Maximum startup time in us */
541+
542+
/**
543+
* @}
544+
*/
545+
546+
/** @addtogroup Peripheral_Registers_Bits_Definition
538547
* @{
539548
*/
540549

@@ -2357,7 +2366,7 @@ typedef struct
23572366
#define GPIO_AFRL_AFSEL7_Msk (0xFUL << GPIO_AFRL_AFSEL7_Pos) /*!< 0xF0000000 */
23582367
#define GPIO_AFRL_AFSEL7 GPIO_AFRL_AFSEL7_Msk
23592368

2360-
/* Legacy aliases */
2369+
/* Legacy aliases */
23612370
#define GPIO_AFRL_AFRL0_Pos GPIO_AFRL_AFSEL0_Pos
23622371
#define GPIO_AFRL_AFRL0_Msk GPIO_AFRL_AFSEL0_Msk
23632372
#define GPIO_AFRL_AFRL0 GPIO_AFRL_AFSEL0
@@ -5643,7 +5652,7 @@ typedef struct
56435652
* @}
56445653
*/
56455654

5646-
/**
5655+
/**
56475656
* @}
56485657
*/
56495658

0 commit comments

Comments
 (0)