Skip to content

Commit 2561e0b

Browse files
authored
Merge pull request #4299 from jeromecoutant/PULL_REQUEST_CUBE_UPDATE_F4_V1.16.0
STM32F4 cube update from v1.12.0 to v1.16.0
2 parents 92e661b + 92c55e7 commit 2561e0b

File tree

264 files changed

+234627
-79865
lines changed

Some content is hidden

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

264 files changed

+234627
-79865
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/hal_tick.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444

4545
#define TIM_MST TIM5
4646
#define TIM_MST_IRQ TIM5_IRQn
47-
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
47+
#define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE()
4848

49-
#define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
50-
#define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
49+
#define TIM_MST_RESET_ON __HAL_RCC_TIM5_FORCE_RESET()
50+
#define TIM_MST_RESET_OFF __HAL_RCC_TIM5_RELEASE_RESET()
5151

5252
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
5353

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/stm32f411xe.h

Lines changed: 7076 additions & 3225 deletions
Large diffs are not rendered by default.

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/stm32f4xx.h

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
******************************************************************************
33
* @file stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.5.0
6-
* @date 22-April-2016
5+
* @version V2.6.1
6+
* @date 14-February-2017
77
* @brief CMSIS STM32F4xx Device Peripheral Access Layer Header File.
88
*
99
* The file is the unique include file that the application programmer
@@ -18,7 +18,7 @@
1818
******************************************************************************
1919
* @attention
2020
*
21-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
21+
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
2222
*
2323
* Redistribution and use in source and binary forms, with or without modification,
2424
* are permitted provided that the following conditions are met:
@@ -79,7 +79,7 @@
7979
!defined (STM32F401xC) && !defined (STM32F401xE) && !defined (STM32F410Tx) && !defined (STM32F410Cx) && \
8080
!defined (STM32F410Rx) && !defined (STM32F411xE) && !defined (STM32F446xx) && !defined (STM32F469xx) && \
8181
!defined (STM32F479xx) && !defined (STM32F412Cx) && !defined (STM32F412Rx) && !defined (STM32F412Vx) && \
82-
!defined (STM32F412Zx)
82+
!defined (STM32F412Zx) && !defined (STM32F413xx) && !defined (STM32F423xx)
8383
/* #define STM32F405xx */ /*!< STM32F405RG, STM32F405VG and STM32F405ZG Devices */
8484
/* #define STM32F415xx */ /*!< STM32F415RG, STM32F415VG and STM32F415ZG Devices */
8585
/* #define STM32F407xx */ /*!< STM32F407VG, STM32F407VE, STM32F407ZG, STM32F407ZE, STM32F407IG and STM32F407IE Devices */
@@ -106,6 +106,9 @@
106106
/* #define STM32F412Zx */ /*!< STM32F412ZET, STM32F412ZGT, STM32F412ZEJ and STM32F412ZGJ Devices */
107107
/* #define STM32F412Vx */ /*!< STM32F412VET, STM32F412VGT, STM32F412VEH and STM32F412VGH Devices */
108108
/* #define STM32F412Rx */ /*!< STM32F412RET, STM32F412RGT, STM32F412REY and STM32F412RGY Devices */
109+
/* #define STM32F413xx */ /*!< STM32F413CH, STM32F413MH, STM32F413RH, STM32F413VH, STM32F413ZH, STM32F413CG, STM32F413MG,
110+
STM32F413RG, STM32F413VG and STM32F413ZG Devices */
111+
/* #define STM32F423xx */ /*!< STM32F423CH, STM32F423RH, STM32F423VH and STM32F423ZH Devices */
109112
#endif
110113

111114
/* Tip: To avoid modifying this file each time you need to switch between these
@@ -121,11 +124,11 @@
121124
#endif /* USE_HAL_DRIVER */
122125

