Skip to content

Commit 4abd2ff

Browse files
committed
[F1] Update STM32F1xx HAL Drivers to v1.1.4
Included in STM32CubeF1 FW V1.8.0 Note: Trailing spaces have been cleaned. Signed-off-by: Frederic.Pillon <[email protected]>
1 parent e6dfad5 commit 4abd2ff

File tree

138 files changed

+41777
-28201
lines changed

Some content is hidden

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

138 files changed

+41777
-28201
lines changed

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

+731-305
Large diffs are not rendered by default.

system/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32f1xx_hal_can_ex_legacy.h

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file stm32f1xx_hal_can_ex.h
3+
* @file stm32f1xx_hal_can_ex_legacy.h
44
* @author MCD Application Team
55
* @brief Header file of CAN HAL Extension module.
66
******************************************************************************
@@ -31,11 +31,11 @@
3131
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232
*
3333
******************************************************************************
34-
*/
34+
*/
3535

3636
/* Define to prevent recursive inclusion -------------------------------------*/
37-
#ifndef __STM32F1xx_HAL_CAN_EX_H
38-
#define __STM32F1xx_HAL_CAN_EX_H
37+
#ifndef __STM32F1xx_HAL_CAN_EX_LEGACY_H
38+
#define __STM32F1xx_HAL_CAN_EX_LEGACY_H
3939

