Skip to content

Commit 8b2f0f6

Browse files
committed
[H7] Update STM32H7xx HAL Drivers to v1.10.0
Included in STM32CubeH7 FW v1.9.0 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 6f70b87 commit 8b2f0f6

File tree

173 files changed

+9936
-5969
lines changed

Some content is hidden

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

173 files changed

+9936
-5969
lines changed

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

Lines changed: 74 additions & 101 deletions
Large diffs are not rendered by default.

system/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ typedef enum
6969
/** @defgroup SYSCFG_VREFBUF_VoltageScale VREFBUF Voltage Scale
7070
* @{
7171
*/
72-
#define SYSCFG_VREFBUF_VOLTAGE_SCALE0 VREFBUF_CSR_VRS_OUT2 /*!< Voltage reference scale 0 (VREF_OUT2) */
73-
#define SYSCFG_VREFBUF_VOLTAGE_SCALE1 VREFBUF_CSR_VRS_OUT1 /*!< Voltage reference scale 1 (VREF_OUT1) */
74-
#define SYSCFG_VREFBUF_VOLTAGE_SCALE2 VREFBUF_CSR_VRS_OUT4 /*!< Voltage reference scale 2 (VREF_OUT4) */
75-
#define SYSCFG_VREFBUF_VOLTAGE_SCALE3 VREFBUF_CSR_VRS_OUT3 /*!< Voltage reference scale 3 (VREF_OUT3) */
72+
#define SYSCFG_VREFBUF_VOLTAGE_SCALE0 VREFBUF_CSR_VRS_OUT1 /*!< Voltage reference scale 0 (VREF_OUT1) */
73+
#define SYSCFG_VREFBUF_VOLTAGE_SCALE1 VREFBUF_CSR_VRS_OUT2 /*!< Voltage reference scale 1 (VREF_OUT2) */
74+
#define SYSCFG_VREFBUF_VOLTAGE_SCALE2 VREFBUF_CSR_VRS_OUT3 /*!< Voltage reference scale 2 (VREF_OUT3) */
75+
#define SYSCFG_VREFBUF_VOLTAGE_SCALE3 VREFBUF_CSR_VRS_OUT4 /*!< Voltage reference scale 3 (VREF_OUT4) */
7676

7777

7878
#define IS_SYSCFG_VREFBUF_VOLTAGE_SCALE(__SCALE__) (((__SCALE__) == SYSCFG_VREFBUF_VOLTAGE_SCALE0) || \
@@ -1093,10 +1093,14 @@ void HAL_DisableDomain2DBGStopMode(void);
10931093
void HAL_EnableDomain2DBGStandbyMode(void);
10941094
void HAL_DisableDomain2DBGStandbyMode(void);
10951095
#endif /*DUAL_CORE*/
1096+
#if defined(DBGMCU_CR_DBG_STOPD3)
10961097
void HAL_EnableDomain3DBGStopMode(void);
10971098
void HAL_DisableDomain3DBGStopMode(void);
1099+
#endif /*DBGMCU_CR_DBG_STOPD3*/
1100+
#if defined(DBGMCU_CR_DBG_STANDBYD3)
10981101
void HAL_EnableDomain3DBGStandbyMode(void);
10991102
void HAL_DisableDomain3DBGStandbyMode(void);
1103+
#endif /*DBGMCU_CR_DBG_STANDBYD3*/
11001104
void HAL_EXTI_EdgeConfig(uint32_t EXTI_Line , uint32_t EXTI_Edge );
11011105
void HAL_EXTI_GenerateSWInterrupt(uint32_t EXTI_Line);
11021106
#if defined(DUAL_CORE)

