Enable or disable the High Speed APB (APB2) peripheral clock.
More...
|
#define | __HAL_RCC_AFIO_CLK_ENABLE() |
|
#define | __HAL_RCC_GPIOA_CLK_ENABLE() |
|
#define | __HAL_RCC_GPIOB_CLK_ENABLE() |
|
#define | __HAL_RCC_GPIOC_CLK_ENABLE() |
|
#define | __HAL_RCC_GPIOD_CLK_ENABLE() |
|
#define | __HAL_RCC_ADC1_CLK_ENABLE() |
|
#define | __HAL_RCC_TIM1_CLK_ENABLE() |
|
#define | __HAL_RCC_SPI1_CLK_ENABLE() |
|
#define | __HAL_RCC_USART1_CLK_ENABLE() |
|
#define | __HAL_RCC_AFIO_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_AFIOEN)) |
|
#define | __HAL_RCC_GPIOA_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_IOPAEN)) |
|
#define | __HAL_RCC_GPIOB_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_IOPBEN)) |
|
#define | __HAL_RCC_GPIOC_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_IOPCEN)) |
|
#define | __HAL_RCC_GPIOD_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_IOPDEN)) |
|
#define | __HAL_RCC_ADC1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC1EN)) |
|
#define | __HAL_RCC_TIM1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_TIM1EN)) |
|
#define | __HAL_RCC_SPI1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SPI1EN)) |
|
#define | __HAL_RCC_USART1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_USART1EN)) |
|
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.
◆ __HAL_RCC_ADC1_CLK_ENABLE
#define __HAL_RCC_ADC1_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_ADC1EN
Definition: stm32f103xb.h:1288
◆ __HAL_RCC_AFIO_CLK_ENABLE
#define __HAL_RCC_AFIO_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_AFIOEN
Definition: stm32f103xb.h:1273
◆ __HAL_RCC_GPIOA_CLK_ENABLE
#define __HAL_RCC_GPIOA_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_IOPAEN
Definition: stm32f103xb.h:1276
◆ __HAL_RCC_GPIOB_CLK_ENABLE
#define __HAL_RCC_GPIOB_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_IOPBEN
Definition: stm32f103xb.h:1279
◆ __HAL_RCC_GPIOC_CLK_ENABLE
#define __HAL_RCC_GPIOC_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_IOPCEN
Definition: stm32f103xb.h:1282
◆ __HAL_RCC_GPIOD_CLK_ENABLE
#define __HAL_RCC_GPIOD_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_IOPDEN
Definition: stm32f103xb.h:1285
◆ __HAL_RCC_SPI1_CLK_ENABLE
#define __HAL_RCC_SPI1_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_SPI1EN
Definition: stm32f103xb.h:1299
◆ __HAL_RCC_TIM1_CLK_ENABLE
#define __HAL_RCC_TIM1_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_TIM1EN
Definition: stm32f103xb.h:1296
◆ __HAL_RCC_USART1_CLK_ENABLE
#define __HAL_RCC_USART1_CLK_ENABLE |
( |
| ) |
|
Value:do { \
__IO uint32_t tmpreg; \
\
UNUSED(tmpreg); \
} while(0U)
#define RCC_APB2ENR_USART1EN
Definition: stm32f103xb.h:1302