123126
/**
124-
* @brief CMSIS version number V2.5.0
127+
* @brief CMSIS version number V2.6.1
125128
*/
126129
#define __STM32F4xx_CMSIS_VERSION_MAIN (0x02U) /*!< [31:24] main version */
127-
#define __STM32F4xx_CMSIS_VERSION_SUB1 (0x05U) /*!< [23:16] sub1 version */
128-
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
130+
#define __STM32F4xx_CMSIS_VERSION_SUB1 (0x06U) /*!< [23:16] sub1 version */
131+
#define __STM32F4xx_CMSIS_VERSION_SUB2 (0x01U) /*!< [15:8] sub2 version */
129132
#define __STM32F4xx_CMSIS_VERSION_RC (0x00U) /*!< [7:0] release candidate */
130133
#define __STM32F4xx_CMSIS_VERSION ((__STM32F4xx_CMSIS_VERSION_MAIN << 24)\
131134
|(__STM32F4xx_CMSIS_VERSION_SUB1 << 16)\
@@ -182,6 +185,10 @@
182185
#include "stm32f412rx.h"
183186
#elif defined(STM32F412Vx)
184187
#include "stm32f412vx.h"
188+
#elif defined(STM32F413xx)
189+
#include "stm32f413xx.h"
190+
#elif defined(STM32F423xx)
191+
#include "stm32f423xx.h"
185192
#else
186193
#error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
187194
#endif

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/system_stm32f4xx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
*/
160160
uint32_t SystemCoreClock = 16000000;
161161
const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
162-
162+
const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};
163163
/**
164164
* @}
165165
*/
@@ -837,7 +837,7 @@ uint8_t SetSysClock_PLL_HSE(uint8_t bypass)
837837
/* The voltage scaling allows optimizing the power consumption when the device is
838838
clocked below the maximum system frequency, to update the voltage scaling value
839839
regarding system frequency refer to product datasheet. */
840-
__PWR_CLK_ENABLE();
840+
__HAL_RCC_PWR_CLK_ENABLE();
841841
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE2);
842842

843843
/* Enable HSE oscillator and activate PLL with HSE as source */
@@ -896,7 +896,7 @@ uint8_t SetSysClock_PLL_HSI(void)
896896
/* The voltage scaling allows optimizing the power consumption when the device is
897897
clocked below the maximum system frequency, to update the voltage scaling value
898898
regarding system frequency refer to product datasheet. */
899-
__PWR_CLK_ENABLE();
899+
__HAL_RCC_PWR_CLK_ENABLE();
900900
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE2);
901901

902902
/* Enable HSI oscillator and activate PLL with HSI as source */

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/device/system_stm32f4xx.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
******************************************************************************
33
* @file system_stm32f4xx.h
44
* @author MCD Application Team
5-
* @version V2.5.0
6-
* @date 22-April-2016
5+
* @version V2.6.1
6+
* @date 14-February-2017
77
* @brief CMSIS Cortex-M4 Device System Source File for STM32F4xx devices.
88
******************************************************************************
99
* @attention
1010
*
11-
* <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
11+
* <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
1212
*
1313
* Redistribution and use in source and binary forms, with or without modification,
1414
* are permitted provided that the following conditions are met:
@@ -75,6 +75,8 @@
7575
*/
7676
extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
7777

78+
extern const uint8_t AHBPrescTable[16]; /*!< AHB prescalers table values */
79+
extern const uint8_t APBPrescTable[8]; /*!< APB prescalers table values */
7880

7981
/**
8082
* @}

targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/device/hal_tick.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444

4545
#define TIM_MST TIM5
4646
#define TIM_MST_IRQ TIM5_IRQn
47-
#define TIM_MST_RCC __TIM5_CLK_ENABLE()
47+
#define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE()
4848

49-
#define TIM_MST_RESET_ON __TIM5_FORCE_RESET()
50-
#define TIM_MST_RESET_OFF __TIM5_RELEASE_RESET()
49+
#define TIM_MST_RESET_ON __HAL_RCC_TIM5_FORCE_RESET()
50+
#define TIM_MST_RESET_OFF __HAL_RCC_TIM5_RELEASE_RESET()
5151

5252
#define TIM_MST_16BIT 0 // 1=16-bit timer, 0=32-bit timer
5353

0 commit comments

Comments
 (0)