STM32F103xB HAL User Manual
Defines
APB1 Peripheral Clock Enable Disable Status
RCCEx Exported Macros

Get the enable or disable status of the APB1 peripheral clock. More...

Defines

#define __HAL_RCC_CAN1_IS_CLK_ENABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) != RESET)
#define __HAL_RCC_CAN1_IS_CLK_DISABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) == RESET)
#define __HAL_RCC_TIM4_IS_CLK_ENABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) != RESET)
#define __HAL_RCC_TIM4_IS_CLK_DISABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) == RESET)
#define __HAL_RCC_SPI2_IS_CLK_ENABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_SPI2EN)) != RESET)
#define __HAL_RCC_SPI2_IS_CLK_DISABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_SPI2EN)) == RESET)
#define __HAL_RCC_USART3_IS_CLK_ENABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) != RESET)
#define __HAL_RCC_USART3_IS_CLK_DISABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) == RESET)
#define __HAL_RCC_I2C2_IS_CLK_ENABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_I2C2EN)) != RESET)
#define __HAL_RCC_I2C2_IS_CLK_DISABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_I2C2EN)) == RESET)
#define __HAL_RCC_USB_IS_CLK_ENABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_USBEN)) != RESET)
#define __HAL_RCC_USB_IS_CLK_DISABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_USBEN)) == RESET)

Detailed Description

Get the enable or disable status of the APB1 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.

Define Documentation

#define __HAL_RCC_CAN1_IS_CLK_DISABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) == RESET)

Definition at line 1076 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_CAN1_IS_CLK_ENABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_CAN1EN)) != RESET)

Definition at line 1075 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_I2C2_IS_CLK_DISABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_I2C2EN)) == RESET)

Definition at line 1089 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_I2C2_IS_CLK_ENABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_I2C2EN)) != RESET)

Definition at line 1088 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI2_IS_CLK_DISABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_SPI2EN)) == RESET)

Definition at line 1085 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_SPI2_IS_CLK_ENABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_SPI2EN)) != RESET)

Definition at line 1084 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM4_IS_CLK_DISABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) == RESET)

Definition at line 1083 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_TIM4_IS_CLK_ENABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_TIM4EN)) != RESET)

Definition at line 1082 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_USART3_IS_CLK_DISABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) == RESET)

Definition at line 1087 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_USART3_IS_CLK_ENABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_USART3EN)) != RESET)

Definition at line 1086 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_USB_IS_CLK_DISABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_USBEN)) == RESET)

Definition at line 1094 of file stm32f1xx_hal_rcc_ex.h.

#define __HAL_RCC_USB_IS_CLK_ENABLED ( )    ((RCC->APB1ENR & (RCC_APB1ENR_USBEN)) != RESET)

Definition at line 1093 of file stm32f1xx_hal_rcc_ex.h.