system/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_adc.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ typedef struct
128128
This feature automatically adapts the frequency of ADC conversions triggers to the speed of the system that reads the data. Moreover, this avoids risk of overrun
129129
for low frequency applications.
130130
This parameter can be set to ENABLE or DISABLE.
131-
Note: Do not use with interruption or DMA (HAL_ADC_Start_IT(), HAL_ADC_Start_DMA()) since they clear immediately the EOC flag
132-
to free the IRQ vector sequencer.
133-
Do use with polling: 1. Start conversion with HAL_ADC_Start(), 2. Later on, when ADC conversion data is needed:
134-
use HAL_ADC_PollForConversion() to ensure that conversion is completed and HAL_ADC_GetValue() to retrieve conversion result and trig another conversion start.
135-
(in case of usage of ADC group injected, use the equivalent functions HAL_ADCExInjected_Start(), HAL_ADCEx_InjectedGetValue(), ...). */
131+
Note: It is not recommended to use with interruption or DMA (HAL_ADC_Start_IT(), HAL_ADC_Start_DMA()) since these modes have to clear immediately the EOC flag (by CPU to free the IRQ pending event or by DMA).
132+
Auto wait will work but fort a very short time, discarding its intended benefit (except specific case of high load of CPU or DMA transfers which can justify usage of auto wait).
133+
Do use with polling: 1. Start conversion with HAL_ADC_Start(), 2. Later on, when ADC conversion data is needed:
134+
and use HAL_ADC_GetValue() to retrieve conversion result and trig another conversion (in case of usage of injected group,
135+
use the equivalent functions HAL_ADCExInjected_Start(), HAL_ADCEx_InjectedGetValue(), ...). */
136136

137137
FunctionalState ContinuousConvMode; /*!< Specify whether the conversion is performed in single mode (one conversion) or continuous mode for ADC group regular,
138138
after the first ADC conversion start trigger occurred (software start or external trigger).
@@ -163,7 +163,7 @@ typedef struct
163163
If trigger source is set to ADC_SOFTWARE_START, this parameter is discarded.
164164
This parameter can be a value of @ref ADC_regular_external_trigger_edge */
165165

166-
uint32_t ConversionDataManagement; /*!< Specifies whether the Data conversion data is managed: using the DMA (oneshot or circular), or stored in the DR register or transfered to DFSDM register.
166+
uint32_t ConversionDataManagement; /*!< Specifies whether the Data conversion data is managed: using the DMA (oneshot or circular), or stored in the DR register or transferred to DFSDM register.
167167
Note: In continuous mode, DMA must be configured in circular mode. Otherwise an overrun will be triggered when DMA buffer maximum pointer is reached.
168168
This parameter can be a value of @ref ADC_ConversionDataManagement.
169169
Note: This parameter must be modified when no conversion is on going on both regular and injected groups
@@ -266,7 +266,7 @@ typedef struct
266266
This parameter is applied only for 16-bit or 8-bit resolution.
267267
This parameter can be set to ENABLE or DISABLE.*/
268268
#if defined(ADC_VER_V5_V90)
269-
uint32_t OffsetSign; /*!< Define if the offset should be substracted (negative sign) or added (positive sign) from or to the raw converted data.
269+
uint32_t OffsetSign; /*!< Define if the offset should be subtracted (negative sign) or added (positive sign) from or to the raw converted data.
270270
This parameter can be a value of @ref ADCEx_OffsetSign.
271271
Note:
272272
- This parameter must be modified when no conversion is on going on both regular and injected groups (ADC disabled, or ADC enabled
@@ -380,7 +380,7 @@ typedef struct
380380
external trigger, low power auto power-on (if feature available), multimode ADC master control (if feature available)) */
381381
#define HAL_ADC_STATE_REG_EOC (0x00000200UL) /*!< Conversion data available on group regular */
382382
#define HAL_ADC_STATE_REG_OVR (0x00000400UL) /*!< Overrun occurrence */
383-
#define HAL_ADC_STATE_REG_EOSMP (0x00000800UL) /*!< Not available on this STM32 serie: End Of Sampling flag raised */
383+
#define HAL_ADC_STATE_REG_EOSMP (0x00000800UL) /*!< Not available on this STM32 series: End Of Sampling flag raised */
384384

