STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
AHB2 Peripheral Clock Enable Disable

Enable or disable the AHB2 peripheral clock. More...

Collaboration diagram for AHB2 Peripheral Clock Enable Disable:

Macros

#define __HAL_RCC_DCMI_CLK_ENABLE()
 
#define __HAL_RCC_DCMI_CLK_DISABLE()
 
#define __HAL_RCC_USB_OTG_FS_CLK_ENABLE()
 
#define __HAL_RCC_USB_OTG_FS_CLK_DISABLE()
 
#define __HAL_RCC_RNG_CLK_ENABLE()
 
#define __HAL_RCC_RNG_CLK_DISABLE()
 

Detailed Description

Enable or disable the AHB2 peripheral clock.

Note
After reset, the peripheral clock (used for registers read/write access) is disabled and the application software has to enable this clock before using it.

Macro Definition Documentation

◆ __HAL_RCC_DCMI_CLK_ENABLE

#define __HAL_RCC_DCMI_CLK_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
do { \
__IO uint32_t tmpreg = 0x00U; \
SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\
/* Delay after an RCC peripheral clock enabling */ \
tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_DCMIEN);\
UNUSED(tmpreg); \
} while(0U)

Definition at line 4074 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_DCMI_CLK_DISABLE

#define __HAL_RCC_DCMI_CLK_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->AHB2ENR &= ~(RCC_AHB2ENR_DCMIEN))

Definition at line 4081 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_USB_OTG_FS_CLK_ENABLE

#define __HAL_RCC_USB_OTG_FS_CLK_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
do {(RCC->AHB2ENR |= (RCC_AHB2ENR_OTGFSEN));\
__HAL_RCC_SYSCFG_CLK_ENABLE();\
}while(0U)

Definition at line 4082 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_USB_OTG_FS_CLK_DISABLE

#define __HAL_RCC_USB_OTG_FS_CLK_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->AHB2ENR &= ~(RCC_AHB2ENR_OTGFSEN))

Definition at line 4086 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_RNG_CLK_ENABLE

#define __HAL_RCC_RNG_CLK_ENABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
do { \
__IO uint32_t tmpreg = 0x00U; \
SET_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\
/* Delay after an RCC peripheral clock enabling */ \
tmpreg = READ_BIT(RCC->AHB2ENR, RCC_AHB2ENR_RNGEN);\
UNUSED(tmpreg); \
} while(0U)

Definition at line 4088 of file stm32f4xx_hal_rcc_ex.h.

◆ __HAL_RCC_RNG_CLK_DISABLE

#define __HAL_RCC_RNG_CLK_DISABLE ( )

#include <stm32f4xx_hal_rcc_ex.h>

Value:
(RCC->AHB2ENR &= ~(RCC_AHB2ENR_RNGEN))

Definition at line 4095 of file stm32f4xx_hal_rcc_ex.h.