4040
#ifdef __cplusplus
4141
extern "C" {
@@ -53,11 +53,11 @@
5353

5454
/** @defgroup CANEx CANEx
5555
* @{
56-
*/
56+
*/
5757

5858
/* Exported types ------------------------------------------------------------*/
5959

60-
/**
60+
/**
6161
* @brief CAN filter configuration structure definition
6262
*/
6363
/* CAN filter banks differences over STM32F1 devices: */
@@ -68,29 +68,29 @@ typedef struct
6868
{
6969
uint32_t FilterIdHigh; /*!< Specifies the filter identification number (MSBs for a 32-bit
7070
configuration, first one for a 16-bit configuration).
71-
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
72-
71+
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
72+
7373
uint32_t FilterIdLow; /*!< Specifies the filter identification number (LSBs for a 32-bit
7474
configuration, second one for a 16-bit configuration).
75-
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
75+
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
7676

7777
uint32_t FilterMaskIdHigh; /*!< Specifies the filter mask number or identification number,
7878
according to the mode (MSBs for a 32-bit configuration,
7979
first one for a 16-bit configuration).
80-
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
80+
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
8181

8282
uint32_t FilterMaskIdLow; /*!< Specifies the filter mask number or identification number,
8383
according to the mode (LSBs for a 32-bit configuration,
8484
second one for a 16-bit configuration).
85-
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
85+
This parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF. */
8686

8787
uint32_t FilterFIFOAssignment; /*!< Specifies the FIFO (0 or 1) which will be assigned to the filter.
8888
This parameter can be a value of @ref CAN_filter_FIFO */
8989
#if defined(STM32F105xC) || defined(STM32F107xC)
90-
uint32_t FilterNumber; /*!< Specifies the filter which will be initialized.
90+
uint32_t FilterNumber; /*!< Specifies the filter which will be initialized.
9191
This parameter must be a number between Min_Data = 0 and Max_Data = 27. */
9292
#else
93-
uint32_t FilterNumber; /*!< Specifies the filter which will be initialized.
93+
uint32_t FilterNumber; /*!< Specifies the filter which will be initialized.
9494
This parameter must be a number between Min_Data = 0 and Max_Data = 13. */
9595
#endif /* STM32F105xC || STM32F107xC */
9696
uint32_t FilterMode; /*!< Specifies the filter mode to be initialized.
@@ -101,10 +101,10 @@ typedef struct
101101

102102
uint32_t FilterActivation; /*!< Enable or disable the filter.
103103
This parameter can be set to ENABLE or DISABLE. */
104-
104+
105105
uint32_t BankNumber; /*!< Select the start slave bank filter
106-
This parameter must be a number between Min_Data = 0 and Max_Data = 28. */
107-
106+
This parameter must be a number between Min_Data = 0 and Max_Data = 28. */
107+
108108
}CAN_FilterConfTypeDef;
109109

110110
/* Exported constants --------------------------------------------------------*/
@@ -127,7 +127,7 @@ typedef struct
127127

128128
/**
129129
* @}
130-
*/
130+
*/
131131

132132
/**
133133
* @}
@@ -139,6 +139,6 @@ typedef struct
139139
}
140140
#endif
141141

142-
#endif /* __STM32F1xx_HAL_CAN_EX_H */
142+
#endif /* __STM32F1xx_HAL_CAN_EX_LEGACY_H */
143143

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

system/Drivers/STM32F1xx_HAL_Driver/Inc/Legacy/stm32f1xx_hal_can_legacy.h

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
******************************************************************************
3-
* @file stm32f1xx_hal_can.h
3+
* @file stm32f1xx_hal_can_legacy.h
44
* @author MCD Application Team
55
* @brief Header file of CAN HAL module.
66
******************************************************************************
@@ -34,13 +34,13 @@
3434
*/
3535

3636
/* Define to prevent recursive inclusion -------------------------------------*/
37-
#ifndef __STM32F1xx_HAL_CAN_H
38-
#define __STM32F1xx_HAL_CAN_H
37+
#ifndef __STM32F1xx_HAL_CAN_LEGACY_H
38+
#define __STM32F1xx_HAL_CAN_LEGACY_H
3939

4040
#ifdef __cplusplus
4141
extern "C" {
4242
#endif
43-
43+
4444
#if defined(STM32F103x6) || defined(STM32F103xB) || defined(STM32F103xE) || \
4545
defined(STM32F103xG) || defined(STM32F105xC) || defined(STM32F107xC)
4646

@@ -121,8 +121,8 @@ typedef struct
121121
This parameter can be set to ENABLE or DISABLE */
122122
}CAN_InitTypeDef;
123123

124-
/**
125-
* @brief CAN Tx message structure definition
124+
/**
125+
* @brief CAN Tx message structure definition
126126
*/
127127
typedef struct
128128
{
@@ -391,7 +391,7 @@ typedef struct
391391
#define CAN_FLAG_SLAK ((uint32_t)((MSR_REGISTER_INDEX << 8U) | CAN_MSR_SLAK_BIT_POSITION)) /*!< Sleep acknowledge flag */
392392
#define CAN_FLAG_SLAKI ((uint32_t)((MSR_REGISTER_INDEX << 8U) | CAN_MSR_SLAKI_BIT_POSITION)) /*!< Sleep acknowledge flag */
393393

394-
/* @note When SLAK interrupt is disabled (SLKIE=0), no polling on SLAKI is possible.
394+
/* @note When SLAK interrupt is disabled (SLKIE=0), no polling on SLAKI is possible.
395395
In this case the SLAK bit can be polled.*/
396396

397397
/* Error Flags */
@@ -654,7 +654,7 @@ typedef struct
654654
* @retval None.
655655
*/
656656
#define __HAL_CAN_FIFO_RELEASE(__HANDLE__, __FIFONUMBER__) (((__FIFONUMBER__) == CAN_FIFO0)? \
657-
((__HANDLE__)->Instance->RF0R = CAN_RF0R_RFOM0) : ((__HANDLE__)->Instance->RF1R = CAN_RF1R_RFOM1))
657+
((__HANDLE__)->Instance->RF0R = CAN_RF0R_RFOM0) : ((__HANDLE__)->Instance->RF1R = CAN_RF1R_RFOM1))
658658

659659
/**
660660
* @brief Cancel a transmit request.
@@ -692,7 +692,7 @@ typedef struct
692692
*/
693693

694694
/** @addtogroup CAN_Exported_Functions_Group1
695-
* @brief Initialization and Configuration functions
695+
* @brief Initialization and Configuration functions
696696
* @{
697697
*/
698698
/* Initialization and de-initialization functions *****************************/
@@ -706,7 +706,7 @@ void HAL_CAN_MspDeInit(CAN_HandleTypeDef* hcan);
706706
*/
707707

