Skip to content

Commit 0a31f19

Browse files
committed
system(wba) update STM32WBAxx HAL Drivers to v1.10.0
Included in STM32CubeWBA FW v1.10.0 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 2e3c1a6 commit 0a31f19

21 files changed

Lines changed: 1475 additions & 676 deletions

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,11 @@ extern "C" {
19171917
#define HAL_PWREx_DisableSDADCAnalog HAL_PWREx_DisableSDADC
19181918
#define HAL_PWREx_EnableSDADCAnalog HAL_PWREx_EnableSDADC
19191919
#define HAL_PWREx_PVMConfig HAL_PWREx_ConfigPVM
1920-
1920+
#if defined(STM32G0C1xx) || defined(STM32G0B1xx)
1921+
#define PWR_PVM_USB PWR_PVM_ENABLE
1922+
#define PWR_FLAG_PVMOUSB PWR_FLAG_PVMOVDDIO2
1923+
#define PWR_FLAG_PVMO_USB PWR_FLAG_PVMO_VDDIO2
1924+
#endif /* STM32G0C1xx || STM32G0B1xx */
19211925
#define PWR_MODE_NORMAL PWR_PVD_MODE_NORMAL
19221926
#define PWR_MODE_IT_RISING PWR_PVD_MODE_IT_RISING
19231927
#define PWR_MODE_IT_FALLING PWR_PVD_MODE_IT_FALLING
@@ -3713,8 +3717,7 @@ extern "C" {
37133717
#define RCC_SYSCLKSOURCE_STATUS_PLLR RCC_SYSCLKSOURCE_STATUS_PLLCLK
37143718
#endif
37153719

3716-
#if defined(STM32L4) || defined(STM32WB) || defined(STM32G0) || defined(STM32G4) || defined(STM32L5) || \
3717-
defined(STM32WL) || defined(STM32C0) || defined(STM32N6) || defined(STM32H7RS) || defined(STM32U0)
3720+
#if defined(STM32L4) || defined(STM32WB) || defined(STM32G0) || defined(STM32G4) || defined(STM32L5) || defined(STM32WL) || defined(STM32C0) || defined(STM32N6) || defined(STM32H7RS) || defined(STM32U0)
37183721
#define RCC_RTCCLKSOURCE_NO_CLK RCC_RTCCLKSOURCE_NONE
37193722
#else
37203723
#define RCC_RTCCLKSOURCE_NONE RCC_RTCCLKSOURCE_NO_CLK
@@ -3963,10 +3966,7 @@ extern "C" {
39633966
/** @defgroup HAL_RTC_Aliased_Macros HAL RTC Aliased Macros maintained for legacy purpose
39643967
* @{
39653968
*/
3966-
#if defined (STM32G0) || defined (STM32L5) || defined (STM32L412xx) || defined (STM32L422xx) || \
3967-
defined (STM32L4P5xx)|| defined (STM32L4Q5xx) || defined (STM32G4) || defined (STM32WL) || defined (STM32U5) || \
3968-
defined (STM32WBA) || defined (STM32H5) || defined (STM32C0) || defined (STM32N6) || defined (STM32H7RS) || \
3969-
defined (STM32U0) || defined (STM32U3)
3969+
#if defined (STM32G0) || defined (STM32L5) || defined (STM32L412xx) || defined (STM32L422xx) || defined (STM32L4P5xx)|| defined (STM32L4Q5xx) || defined (STM32G4) || defined (STM32WL) || defined (STM32U5) || defined (STM32WBA) || defined (STM32H5) || defined (STM32C0) || defined (STM32N6) || defined (STM32H7RS) || defined (STM32U0) || defined (STM32U3)
39703970
#else
39713971
#define __HAL_RTC_CLEAR_FLAG __HAL_RTC_EXTI_CLEAR_FLAG
39723972
#endif

‎system/Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ extern HAL_TickFreqTypeDef uwTickFreq;
7979
* @brief STM32WBAxx HAL Driver version number
8080
*/
8181
#define __STM32WBAxx_HAL_VERSION_MAIN (0x01UL) /*!< [31:24] main version */
82-
#define __STM32WBAxx_HAL_VERSION_SUB1 (0x09UL) /*!< [23:16] sub1 version */
82+
#define __STM32WBAxx_HAL_VERSION_SUB1 (0x0AUL) /*!< [23:16] sub1 version */
8383
#define __STM32WBAxx_HAL_VERSION_SUB2 (0x00UL) /*!< [15:8] sub2 version */
8484
#define __STM32WBAxx_HAL_VERSION_RC (0x00UL) /*!< [7:0] release candidate */
8585
#define __STM32WBAxx_HAL_VERSION ((__STM32WBAxx_HAL_VERSION_MAIN << 24U)\

‎system/Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_cryp.h‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ extern "C" {
2626

2727
/* Includes ------------------------------------------------------------------*/
2828
#include "stm32wbaxx_hal_def.h"
29+
#if (defined(RNG_HTSR0_RPERRX) || defined(RNG_HTSR1_ADERRX))
30+
#include "stm32wbaxx_ll_rng.h"
31+
#endif /* RNG_HTSR0_RPERRX || RNG_HTSR1_ADERRX */
2932

3033
/** @addtogroup STM32WBAxx_HAL_Driver
3134
* @{
@@ -502,7 +505,8 @@ typedef void (*pCRYP_CallbackTypeDef)(CRYP_HandleTypeDef *hcryp); /*!< point
502505
& (CRYP_FLAG_KEIF)) == (CRYP_FLAG_KEIF))?SET:RESET) : \
503506
((__FLAG__) == CRYP_FLAG_RWEIF )?((((__HANDLE__)->Instance->ISR \
504507
& (CRYP_FLAG_RWEIF)) == (CRYP_FLAG_RWEIF))?SET:RESET) : \
505-
((((__HANDLE__)->Instance->ISR & (CRYP_FLAG_CCF)) == (CRYP_FLAG_CCF)))?SET:RESET)
508+
((((__HANDLE__)->Instance->ISR & (CRYP_FLAG_CCF)) == \
509+
(CRYP_FLAG_CCF)))?SET:RESET)
506510

507511
/** @brief Clear the CRYP pending status flag.
508512
* @param __HANDLE__ specifies the CRYP handle.

‎system/Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_flash.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,12 @@ void HAL_FLASH_OperationErrorCallback(uint32_t ReturnValue);
10331033
*/
10341034
HAL_StatusTypeDef HAL_FLASH_Unlock(void);
10351035
HAL_StatusTypeDef HAL_FLASH_Lock(void);
1036+
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
1037+
HAL_StatusTypeDef HAL_FLASH_Unlock_S(void);
1038+
HAL_StatusTypeDef HAL_FLASH_Lock_S(void);
1039+
HAL_StatusTypeDef HAL_FLASH_Unlock_NS(void);
1040+
HAL_StatusTypeDef HAL_FLASH_Lock_NS(void);
1041+
#endif /* __ARM_FEATURE_CMSE */
10361042
/* Option bytes control */
10371043
HAL_StatusTypeDef HAL_FLASH_OB_Unlock(void);
10381044
HAL_StatusTypeDef HAL_FLASH_OB_Lock(void);

‎system/Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_pcd.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ typedef struct
119119
uint32_t BESL;
120120
uint32_t FrameNumber; /*!< Store Current Frame number */
121121

122-
123122
uint32_t lpm_active; /*!< Enable or disable the Link Power Management .
124123
This parameter can be set to ENABLE or DISABLE */
125124

@@ -226,7 +225,6 @@ typedef struct
226225
#define __HAL_PCD_CLEAR_FLAG(__HANDLE__, __INTERRUPT__) (((__HANDLE__)->Instance->ISTR)\
227226
&= (uint16_t)(~(__INTERRUPT__)))
228227
#endif /* defined (USB_DRD_FS) */
229-
230228
/**
231229
* @}
232230
*/

‎system/Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_hal_rng_ex.h‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ extern "C" {
2626

2727
/* Includes ------------------------------------------------------------------*/
2828
#include "stm32wbaxx_hal_def.h"
29+
#if (defined(RNG_HTSR0_RPERRX) || defined(RNG_HTSR1_ADERRX))
30+
#include "stm32wbaxx_ll_rng.h"
31+
#endif /* RNG_HTSR0_RPERRX) || RNG_HTSR1_ADERRX */
2932

3033
/** @addtogroup STM32WBAxx_HAL_Driver
3134
* @{
@@ -56,7 +59,7 @@ typedef struct
5659
uint32_t Config3; /*!< Config3 must be a value between 0 and 0xF */
5760
uint32_t ClockDivider; /*!< Clock Divider factor.This parameter can
5861
be a value of @ref RNGEx_Clock_Divider_Factor */
59-
uint32_t NistCompliance; /*!< NIST compliance.This parameter can be a
62+
uint32_t NistCompliance; /*!< NIST compliance configuration.This parameter can be a
6063
value of @ref RNGEx_NIST_Compliance */
6164
uint32_t AutoReset; /*!< automatic reset When a noise source error occurs
6265
value of @ref RNGEx_Auto_Reset */
@@ -115,8 +118,8 @@ typedef struct
115118
/** @defgroup RNGEx_NIST_Compliance NIST Compliance configuration
116119
* @{
117120
*/
118-
#define RNG_NIST_COMPLIANT (0x00000000UL) /*!< NIST compliant configuration*/
119-
#define RNG_CUSTOM_NIST (RNG_CR_NISTC) /*!< Custom NIST configuration */
121+
#define RNG_NIST_COMPLIANT (0x00000000UL) /*!< Default NIST compliant configuration*/
122+
#define RNG_CUSTOM_NIST (RNG_CR_NISTC) /*!< Custom NIST compliant configuration */
120123

121124
/**
122125
* @}
@@ -195,6 +198,12 @@ typedef struct
195198
#define IS_RNG_CONFIG3(__CONFIG3__) ((__CONFIG3__) <= 0xFUL)
196199
#define IS_RNG_ARDIS(__ARDIS__) (((__ARDIS__) == RNG_ARDIS_ENABLE) || \
197200
((__ARDIS__) == RNG_ARDIS_DISABLE))
201+
#if defined(RNG_HTCR3_HTCFG)
202+
#define IS_RNG_HTCR_INDEX(__INDEX__) (((__INDEX__) == 0x01U) || \
203+
((__INDEX__) == 0x02U) || \
204+
((__INDEX__) == 0x03U))
205+
#define IS_RNG_HTCR_VALUE(__VALUE__) ((__VALUE__) <= 0x3FFFF)
206+
#endif /* RNG_HTCR0_HTCFG || RNG_HTCR1_HTCFG || RNG_HTCR2_HTCFG || RNG_HTCR3_HTCFG */
198207

199208

200209
/**
@@ -230,6 +239,9 @@ HAL_StatusTypeDef HAL_RNGEx_LockConfig(RNG_HandleTypeDef *hrng);
230239
* @{
231240
*/
232241
HAL_StatusTypeDef HAL_RNGEx_RecoverSeedError(RNG_HandleTypeDef *hrng);
242+
#if defined(RNG_HTCR3_HTCFG)
243+
HAL_StatusTypeDef HAL_RNGEx_SetHealthFactorConfig(RNG_HandleTypeDef *hrng, uint32_t htcr_idx, uint32_t htcr_value);
244+
#endif /* RNG_HTCR0_HTCFG || RNG_HTCR1_HTCFG || RNG_HTCR2_HTCFG || RNG_HTCR3_HTCFG */
233245

234246
/**
235247
* @}

‎system/Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_ll_rng.h‎

Lines changed: 161 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,28 @@ typedef struct
134134
* @}
135135
*/
136136

137+
#if (defined(RNG_NSCR_EN_OSC1) || defined(RNG_NSCR_EN_OSC2) ||defined(RNG_NSCR_EN_OSC3))
138+
/** @defgroup RNG_LL_NSCR_Oscillator_Sources Oscillator Sources Defines
139+
* @{
140+
*/
141+
#define LL_RNG_OSC_1 RNG_NSCR_EN_OSC1
142+
#define LL_RNG_OSC_2 RNG_NSCR_EN_OSC2
143+
#define LL_RNG_OSC_3 RNG_NSCR_EN_OSC3
144+
/**
145+
* @}
146+
*/
147+
148+
/** @defgroup RNG_LL_NSCR_Noise_Sources_Ports Noise Sources Ports Defines
149+
* @{
150+
*/
151+
#define LL_RNG_NOISE_SRC_1 (0x01UL)
152+
#define LL_RNG_NOISE_SRC_2 (0x02UL)
153+
#define LL_RNG_NOISE_SRC_3 (0x04UL)
154+
/**
155+
* @}
156+
*/
157+
158+
#endif /* RNG_CR_CONDRST */
137159
/** @defgroup RNG_LL_EC_IT IT Defines
138160
* @brief IT defines which can be used with LL_RNG_ReadReg and LL_RNG_WriteReg macros
139161
* @{
@@ -677,11 +699,11 @@ __STATIC_INLINE void LL_RNG_SetHealthConfig(RNG_TypeDef *RNGx, uint32_t HTCFG)
677699
#if defined(RNG_HTCR_NIST_VALUE)
678700
/* For NIST compliance we can fin the recommended value in the application note AN4230 */
679701
#endif /* defined(RNG_HTCR_NIST_VALUE) */
680-
#if defined(RNG_HTCR0_HTCFG)
702+
#if defined(RNG_HTCR3_HTCFG)
681703
WRITE_REG(RNGx->HTCR[0], HTCFG);
682704
#else
683705
WRITE_REG(RNGx->HTCR, HTCFG);
684-
#endif /* defined(RNG_HTCR0_HTCFG) */
706+
#endif /* RNG_HTCR0_HTCFG || RNG_HTCR1_HTCFG || RNG_HTCR2_HTCFG || RNG_HTCR3_HTCFG */
685707
}
686708

687709
/**
@@ -692,17 +714,53 @@ __STATIC_INLINE void LL_RNG_SetHealthConfig(RNG_TypeDef *RNGx, uint32_t HTCFG)
692714
*/
693715
__STATIC_INLINE uint32_t LL_RNG_GetHealthConfig(const RNG_TypeDef *RNGx)
694716
{
695-
#if defined(RNG_HTCR0_HTCFG)
717+
#if defined(RNG_HTCR3_HTCFG)
696718
return (uint32_t)READ_REG(RNGx->HTCR[0]);
697719
#else
698720
return (uint32_t)READ_REG(RNGx->HTCR);
699-
#endif /* defined(RNG_HTCR0_HTCFG) */
721+
#endif /* RNG_HTCR0_HTCFG || RNG_HTCR1_HTCFG || RNG_HTCR2_HTCFG || RNG_HTCR3_HTCFG */
722+
}
723+
724+
/**
725+
* @}
726+
*/
727+
#if defined(RNG_HTCR3_HTCFG)
728+
729+
/** @defgroup RNG Additional Health Test Control
730+
* @{
731+
*/
732+
733+
/**
734+
* @brief Set RNG Additional Health Test Control
735+
* @rmtoll HTCR HTCFG LL_RNG_SetAdditionalHealthTest
736+
* @param RNGx RNG Instance
737+
* @param htcr_idx Additional health tests registers index can be one f the following values
738+
* @param HTCFG can be values of 32 bits
739+
* @retval None
740+
*/
741+
__STATIC_INLINE void LL_RNG_SetAdditionalHealthTest(RNG_TypeDef *RNGx, uint32_t htcr_idx, uint32_t HTCFG)
742+
{
743+
WRITE_REG(RNGx->HTCR[htcr_idx], HTCFG);
700744
}
701745

746+
/**
747+
* @brief Get RNG Additional Health Test Control
748+
* @rmtoll HTCR HTCFG LL_RNG_GetAdditionalHealthTest
749+
* @param RNGx RNG Instance
750+
* @param htcr_idx Additional health tests registers index
751+
* @retval Return 32-bit RNG Health Test configuration
752+
*/
753+
__STATIC_INLINE uint32_t LL_RNG_GetAdditionalHealthTest(const RNG_TypeDef *RNGx, uint32_t htcr_idx)
754+
{
755+
return (uint32_t)READ_REG(RNGx->HTCR[htcr_idx]);
756+
}
702757
/**
703758
* @}
704759
*/
705760

761+
#endif /* RNG_HTCR0_HTCFG || RNG_HTCR1_HTCFG || RNG_HTCR2_HTCFG || RNG_HTCR3_HTCFG */
762+
#if defined(RNG_NSCR_NIST_VALUE)
763+
706764
/** @defgroup RNG_LL_EF_Noise_Test_Control Noise Test Control
707765
* @{
708766
*/
@@ -728,14 +786,112 @@ __STATIC_INLINE void LL_RNG_SetNoiseConfig(RNG_TypeDef *RNGx, uint32_t NOISECFG)
728786
*/
729787
__STATIC_INLINE uint32_t LL_RNG_GetNoiseConfig(const RNG_TypeDef *RNGx)
730788
{
731-
732789
return (uint32_t)READ_REG(RNGx->NSCR);
733790
}
734791

735792
/**
736793
* @}
737794
*/
738795

796+
#endif /* defined(RNG_NSCR_NIST_VALUE) */
797+
#if defined(RNG_HTCR3_HTCFG)
798+
/** @defgroup RNG Health Tests Status control
799+
* @{
800+
*/
801+
802+
/**
803+
* @brief Get RNG Health Tests Status.
804+
* @rmtoll HTSR htsr_idx LL_RNG_GetHealthTestStatus
805+
* @param RNGx RNG Instance
806+
* @param htsr_idx Health tests registers status index
807+
* @retval Return 32-bit RNG Health Test Status
808+
*/
809+
__STATIC_INLINE uint32_t LL_RNG_GetHealthTestStatus(const RNG_TypeDef *RNGx, uint32_t htsr_idx)
810+
{
811+
return (uint32_t)READ_REG(RNGx->HTSR[htsr_idx]);
812+
}
813+
814+
/**
815+
* @}
816+
*/
817+
818+
#endif /* defined(RNG_HTCR0_HTCFG) || defined(RNG_HTCR1_HTCFG) || defined(RNG_HTCR2_HTCFG) */
819+
#if defined(RNG_NSMR_MOSC1)
820+
/** @defgroup RNG noise source mask Control
821+
* @{
822+
*/
823+
824+
/**
825+
* @brief Set RNG noise source mask.
826+
* @rmtoll NSMR htsr_idx LL_RNG_GetNoiseSourceMask
827+
* @param RNGx RNG Instance
828+
* @param nsmr can be values of 32 bits
829+
*/
830+
__STATIC_INLINE void LL_RNG_SetNoiseSourceMask(RNG_TypeDef *RNGx, uint32_t nsmr)
831+
{
832+
WRITE_REG(RNGx->NSMR, nsmr);
833+
}
834+
835+
/**
836+
* @brief Get RNG noise source mask.
837+
* @rmtoll NSMR htsr_idx LL_RNG_GetNoiseSourceMask
838+
* @param RNGx RNG Instance
839+
* @retval Return 32-bit RNG Noise Source Mask
840+
*/
841+
__STATIC_INLINE uint32_t LL_RNG_GetNoiseSourceMask(const RNG_TypeDef *RNGx)
842+
{
843+
return READ_REG(RNGx->NSMR);
844+
}
845+
846+
/**
847+
* @}
848+
*/
849+
850+
#endif /* RNG_NSMR_MOSC1 */
851+
#if (defined(RNG_NSCR_EN_OSC1) || defined(RNG_NSCR_EN_OSC2) || defined(RNG_NSCR_EN_OSC3))
852+
/** @defgroup RNG noise source Control
853+
* @{
854+
*/
855+
856+
/**
857+
* @brief Set RNG Noise Source Configuration.
858+
* @rmtoll
859+
* NSCR NSCR LL_RNG_GetOscNoiseSrc
860+
* @param RNGx RNG Instance
861+
* @param osc be one of the following values:
862+
* @arg @ref LL_RNG_OSC_1
863+
* @arg @ref LL_RNG_OSC_2
864+
* @arg @ref LL_RNG_OSC_3
865+
* @retval can be one of the following values:
866+
* @arg @ref LL_RNG_NOISE_SRC_1
867+
* @arg @ref LL_RNG_NOISE_SRC_2
868+
* @arg @ref LL_RNG_NOISE_SRC_3
869+
*/
870+
__STATIC_INLINE void LL_RNG_SetOscNoiseSrc(RNG_TypeDef *RNGx, uint32_t osc)
871+
{
872+
WRITE_REG(RNGx->NSCR, osc);
873+
}
874+
875+
/**
876+
* @brief Get RNG Noise Source Configuration.
877+
* @rmtoll
878+
* NSCR NSCR LL_RNG_GetOscNoiseSrc
879+
* @param RNGx RNG Instance
880+
* @param osc be one of the following values:
881+
* @arg @ref LL_RNG_OSC_1
882+
* @arg @ref LL_RNG_OSC_2
883+
* @arg @ref LL_RNG_OSC_3
884+
* @retval can be one of the following values:
885+
* @arg @ref LL_RNG_NOISE_SRC_1
886+
* @arg @ref LL_RNG_NOISE_SRC_2
887+
* @arg @ref LL_RNG_NOISE_SRC_3
888+
*/
889+
__STATIC_INLINE uint32_t LL_RNG_GetOscNoiseSrc(const RNG_TypeDef *RNGx, uint32_t osc)
890+
{
891+
return (READ_BIT(RNGx->NSCR, osc) >> POSITION_VAL(osc));
892+
}
893+
894+
#endif /* defined(defined(RNG_NSCR_EN_OSC1) || RNG_NSCR_EN_OSC2 ||RNG_NSCR_EN_OSC3) */
739895
#if defined(USE_FULL_LL_DRIVER)
740896
/** @defgroup RNG_LL_EF_Init Initialization and de-initialization functions
741897
* @{

‎system/Drivers/STM32WBAxx_HAL_Driver/Inc/stm32wbaxx_ll_usb.h‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -993,21 +993,21 @@ typedef USB_HCTypeDef USB_DRD_HCTypeDef;
993993
#define USB_DRD_SET_CHEP_CNT_RX_REG(pdwReg, wCount) \
994994
do { \
995995
uint32_t wNBlocks; \
996-
\
997-
(pdwReg) &= ~(USB_CNTRX_BLSIZE | USB_CNTRX_NBLK_MSK); \
996+
uint32_t wRegVal = (uint32_t)(pdwReg) & ~(USB_CNTRX_BLSIZE | USB_CNTRX_NBLK_MSK); \
998997
\
999998
if ((wCount) == 0U) \
1000999
{ \
1001-
(pdwReg) |= USB_CNTRX_BLSIZE; \
1000+
wRegVal |= USB_CNTRX_BLSIZE; \
10021001
} \
10031002
else if ((wCount) <= 62U) \
10041003
{ \
1005-
USB_DRD_CALC_BLK2((pdwReg), (wCount), wNBlocks); \
1004+
USB_DRD_CALC_BLK2(wRegVal, (wCount), wNBlocks); \
10061005
} \
10071006
else \
10081007
{ \
1009-
USB_DRD_CALC_BLK32((pdwReg), (wCount), wNBlocks); \
1008+
USB_DRD_CALC_BLK32(wRegVal, (wCount), wNBlocks); \
10101009
} \
1010+
(pdwReg) = wRegVal; \
10111011
} while(0) /* USB_DRD_SET_CHEP_CNT_RX_REG */
10121012

10131013

@@ -1266,9 +1266,10 @@ HAL_StatusTypeDef USB_HC_Activate(USB_DRD_TypeDef *USBx, uint8_t phy_ch_num, uin
12661266
#endif /* defined (HAL_HCD_MODULE_ENABLED) */
12671267

12681268
uint32_t USB_GetHostSpeed(USB_DRD_TypeDef const *USBx);
1269-
uint32_t USB_GetCurrentFrame(USB_DRD_TypeDef const *USBx);
12701269
HAL_StatusTypeDef USB_StopHost(USB_DRD_TypeDef *USBx);
12711270

1271+
uint32_t USB_GetCurrentFrame(USB_DRD_TypeDef const *USBx);
1272+
12721273
HAL_StatusTypeDef USB_ActivateRemoteWakeup(USB_DRD_TypeDef *USBx);
12731274
HAL_StatusTypeDef USB_DeActivateRemoteWakeup(USB_DRD_TypeDef *USBx);
12741275

0 commit comments

Comments
 (0)