My Project
Loading...
Searching...
No Matches
RCC APB2 Clock Enable Disable

Enable or disable the High Speed APB (APB2) peripheral clock. More...

Macros

#define __HAL_RCC_SYSCFG_CLK_ENABLE()
 
#define __HAL_RCC_TIM15_CLK_ENABLE()
 
#define __HAL_RCC_TIM16_CLK_ENABLE()
 
#define __HAL_RCC_TIM17_CLK_ENABLE()
 
#define __HAL_RCC_USART1_CLK_ENABLE()
 
#define __HAL_RCC_SYSCFG_CLK_DISABLE()   (RCC->APB2ENR &= ~(RCC_APB2ENR_SYSCFGEN))
 
#define __HAL_RCC_TIM15_CLK_DISABLE()   (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM15EN))
 
#define __HAL_RCC_TIM16_CLK_DISABLE()   (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM16EN))
 
#define __HAL_RCC_TIM17_CLK_DISABLE()   (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM17EN))
 
#define __HAL_RCC_USART1_CLK_DISABLE()   (RCC->APB2ENR &= ~(RCC_APB2ENR_USART1EN))
 

Detailed Description

Enable or disable the High Speed APB (APB2) 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_SYSCFG_CLK_DISABLE

#define __HAL_RCC_SYSCFG_CLK_DISABLE ( )    (RCC->APB2ENR &= ~(RCC_APB2ENR_SYSCFGEN))

◆ __HAL_RCC_SYSCFG_CLK_ENABLE

#define __HAL_RCC_SYSCFG_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN);\
/* Delay after an RCC peripheral clock enabling */ \
tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN);\
UNUSED(tmpreg); \
} while(0U)
#define __IO
Definition: core_armv8mbl.h:196
#define READ_BIT(REG, BIT)
Definition: stm32f3xx.h:194
#define RCC_APB2ENR_SYSCFGEN
Definition: stm32f303xe.h:11126
#define RCC
Definition: stm32f303xe.h:977

◆ __HAL_RCC_TIM15_CLK_DISABLE

#define __HAL_RCC_TIM15_CLK_DISABLE ( )    (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM15EN))

◆ __HAL_RCC_TIM15_CLK_ENABLE

#define __HAL_RCC_TIM15_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN);\
/* Delay after an RCC peripheral clock enabling */ \
tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM15EN);\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_TIM15EN
Definition: stm32f303xe.h:11144

◆ __HAL_RCC_TIM16_CLK_DISABLE

#define __HAL_RCC_TIM16_CLK_DISABLE ( )    (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM16EN))

◆ __HAL_RCC_TIM16_CLK_ENABLE

#define __HAL_RCC_TIM16_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN);\
/* Delay after an RCC peripheral clock enabling */ \
tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM16EN);\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_TIM16EN
Definition: stm32f303xe.h:11147

◆ __HAL_RCC_TIM17_CLK_DISABLE

#define __HAL_RCC_TIM17_CLK_DISABLE ( )    (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM17EN))

◆ __HAL_RCC_TIM17_CLK_ENABLE

#define __HAL_RCC_TIM17_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM17EN);\
/* Delay after an RCC peripheral clock enabling */ \
tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_TIM17EN);\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_TIM17EN
Definition: stm32f303xe.h:11150

◆ __HAL_RCC_USART1_CLK_DISABLE

#define __HAL_RCC_USART1_CLK_DISABLE ( )    (RCC->APB2ENR &= ~(RCC_APB2ENR_USART1EN))

◆ __HAL_RCC_USART1_CLK_ENABLE

#define __HAL_RCC_USART1_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN);\
/* Delay after an RCC peripheral clock enabling */ \
tmpreg = READ_BIT(RCC->APB2ENR, RCC_APB2ENR_USART1EN);\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_USART1EN
Definition: stm32f303xe.h:11138