708708
/** @addtogroup CAN_Exported_Functions_Group2
709-
* @brief I/O operation functions
709+
* @brief I/O operation functions
710710
* @{
711711
*/
712712
/* I/O operation functions *****************************************************/
@@ -725,7 +725,7 @@ void HAL_CAN_ErrorCallback(CAN_HandleTypeDef *hcan);
725725
*/
726726

727727
/** @addtogroup CAN_Exported_Functions_Group3
728-
* @brief CAN Peripheral State functions
728+
* @brief CAN Peripheral State functions
729729
* @{
730730
*/
731731
/* Peripheral State and Error functions ***************************************/
@@ -790,7 +790,7 @@ HAL_CAN_StateTypeDef HAL_CAN_GetState(CAN_HandleTypeDef* hcan);
790790
}
791791
#endif
792792

793-
#endif /* __STM32F1xx_HAL_CAN_H */
793+
#endif /* __STM32F1xx_HAL_CAN_LEGACY_H */
794794

795795

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

system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32_assert_template.h

+8-24
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,13 @@
88
******************************************************************************
99
* @attention
1010
*
11-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
11+
* <h2><center>&copy; Copyright (c) 2016 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
*/
@@ -50,15 +34,15 @@ extern "C" {
5034
#ifdef USE_FULL_ASSERT
5135
/**
5236
* @brief The assert_param macro is used for function's parameters check.
53-
* @param expr: If expr is false, it calls assert_failed function
37+
* @param expr If expr is false, it calls assert_failed function
5438
* which reports the name of the source file and the source
5539
* line number of the call that failed.
5640
* If expr is true, it returns no value.
5741
* @retval None
5842
*/
5943
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
6044
/* Exported functions ------------------------------------------------------- */
61-
void assert_failed(uint8_t *file, uint32_t line);
45+
void assert_failed(uint8_t* file, uint32_t line);
6246
#else
6347
#define assert_param(expr) ((void)0U)
6448
#endif /* USE_FULL_ASSERT */

system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h

+13-23
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,13 @@
77
******************************************************************************
88
* @attention
99
*
10-
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
10+
* <h2><center>&copy; Copyright (c) 2017 STMicroelectronics.
11+
* All rights reserved.</center></h2>
1112
*
12-
* Redistribution and use in source and binary forms, with or without modification,
13-
* are permitted provided that the following conditions are met:
14-
* 1. Redistributions of source code must retain the above copyright notice,
15-
* this list of conditions and the following disclaimer.
16-
* 2. Redistributions in binary form must reproduce the above copyright notice,
17-
* this list of conditions and the following disclaimer in the documentation
18-
* and/or other materials provided with the distribution.
19-
* 3. Neither the name of STMicroelectronics nor the names of its contributors
20-
* may be used to endorse or promote products derived from this software
21-
* without specific prior written permission.
22-
*
23-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24-
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
27-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13+
* This software component is licensed by ST under BSD 3-Clause license,
14+
* the "License"; You may not use this file except in compliance with the
15+
* License. You may obtain a copy of the License at:
16+
* opensource.org/licenses/BSD-3-Clause
3317
*
3418
******************************************************************************
3519
*/
@@ -319,13 +303,19 @@ void HAL_ResumeTick(void);
319303
uint32_t HAL_GetHalVersion(void);
320304
uint32_t HAL_GetREVID(void);
321305
uint32_t HAL_GetDEVID(void);
306+
uint32_t HAL_GetUIDw0(void);
307+
uint32_t HAL_GetUIDw1(void);
308+
uint32_t HAL_GetUIDw2(void);
322309
void HAL_DBGMCU_EnableDBGSleepMode(void);
323310
void HAL_DBGMCU_DisableDBGSleepMode(void);
324311
void HAL_DBGMCU_EnableDBGStopMode(void);
325312
void HAL_DBGMCU_DisableDBGStopMode(void);
326313
void HAL_DBGMCU_EnableDBGStandbyMode(void);
327314
void HAL_DBGMCU_DisableDBGStandbyMode(void);
328-
void HAL_GetUID(uint32_t *UID);
315+
/**
316+
* @}
317+
*/
318+
329319
/**
330320
* @}
331321
*/

0 commit comments

Comments
 (0)