385385
/* States of ADC group injected */
386386
#define HAL_ADC_STATE_INJ_BUSY (0x00001000UL) /*!< A conversion on ADC group injected is ongoing or can occur (either by auto-injection mode,
@@ -533,7 +533,7 @@ typedef void (*pADC_CallbackTypeDef)(ADC_HandleTypeDef *hadc); /*!< pointer to
533533
* @{
534534
*/
535535
#define ADC3_DATAALIGN_RIGHT (LL_ADC_DATA_ALIGN_RIGHT) /*!< ADC conversion data alignment: right aligned (alignment on data register LSB bit 0)*/
536-
#define ADC3_DATAALIGN_LEFT (LL_ADC_DATA_ALIGN_LEFT) /*!< ADC conversion data alignment: left aligned (aligment on data register MSB bit 15)*/
536+
#define ADC3_DATAALIGN_LEFT (LL_ADC_DATA_ALIGN_LEFT) /*!< ADC conversion data alignment: left aligned (alignment on data register MSB bit 15)*/
537537
/**
538538
* @}
539539
*/
@@ -1773,7 +1773,7 @@ typedef void (*pADC_CallbackTypeDef)(ADC_HandleTypeDef *hadc); /*!< pointer to
17731773
* connected to pin Vref+.
17741774
* On devices with small package, the pin Vref+ is not present
17751775
* and internally bonded to pin Vdda.
1776-
* @note On this STM32 serie, calibration data of internal voltage reference
1776+
* @note On this STM32 series, calibration data of internal voltage reference
17771777
* VrefInt corresponds to a resolution of 12 bits,
17781778
* this is the recommended ADC resolution to convert voltage of
17791779
* internal voltage reference VrefInt.
@@ -1821,7 +1821,7 @@ typedef void (*pADC_CallbackTypeDef)(ADC_HandleTypeDef *hadc); /*!< pointer to
18211821
* @note Analog reference voltage (Vref+) must be either known from
18221822
* user board environment or can be calculated using ADC measurement
18231823
* and ADC helper macro @ref __LL_ADC_CALC_VREFANALOG_VOLTAGE().
1824-
* @note On this STM32 serie, calibration data of temperature sensor
1824+
* @note On this STM32 series, calibration data of temperature sensor
18251825
* corresponds to a resolution of 12 bits,
18261826
* this is the recommended ADC resolution to convert voltage of
18271827
* temperature sensor.

system/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_adc_ex.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ typedef struct
122122
This parameter is applied only for 16-bit or 8-bit resolution.
123123
This parameter can be set to ENABLE or DISABLE. */
124124
#if defined(ADC_VER_V5_V90)
125-
uint32_t InjectedOffsetSign; /*!< Define if the offset should be substracted (negative sign) or added (positive sign) from or to the raw converted data.
125+
uint32_t InjectedOffsetSign; /*!< Define if the offset should be subtracted (negative sign) or added (positive sign) from or to the raw converted data.
126126
This parameter can be a value of @ref ADCEx_OffsetSign.
127127
Note:
128128
- This parameter must be modified when no conversion is on going on both regular and injected groups (ADC disabled, or ADC enabled without continuous mode or external trigger that could launch a conversion).
@@ -295,7 +295,7 @@ typedef struct
295295
/** @defgroup ADCEx_OffsetSign ADC Extended Offset Sign
296296
* @{
297297
*/
298-
#define ADC3_OFFSET_SIGN_NEGATIVE (0x00000000UL) /*!< Offset sign negative, offset is substracted */
298+
#define ADC3_OFFSET_SIGN_NEGATIVE (0x00000000UL) /*!< Offset sign negative, offset is subtracted */
299299
#define ADC3_OFFSET_SIGN_POSITIVE (ADC3_OFR1_OFFSETPOS) /*!< Offset sign positive, offset is added */
300300
/**
301301
* @}
@@ -415,7 +415,7 @@ typedef struct
415415
* @{
416416
*/
417417
#define ADC_DFSDM_MODE_DISABLE (0x00000000UL) /*!< ADC conversions are not transferred by DFSDM. */
418-
#define ADC_DFSDM_MODE_ENABLE (LL_ADC_REG_DFSDM_TRANSFER_ENABLE) /*!< ADC conversion data are transfered to DFSDM for post processing. The ADC conversion data format must be 16-bit signed and right aligned, refer to reference manual. DFSDM transfer cannot be used if DMA transfer is enabled. */
418+
#define ADC_DFSDM_MODE_ENABLE (LL_ADC_REG_DFSDM_TRANSFER_ENABLE) /*!< ADC conversion data are transferred to DFSDM for post processing. The ADC conversion data format must be 16-bit signed and right aligned, refer to reference manual. DFSDM transfer cannot be used if DMA transfer is enabled. */
419419
/**
420420
* @}
421421
*/
@@ -441,7 +441,7 @@ typedef struct
441441
* Usage of this macro is not the Standard way of multimode
442442
* configuration and can lead to have HAL ADC handles status
443443
* misaligned. Usage of this macro must be limited to cases
444-
* mentionned above.
444+
* mentioned above.
445445
* @param __HANDLE__ ADC handle.
446446
* @retval None
447447
*/
@@ -1207,7 +1207,10 @@ typedef struct
12071207
((__SHIFT__) == ADC_RIGHTBITSHIFT_5 ) || \
12081208
((__SHIFT__) == ADC_RIGHTBITSHIFT_6 ) || \
12091209
((__SHIFT__) == ADC_RIGHTBITSHIFT_7 ) || \
1210-
((__SHIFT__) == ADC_RIGHTBITSHIFT_8 ))
1210+
((__SHIFT__) == ADC_RIGHTBITSHIFT_8 ) || \
1211+
((__SHIFT__) == ADC_RIGHTBITSHIFT_9 ) || \
1212+
((__SHIFT__) == ADC_RIGHTBITSHIFT_10 ) || \
1213+
((__SHIFT__) == ADC_RIGHTBITSHIFT_11 ))
12111214

