Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9b0601f

Browse files
committed
system(wb) update STM32WBxx HAL Drivers to v1.14.7
Included in STM32CubeWB FW v1.24.0Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parentb5db0ca commit9b0601f

File tree

40 files changed

+534
-458
lines changed

40 files changed

+534
-458
lines changed

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,10 @@ extern "C" {
361361
#if defined(STM32L4R5xx)|| defined(STM32L4R9xx)|| defined(STM32L4R9xx)|| defined(STM32L4S5xx)|| \
362362
defined(STM32L4S7xx)|| defined(STM32L4S9xx)
363363
#defineDMA_REQUEST_DCMI_PSSI DMA_REQUEST_DCMI
364-
#endif
364+
#elif defined(STM32L4P5xx)|| defined(STM32L4Q5xx)
365+
#defineDMA_REQUEST_PSSI DMA_REQUEST_DCMI_PSSI
366+
#defineLL_DMAMUX_REQ_PSSI LL_DMAMUX_REQ_DCMI_PSSI
367+
#endif/* STM32L4R5xx || STM32L4R9xx || STM32L4R9xx || STM32L4S5xx || STM32L4S7xx || STM32L4S9xx */
365368

366369
#endif/* STM32L4 */
367370

@@ -2149,6 +2152,13 @@ extern "C" {
21492152
#defineUFB_MODE_BitNumber UFB_MODE_BIT_NUMBER
21502153
#defineCMP_PD_BitNumber CMP_PD_BIT_NUMBER
21512154

2155+
#if defined(STM32H7RS)|| defined(STM32N6)
2156+
#defineFMC_SWAPBMAP_DISABLE FMC_SWAPBANK_MODE0
2157+
#defineFMC_SWAPBMAP_SDRAM_SRAM FMC_SWAPBANK_MODE1
2158+
#defineHAL_SetFMCMemorySwappingConfig HAL_FMC_SetBankSwapConfig
2159+
#defineHAL_GetFMCMemorySwappingConfig HAL_FMC_GetBankSwapConfig
2160+
#endif/* STM32H7RS || STM32N6 */
2161+
21522162
/**
21532163
* @}
21542164
*/

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_cryp.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ extern "C" {
3232
*/
3333

3434

35-
3635
/** @defgroup CRYP CRYP
3736
* @brief CRYP HAL module driver.
3837
* @{

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_cryp_ex.h‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ extern "C" {
3232
*/
3333

3434

35-
3635
/** @defgroup CRYPEx CRYPEx
3736
* @brief CRYP Extension HAL module driver.
3837
* @{
@@ -93,8 +92,10 @@ extern "C" {
9392
/** @addtogroup CRYPEx_Exported_Functions_Group1
9493
* @{
9594
*/
96-
HAL_StatusTypeDefHAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef*hcryp,uint32_t*AuthTag,uint32_tTimeout);
97-
HAL_StatusTypeDefHAL_CRYPEx_AESCCM_GenerateAuthTAG(CRYP_HandleTypeDef*hcryp,uint32_t*AuthTag,uint32_tTimeout);
95+
HAL_StatusTypeDefHAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef*hcryp,constuint32_t*AuthTag,
96+
uint32_tTimeout);
97+
HAL_StatusTypeDefHAL_CRYPEx_AESCCM_GenerateAuthTAG(CRYP_HandleTypeDef*hcryp,constuint32_t*AuthTag,
98+
uint32_tTimeout);
9899

99100
/**
100101
* @}

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_dma_ex.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ typedef struct
193193

194194
/* ------------------------- REQUEST -----------------------------------------*/
195195
HAL_StatusTypeDefHAL_DMAEx_ConfigMuxRequestGenerator(DMA_HandleTypeDef*hdma,
196-
HAL_DMA_MuxRequestGeneratorConfigTypeDef*pRequestGeneratorConfig);
196+
constHAL_DMA_MuxRequestGeneratorConfigTypeDef*pRequestGeneratorConfig);
197197
HAL_StatusTypeDefHAL_DMAEx_EnableMuxRequestGenerator(DMA_HandleTypeDef*hdma);
198198
HAL_StatusTypeDefHAL_DMAEx_DisableMuxRequestGenerator(DMA_HandleTypeDef*hdma);
199199
/* -------------------------------------------------------------------------- */

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_exti.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,9 @@ typedef struct
321321
* @{
322322
*/
323323
/* Configuration functions ****************************************************/
324-
HAL_StatusTypeDefHAL_EXTI_SetConfigLine(EXTI_HandleTypeDef*hexti,EXTI_ConfigTypeDef*pExtiConfig);
325-
HAL_StatusTypeDefHAL_EXTI_GetConfigLine(EXTI_HandleTypeDef*hexti,EXTI_ConfigTypeDef*pExtiConfig);
326-
HAL_StatusTypeDefHAL_EXTI_ClearConfigLine(EXTI_HandleTypeDef*hexti);
324+
HAL_StatusTypeDefHAL_EXTI_SetConfigLine(EXTI_HandleTypeDef*hexti,constEXTI_ConfigTypeDef*pExtiConfig);
325+
HAL_StatusTypeDefHAL_EXTI_GetConfigLine(constEXTI_HandleTypeDef*hexti,EXTI_ConfigTypeDef*pExtiConfig);
326+
HAL_StatusTypeDefHAL_EXTI_ClearConfigLine(constEXTI_HandleTypeDef*hexti);
327327
HAL_StatusTypeDefHAL_EXTI_RegisterCallback(EXTI_HandleTypeDef*hexti,EXTI_CallbackIDTypeDefCallbackID,void (*pPendingCbfn)(void));
328328
HAL_StatusTypeDefHAL_EXTI_GetHandle(EXTI_HandleTypeDef*hexti,uint32_tExtiLine);
329329
/**
@@ -335,10 +335,10 @@ HAL_StatusTypeDef HAL_EXTI_GetHandle(EXTI_HandleTypeDef *hexti, uint32_t ExtiLin
335335
* @{
336336
*/
337337
/* IO operation functions *****************************************************/
338-
voidHAL_EXTI_IRQHandler(EXTI_HandleTypeDef*hexti);
339-
uint32_tHAL_EXTI_GetPending(EXTI_HandleTypeDef*hexti,uint32_tEdge);
340-
voidHAL_EXTI_ClearPending(EXTI_HandleTypeDef*hexti,uint32_tEdge);
341-
voidHAL_EXTI_GenerateSWI(EXTI_HandleTypeDef*hexti);
338+
voidHAL_EXTI_IRQHandler(constEXTI_HandleTypeDef*hexti);
339+
uint32_tHAL_EXTI_GetPending(constEXTI_HandleTypeDef*hexti,uint32_tEdge);
340+
voidHAL_EXTI_ClearPending(constEXTI_HandleTypeDef*hexti,uint32_tEdge);
341+
voidHAL_EXTI_GenerateSWI(constEXTI_HandleTypeDef*hexti);
342342

343343
/**
344344
* @}

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_gpio.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ typedef enum
285285
*/
286286

287287
/* Initialization and de-initialization functions *****************************/
288-
voidHAL_GPIO_Init(GPIO_TypeDef*GPIOx,GPIO_InitTypeDef*GPIO_Init);
288+
voidHAL_GPIO_Init(GPIO_TypeDef*GPIOx,constGPIO_InitTypeDef*GPIO_Init);
289289
voidHAL_GPIO_DeInit(GPIO_TypeDef*GPIOx,uint32_tGPIO_Pin);
290290

291291
/**
@@ -298,7 +298,7 @@ void HAL_GPIO_DeInit(GPIO_TypeDef *GPIOx, uint32_t GPIO_Pin);
298298
*/
299299

300300
/* IO operation functions *****************************************************/
301-
GPIO_PinStateHAL_GPIO_ReadPin(GPIO_TypeDef*GPIOx,uint16_tGPIO_Pin);
301+
GPIO_PinStateHAL_GPIO_ReadPin(constGPIO_TypeDef*GPIOx,uint16_tGPIO_Pin);
302302
voidHAL_GPIO_WritePin(GPIO_TypeDef*GPIOx,uint16_tGPIO_Pin,GPIO_PinStatePinState);
303303
voidHAL_GPIO_WriteMultipleStatePin(GPIO_TypeDef*GPIOx,uint16_tPinReset,uint16_tPinSet);
304304
voidHAL_GPIO_TogglePin(GPIO_TypeDef*GPIOx,uint16_tGPIO_Pin);

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_pcd.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ PCD_StateTypeDef HAL_PCD_GetState(PCD_HandleTypeDef const *hpcd);
366366
*/
367367

368368

369-
#defineUSB_WAKEUP_EXTI_LINE (0x1U << 28)/*!< USB FS EXTI Line WakeUp Interrupt */
369+
#defineUSB_WAKEUP_EXTI_LINE (0x1UL << 28)/*!< USB FS EXTI Line WakeUp Interrupt */
370370

371371

372372
/**
@@ -418,8 +418,8 @@ PCD_StateTypeDef HAL_PCD_GetState(PCD_HandleTypeDef const *hpcd);
418418
*/
419419

420420
/******************** Bit definition for USB_COUNTn_RX register *************/
421-
#defineUSB_CNTRX_NBLK_MSK (0x1FU << 10)
422-
#defineUSB_CNTRX_BLSIZE (0x1U << 15)
421+
#defineUSB_CNTRX_NBLK_MSK (0x1FUL << 10)
422+
#defineUSB_CNTRX_BLSIZE (0x1UL << 15)
423423

424424
/* SetENDPOINT */
425425
#definePCD_SET_ENDPOINT(USBx,bEpNum,wRegValue) \
@@ -808,7 +808,7 @@ PCD_StateTypeDef HAL_PCD_GetState(PCD_HandleTypeDef const *hpcd);
808808
\
809809
if ((wCount) == 0U) \
810810
{ \
811-
*(pdwReg) |= USB_CNTRX_BLSIZE; \
811+
*(pdwReg) |=(uint16_t)USB_CNTRX_BLSIZE; \
812812
} \
813813
else if ((wCount) <= 62U) \
814814
{ \

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_pka.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,8 @@ void HAL_PKA_IRQHandler(PKA_HandleTypeDef *hpka);
541541
* @{
542542
*/
543543
/* Peripheral State and Error functions ***************************************/
544-
HAL_PKA_StateTypeDefHAL_PKA_GetState(PKA_HandleTypeDef*hpka);
545-
uint32_tHAL_PKA_GetError(PKA_HandleTypeDef*hpka);
544+
HAL_PKA_StateTypeDefHAL_PKA_GetState(constPKA_HandleTypeDef*hpka);
545+
uint32_tHAL_PKA_GetError(constPKA_HandleTypeDef*hpka);
546546
/**
547547
* @}
548548
*/

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_hal_tim.h‎

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,18 +2105,12 @@ mode.
21052105

21062106
#defineTIM_CHANNEL_STATE_SET_ALL(__HANDLE__,__CHANNEL_STATE__)\
21072107
do {\
2108-
(__HANDLE__)->ChannelState[0] = \
2109-
(__CHANNEL_STATE__); \
2110-
(__HANDLE__)->ChannelState[1] = \
2111-
(__CHANNEL_STATE__); \
2112-
(__HANDLE__)->ChannelState[2] = \
2113-
(__CHANNEL_STATE__); \
2114-
(__HANDLE__)->ChannelState[3] = \
2115-
(__CHANNEL_STATE__); \
2116-
(__HANDLE__)->ChannelState[4] = \
2117-
(__CHANNEL_STATE__); \
2118-
(__HANDLE__)->ChannelState[5] = \
2119-
(__CHANNEL_STATE__); \
2108+
(__HANDLE__)->ChannelState[0] = (__CHANNEL_STATE__); \
2109+
(__HANDLE__)->ChannelState[1] = (__CHANNEL_STATE__); \
2110+
(__HANDLE__)->ChannelState[2] = (__CHANNEL_STATE__); \
2111+
(__HANDLE__)->ChannelState[3] = (__CHANNEL_STATE__); \
2112+
(__HANDLE__)->ChannelState[4] = (__CHANNEL_STATE__); \
2113+
(__HANDLE__)->ChannelState[5] = (__CHANNEL_STATE__); \
21202114
} while(0)
21212115

21222116
#defineTIM_CHANNEL_N_STATE_GET(__HANDLE__,__CHANNEL__)\
@@ -2133,14 +2127,10 @@ mode.
21332127

21342128
#defineTIM_CHANNEL_N_STATE_SET_ALL(__HANDLE__,__CHANNEL_STATE__)\
21352129
do {\
2136-
(__HANDLE__)->ChannelNState[0] = \
2137-
(__CHANNEL_STATE__); \
2138-
(__HANDLE__)->ChannelNState[1] = \
2139-
(__CHANNEL_STATE__); \
2140-
(__HANDLE__)->ChannelNState[2] = \
2141-
(__CHANNEL_STATE__); \
2142-
(__HANDLE__)->ChannelNState[3] = \
2143-
(__CHANNEL_STATE__); \
2130+
(__HANDLE__)->ChannelNState[0] = (__CHANNEL_STATE__); \
2131+
(__HANDLE__)->ChannelNState[1] = (__CHANNEL_STATE__); \
2132+
(__HANDLE__)->ChannelNState[2] = (__CHANNEL_STATE__); \
2133+
(__HANDLE__)->ChannelNState[3] = (__CHANNEL_STATE__); \
21442134
} while(0)
21452135

21462136
/**

‎system/Drivers/STM32WBxx_HAL_Driver/Inc/stm32wbxx_ll_adc.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,11 @@ extern "C" {
435435

436436
/* ADC internal channels related definitions */
437437
/* Internal voltage reference VrefInt */
438-
#defineVREFINT_CAL_ADDR ((uint16_t*) (0x1FFF75AAUL))/* Internal voltage reference, address of parameter VREFINT: VrefInt ADC raw data acquired at temperature 30 DegC (tolerance: +-5 DegC), Vref+ = 3.6 V (tolerance: +-10 mV). */
438+
#defineVREFINT_CAL_ADDR ((constuint16_t*) (0x1FFF75AAUL))/* Internal voltage reference, address of parameter VREFINT: VrefInt ADC raw data acquired at temperature 30 DegC (tolerance: +-5 DegC), Vref+ = 3.6 V (tolerance: +-10 mV). */
439439
#defineVREFINT_CAL_VREF (3600UL)/* Analog voltage reference (Vref+) value with which temperature sensor has been calibrated in production (tolerance: +-10 mV) (unit: mV). */
440440
/* Temperature sensor */
441-
#defineTEMPSENSOR_CAL1_ADDR ((uint16_t*) (0x1FFF75A8UL))/* Internal temperature sensor, address of parameter TS_CAL1: On STM32WB, temperature sensor ADC raw data acquired at temperature 30 DegC (tolerance: +-5 DegC), Vref+ = 3.0 V (tolerance: +-10 mV). */
442-
#defineTEMPSENSOR_CAL2_ADDR ((uint16_t*) (0x1FFF75CAUL))/* Internal temperature sensor, address of parameter TS_CAL2: On STM32WB, temperature sensor ADC raw data acquired at temperature 130 DegC (tolerance: +-5 DegC), Vref+ = 3.0 V (tolerance: +-10 mV). */
441+
#defineTEMPSENSOR_CAL1_ADDR ((constuint16_t*) (0x1FFF75A8UL))/* Internal temperature sensor, address of parameter TS_CAL1: On STM32WB, temperature sensor ADC raw data acquired at temperature 30 DegC (tolerance: +-5 DegC), Vref+ = 3.0 V (tolerance: +-10 mV). */
442+
#defineTEMPSENSOR_CAL2_ADDR ((constuint16_t*) (0x1FFF75CAUL))/* Internal temperature sensor, address of parameter TS_CAL2: On STM32WB, temperature sensor ADC raw data acquired at temperature 130 DegC (tolerance: +-5 DegC), Vref+ = 3.0 V (tolerance: +-10 mV). */
443443
#defineTEMPSENSOR_CAL1_TEMP (30L)/* Internal temperature sensor, temperature at which temperature sensor has been calibrated in production for data into TEMPSENSOR_CAL1_ADDR (tolerance: +-5 DegC) (unit: DegC). */
444444
#defineTEMPSENSOR_CAL2_TEMP (130L)/* Internal temperature sensor, temperature at which temperature sensor has been calibrated in production for data into TEMPSENSOR_CAL2_ADDR (tolerance: +-5 DegC) (unit: DegC). */
445445
#defineTEMPSENSOR_CAL_VREFANALOG (3000UL)/* Analog voltage reference (Vref+) voltage with which temperature sensor has been calibrated in production (+-10 mV) (unit: mV). */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp