Skip to content

Commit 65ef190

Browse files
committed
[MP1] Update STM32MP1xx HAL Drivers to v1.2.0
Included in STM32CubeMP1 FW V1.2.0 Note: dos2unix applied on all files Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent bbb0cf1 commit 65ef190

37 files changed

+16400
-667
lines changed

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

Lines changed: 137 additions & 42 deletions
Large diffs are not rendered by default.

system/Drivers/STM32MP1xx_HAL_Driver/Inc/stm32mp1xx_hal_adc.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,10 +624,10 @@ typedef void (*pADC_CallbackTypeDef)(ADC_HandleTypeDef *hadc); /*!< pointer to
624624
/** @defgroup ADC_ConversionDataManagement ADC Conversion Data Management
625625
* @{
626626
*/
627-
#define ADC_CONVERSIONDATA_DR ((uint32_t)0x00000000) /*!< Regular Conversion data stored in DR register only */
628-
#define ADC_CONVERSIONDATA_DFSDM ((uint32_t)ADC_CFGR_DMNGT_1) /*!< DFSDM mode selected */
629-
#define ADC_CONVERSIONDATA_DMA_ONESHOT ((uint32_t)ADC_CFGR_DMNGT_0) /*!< DMA one shot mode selected */
630-
#define ADC_CONVERSIONDATA_DMA_CIRCULAR ((uint32_t)(ADC_CFGR_DMNGT_0 | ADC_CFGR_DMNGT_1)) /*!< DMA circular mode selected */
627+
#define ADC_CONVERSIONDATA_DR (0x00000000UL) /*!< Regular Conversion data stored in DR register only */
628+
#define ADC_CONVERSIONDATA_DFSDM (ADC_CFGR_DMNGT_1) /*!< DFSDM mode selected */
629+
#define ADC_CONVERSIONDATA_DMA_ONESHOT (ADC_CFGR_DMNGT_0) /*!< DMA one shot mode selected */
630+
#define ADC_CONVERSIONDATA_DMA_CIRCULAR (ADC_CFGR_DMNGT_0 | ADC_CFGR_DMNGT_1) /*!< DMA circular mode selected */
631631
/**
632632
* @}
633633
*/

system/Drivers/STM32MP1xx_HAL_Driver/Inc/stm32mp1xx_hal_conf_template.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#define HAL_QSPI_MODULE_ENABLED
5656
#define HAL_RCC_MODULE_ENABLED
5757
#define HAL_RNG_MODULE_ENABLED
58+
#define HAL_RTC_MODULE_ENABLED
5859
#define HAL_SAI_MODULE_ENABLED
5960
#define HAL_SD_MODULE_ENABLED
6061
#define HAL_SMBUS_MODULE_ENABLED
@@ -153,6 +154,15 @@
153154
#define CSI_VALUE 4000000U /*!< Value of the Internal oscillator in Hz*/
154155
#endif /* CSI_VALUE */
155156

157+
/**
158+
* @brief External clock source for I2S peripheral
159+
* This value is used by the I2S HAL module to compute the I2S clock source
160+
* frequency, this source is inserted directly through I2S_CKIN pad.
161+
*/
162+
#if !defined (EXTERNAL_CLOCK_VALUE)
163+
#define EXTERNAL_CLOCK_VALUE 12288000U /*!< Value of the External clock in Hz*/
164+
#endif /* EXTERNAL_CLOCK_VALUE */
165+
156166
/* Tip: To avoid modifying this file each time you need to use different HSE,
157167
=== you can define the HSE value in your toolchain compiler preprocessor. */
158168

@@ -269,6 +279,10 @@
269279
#include "stm32mp1xx_hal_rng.h"
270280
#endif /* HAL_RNG_MODULE_ENABLED */
271281

282+
#ifdef HAL_RTC_MODULE_ENABLED
283+
#include "stm32mp1xx_hal_rtc.h"
284+
#endif /* HAL_RTC_MODULE_ENABLED */
285+
272286
#ifdef HAL_SAI_MODULE_ENABLED
273287
#include "stm32mp1xx_hal_sai.h"
274288
#endif /* HAL_SAI_MODULE_ENABLED */

system/Drivers/STM32MP1xx_HAL_Driver/Inc/stm32mp1xx_hal_qspi.h

100644100755
File mode changed.

0 commit comments

Comments
 (0)