12121215
/**
12131216
* @brief Verify the ADC oversampling triggered mode.

system/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_cec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ typedef struct
121121
* b6 Error information
122122
* 0 : No Error
123123
* 1 : Error
124-
* b5 IP initilisation status
124+
* b5 IP initialization status
125125
* 0 : Reset (IP not initialized)
126126
* 1 : Init done (IP initialized. HAL CEC Init function already called)
127127
* b4-b3 (not used)
@@ -138,7 +138,7 @@ typedef struct
138138
* RxState value coding follow below described bitmap :
139139
* b7-b6 (not used)
140140
* xx : Should be set to 00
141-
* b5 IP initilisation status
141+
* b5 IP initialization status
142142
* 0 : Reset (IP not initialized)
143143
* 1 : Init done (IP initialized)
144144
* b4-b2 (not used)

system/Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_conf_template.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
#endif /* HSE_VALUE */
109109

110110
#if !defined (HSE_STARTUP_TIMEOUT)
111-
#define HSE_STARTUP_TIMEOUT (5000UL) /*!< Time out for HSE start up, in ms */
111+
#define HSE_STARTUP_TIMEOUT (100UL) /*!< Time out for HSE start up, in ms */
112112
#endif /* HSE_STARTUP_TIMEOUT */
113113

114114
/**
@@ -166,7 +166,7 @@
166166
#define VDD_VALUE (3300UL) /*!< Value of VDD in mv */
167167
#define TICK_INT_PRIORITY (0x0FUL) /*!< tick interrupt priority */
168168
#define USE_RTOS 0
169-
#define USE_SD_TRANSCEIVER 1U /*!< use uSD Transceiver */
169+
#define USE_SD_TRANSCEIVER 0U /*!< use uSD Transceiver */
170170
#define USE_SPI_CRC 1U /*!< use CRC in SPI */
171171

172172
#define USE_HAL_ADC_REGISTER_CALLBACKS 0U /* ADC register callback disabled */

0 commit comments

Comments
 (0)