Skip to content

Commit b237029

Browse files
committed
Update STM32F1xx HAL Drivers to v1.1.1
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent b6f6b1d commit b237029

File tree

131 files changed

+61154
-16671
lines changed

Some content is hidden

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

131 files changed

+61154
-16671
lines changed

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

Lines changed: 175 additions & 79 deletions
Large diffs are not rendered by default.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/**
2+
******************************************************************************
3+
* @file stm32_assert.h
4+
* @author MCD Application Team
5+
* @version V1.1.1
6+
* @date 12-May-2017
7+
* @brief STM32 assert template file.
8+
* This file should be copied to the application folder and renamed
9+
* to stm32_assert.h.
10+
******************************************************************************
11+
* @attention
12+
*
13+
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
14+
*
15+
* Redistribution and use in source and binary forms, with or without modification,
16+
* are permitted provided that the following conditions are met:
17+
* 1. Redistributions of source code must retain the above copyright notice,
18+
* this list of conditions and the following disclaimer.
19+
* 2. Redistributions in binary form must reproduce the above copyright notice,
20+
* this list of conditions and the following disclaimer in the documentation
21+
* and/or other materials provided with the distribution.
22+
* 3. Neither the name of STMicroelectronics nor the names of its contributors
23+
* may be used to endorse or promote products derived from this software
24+
* without specific prior written permission.
25+
*
26+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
29+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
30+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
32+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
33+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
34+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36+
*
37+
******************************************************************************
38+
*/
39+
40+
/* Define to prevent recursive inclusion -------------------------------------*/
41+
#ifndef __STM32_ASSERT_H
42+
#define __STM32_ASSERT_H
43+
44+
#ifdef __cplusplus
45+
extern "C" {
46+
#endif
47+
48+
/* Exported types ------------------------------------------------------------*/
49+
/* Exported constants --------------------------------------------------------*/
50+
/* Includes ------------------------------------------------------------------*/
51+
/* Exported macro ------------------------------------------------------------*/
52+
#ifdef USE_FULL_ASSERT
53+
/**
54+
* @brief The assert_param macro is used for function's parameters check.
55+
* @param expr: If expr is false, it calls assert_failed function
56+
* which reports the name of the source file and the source
57+
* line number of the call that failed.
58+
* If expr is true, it returns no value.
59+
* @retval None
60+
*/
61+
#define assert_param(expr) ((expr) ? (void)0U : assert_failed((uint8_t *)__FILE__, __LINE__))
62+
/* Exported functions ------------------------------------------------------- */
63+
void assert_failed(uint8_t* file, uint32_t line);
64+
#else
65+
#define assert_param(expr) ((void)0U)
66+
#endif /* USE_FULL_ASSERT */
67+
68+
#ifdef __cplusplus
69+
}
70+
#endif
71+
72+
#endif /* __STM32_ASSERT_H */
73+
74+
75+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

system/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal.h

Lines changed: 38 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
******************************************************************************
33
* @file stm32f1xx_hal.h
44
* @author MCD Application Team
5-
* @version V1.0.4
6-
* @date 29-April-2016
5+
* @version V1.1.1
6+
* @date 12-May-2017
77
* @brief This file contains all the functions prototypes for the HAL
88
* module driver.
99
******************************************************************************
1010
* @attention
1111
*
12-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
12+
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
1313
*
1414
* Redistribution and use in source and binary forms, with or without modification,
1515
* are permitted provided that the following conditions are met:
@@ -59,7 +59,6 @@
5959
/* Exported constants --------------------------------------------------------*/
6060

6161
/* Exported macro ------------------------------------------------------------*/
62-
6362
/** @defgroup HAL_Exported_Macros HAL Exported Macros
6463
* @{
6564
*/
@@ -262,58 +261,68 @@
262261
*/
263262

264263
/* Exported functions --------------------------------------------------------*/
265-
266264
/** @addtogroup HAL_Exported_Functions
267265
* @{
268266
*/
269-
270267
/** @addtogroup HAL_Exported_Functions_Group1
271268
* @{
272269
*/
273-
274270
/* Initialization and de-initialization functions ******************************/
275271
HAL_StatusTypeDef HAL_Init(void);
276272
HAL_StatusTypeDef HAL_DeInit(void);
277-
void HAL_MspInit(void);
278-
void HAL_MspDeInit(void);
273+
void HAL_MspInit(void);
274+
void HAL_MspDeInit(void);
279275
HAL_StatusTypeDef HAL_InitTick (uint32_t TickPriority);
280-
281276
/**
282277
* @}
283278
*/
284279

285280
/** @addtogroup HAL_Exported_Functions_Group2
286281
* @{
287282
*/
288-
289283
/* Peripheral Control functions ************************************************/
290-
void HAL_IncTick(void);
291-
void HAL_Delay(__IO uint32_t Delay);
292-
uint32_t HAL_GetTick(void);
293-
void HAL_SuspendTick(void);
294-
void HAL_ResumeTick(void);
295-
uint32_t HAL_GetHalVersion(void);
296-
uint32_t HAL_GetREVID(void);
297-
uint32_t HAL_GetDEVID(void);
298-
void HAL_DBGMCU_EnableDBGSleepMode(void);
299-
void HAL_DBGMCU_DisableDBGSleepMode(void);
300-
void HAL_DBGMCU_EnableDBGStopMode(void);
301-
void HAL_DBGMCU_DisableDBGStopMode(void);
302-
void HAL_DBGMCU_EnableDBGStandbyMode(void);
303-
void HAL_DBGMCU_DisableDBGStandbyMode(void);
304-
284+
void HAL_IncTick(void);
285+
void HAL_Delay(__IO uint32_t Delay);
286+
uint32_t HAL_GetTick(void);
287+
void HAL_SuspendTick(void);
288+
void HAL_ResumeTick(void);
289+
uint32_t HAL_GetHalVersion(void);
290+
uint32_t HAL_GetREVID(void);
291+
uint32_t HAL_GetDEVID(void);
292+
void HAL_DBGMCU_EnableDBGSleepMode(void);
293+
void HAL_DBGMCU_DisableDBGSleepMode(void);
294+
void HAL_DBGMCU_EnableDBGStopMode(void);
295+
void HAL_DBGMCU_DisableDBGStopMode(void);
296+
void HAL_DBGMCU_EnableDBGStandbyMode(void);
297+
void HAL_DBGMCU_DisableDBGStandbyMode(void);
298+
void HAL_GetUID(uint32_t *UID);
305299
/**
306300
* @}
307301
*/
308302

309303
/**
310304
* @}
311305
*/
312-
313-
306+
/* Private types -------------------------------------------------------------*/
307+
/* Private variables ---------------------------------------------------------*/
308+
/** @defgroup HAL_Private_Variables HAL Private Variables
309+
* @{
310+
*/
314311
/**
315312
* @}
316-
*/
313+
*/
314+
/* Private constants ---------------------------------------------------------*/
315+
/** @defgroup HAL_Private_Constants HAL Private Constants
316+
* @{
317+
*/
318+
/**
319+
* @}
320+
*/
321+
/* Private macros ------------------------------------------------------------*/
322+
/* Private functions ---------------------------------------------------------*/
323+
/**
324+
* @}
325+
*/
317326

318327
/**
319328
* @}

0 commit comments

Comments
 (0)