@@ -4969,13 +4969,16 @@ typedef struct
49694969 tmpreg = READ_BIT (RCC -> APB1ENR , RCC_APB1ENR_RTCAPBEN );\
49704970 UNUSED (tmpreg ); \
49714971 } while (0U )
4972+ #if defined(STM32F412Zx ) || defined(STM32F412Vx ) || defined(STM32F412Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
49724973#define __HAL_RCC_USART3_CLK_ENABLE () do { \
49734974 __IO uint32_t tmpreg = 0x00U; \
49744975 SET_BIT(RCC->APB1ENR, RCC_APB1ENR_USART3EN);\
49754976 /* Delay after an RCC peripheral clock enabling */ \
49764977 tmpreg = READ_BIT (RCC -> APB1ENR , RCC_APB1ENR_USART3EN );\
49774978 UNUSED (tmpreg ); \
49784979 } while (0U )
4980+ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */
4981+
49794982#if defined(STM32F413xx ) || defined(STM32F423xx )
49804983#define __HAL_RCC_UART4_CLK_ENABLE () do { \
49814984 __IO uint32_t tmpreg = 0x00U; \
@@ -5095,7 +5098,9 @@ typedef struct
50955098#endif /* STM32F413xx || STM32F423xx */
50965099#define __HAL_RCC_RTCAPB_CLK_DISABLE () (RCC->APB1ENR &= ~(RCC_APB1ENR_RTCAPBEN))
50975100#define __HAL_RCC_SPI3_CLK_DISABLE () (RCC->APB1ENR &= ~(RCC_APB1ENR_SPI3EN))
5101+ #if defined(STM32F412Zx ) || defined(STM32F412Vx ) || defined(STM32F412Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
50985102#define __HAL_RCC_USART3_CLK_DISABLE () (RCC->APB1ENR &= ~(RCC_APB1ENR_USART3EN))
5103+ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */
50995104#if defined(STM32F413xx ) || defined(STM32F423xx )
51005105#define __HAL_RCC_UART4_CLK_DISABLE () (RCC->APB1ENR &= ~(RCC_APB1ENR_UART4EN))
51015106#define __HAL_RCC_UART5_CLK_DISABLE () (RCC->APB1ENR &= ~(RCC_APB1ENR_UART5EN))
@@ -5135,7 +5140,9 @@ typedef struct
51355140#endif /* STM32F413xx || STM32F423xx */
51365141#define __HAL_RCC_RTCAPB_IS_CLK_ENABLED () ((RCC->APB1ENR & (RCC_APB1ENR_RTCAPBEN)) != RESET)
51375142#define __HAL_RCC_SPI3_IS_CLK_ENABLED () ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) != RESET)
5143+ #if defined(STM32F412Zx ) || defined(STM32F412Vx ) || defined(STM32F412Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
51385144#define __HAL_RCC_USART3_IS_CLK_ENABLED () ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) != RESET)
5145+ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx | STM32F423xx */
51395146#if defined(STM32F413xx ) || defined(STM32F423xx )
51405147#define __HAL_RCC_UART4_IS_CLK_ENABLED () ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) != RESET)
51415148#define __HAL_RCC_UART5_IS_CLK_ENABLED () ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) != RESET)
@@ -5164,7 +5171,9 @@ typedef struct
51645171#endif /* STM32F413xx || STM32F423xx */
51655172#define __HAL_RCC_RTCAPB_IS_CLK_DISABLED () ((RCC->APB1ENR & (RCC_APB1ENR_RTCAPBEN)) == RESET)
51665173#define __HAL_RCC_SPI3_IS_CLK_DISABLED () ((RCC->APB1ENR & (RCC_APB1ENR_SPI3EN)) == RESET)
5174+ #if defined(STM32F412Zx ) || defined(STM32F412Vx ) || defined(STM32F412Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
51675175#define __HAL_RCC_USART3_IS_CLK_DISABLED () ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) == RESET)
5176+ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx | STM32F423xx */
51685177#if defined(STM32F413xx ) || defined(STM32F423xx )
51695178#define __HAL_RCC_UART4_IS_CLK_DISABLED () ((RCC->APB1ENR & (RCC_APB1ENR_UART4EN)) == RESET)
51705179#define __HAL_RCC_UART5_IS_CLK_DISABLED () ((RCC->APB1ENR & (RCC_APB1ENR_UART5EN)) == RESET)
@@ -5436,7 +5445,9 @@ typedef struct
54365445#define __HAL_RCC_LPTIM1_FORCE_RESET () (RCC->APB1RSTR |= (RCC_APB1RSTR_LPTIM1RST))
54375446#endif /* STM32F413xx || STM32F423xx */
54385447#define __HAL_RCC_SPI3_FORCE_RESET () (RCC->APB1RSTR |= (RCC_APB1RSTR_SPI3RST))
5448+ #if defined(STM32F412Zx ) || defined(STM32F412Vx ) || defined(STM32F412Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
54395449#define __HAL_RCC_USART3_FORCE_RESET () (RCC->APB1RSTR |= (RCC_APB1RSTR_USART3RST))
5450+ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */
54405451#if defined(STM32F413xx ) || defined(STM32F423xx )
54415452#define __HAL_RCC_UART4_FORCE_RESET () (RCC->APB1RSTR |= (RCC_APB1RSTR_UART4RST))
54425453#define __HAL_RCC_UART5_FORCE_RESET () (RCC->APB1RSTR |= (RCC_APB1RSTR_UART5RST))
@@ -5464,7 +5475,9 @@ typedef struct
54645475#define __HAL_RCC_LPTIM1_RELEASE_RESET () (RCC->APB1RSTR &= ~(RCC_APB1RSTR_LPTIM1RST))
54655476#endif /* STM32F413xx || STM32F423xx */
54665477#define __HAL_RCC_SPI3_RELEASE_RESET () (RCC->APB1RSTR &= ~(RCC_APB1RSTR_SPI3RST))
5478+ #if defined(STM32F412Zx ) || defined(STM32F412Vx ) || defined(STM32F412Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
54675479#define __HAL_RCC_USART3_RELEASE_RESET () (RCC->APB1RSTR &= ~(RCC_APB1RSTR_USART3RST))
5480+ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */
54685481#if defined(STM32F413xx ) || defined(STM32F423xx )
54695482#define __HAL_RCC_UART4_RELEASE_RESET () (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART4RST))
54705483#define __HAL_RCC_UART5_RELEASE_RESET () (RCC->APB1RSTR &= ~(RCC_APB1RSTR_UART5RST))
@@ -5620,7 +5633,9 @@ typedef struct
56205633#endif /* STM32F413xx || STM32F423xx */
56215634#define __HAL_RCC_RTCAPB_CLK_SLEEP_ENABLE () (RCC->APB1LPENR |= (RCC_APB1LPENR_RTCAPBLPEN))
56225635#define __HAL_RCC_SPI3_CLK_SLEEP_ENABLE () (RCC->APB1LPENR |= (RCC_APB1LPENR_SPI3LPEN))
5636+ #if defined(STM32F412Zx ) || defined(STM32F412Vx ) || defined(STM32F412Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
56235637#define __HAL_RCC_USART3_CLK_SLEEP_ENABLE () (RCC->APB1LPENR |= (RCC_APB1LPENR_USART3LPEN))
5638+ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */
56245639#if defined(STM32F413xx ) || defined(STM32F423xx )
56255640#define __HAL_RCC_UART4_CLK_SLEEP_ENABLE () (RCC->APB1LPENR |= (RCC_APB1LPENR_UART4LPEN))
56265641#define __HAL_RCC_UART5_CLK_SLEEP_ENABLE () (RCC->APB1LPENR |= (RCC_APB1LPENR_UART5LPEN))
@@ -5649,7 +5664,9 @@ typedef struct
56495664#endif /* STM32F413xx || STM32F423xx */
56505665#define __HAL_RCC_RTCAPB_CLK_SLEEP_DISABLE () (RCC->APB1LPENR &= ~(RCC_APB1LPENR_RTCAPBLPEN))
56515666#define __HAL_RCC_SPI3_CLK_SLEEP_DISABLE () (RCC->APB1LPENR &= ~(RCC_APB1LPENR_SPI3LPEN))
5667+ #if defined(STM32F412Zx ) || defined(STM32F412Vx ) || defined(STM32F412Rx ) || defined(STM32F413xx ) || defined(STM32F423xx )
56525668#define __HAL_RCC_USART3_CLK_SLEEP_DISABLE () (RCC->APB1LPENR &= ~(RCC_APB1LPENR_USART3LPEN))
5669+ #endif /* STM32F412Zx || STM32F412Vx || STM32F412Rx || STM32F413xx || STM32F423xx */
56535670#if defined(STM32F413xx ) || defined(STM32F423xx )
56545671#define __HAL_RCC_UART4_CLK_SLEEP_DISABLE () (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART4LPEN))
56555672#define __HAL_RCC_UART5_CLK_SLEEP_DISABLE () (RCC->APB1LPENR &= ~(RCC_APB1LPENR_UART5LPEN))
0 commit comments