My Project
Loading...
Searching...
No Matches
RCC Extended APB1 Peripheral Clock Enable Disable Status

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

Macros

#define __HAL_RCC_CAN1_IS_CLK_ENABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_CANEN)) != RESET)
 
#define __HAL_RCC_CAN1_IS_CLK_DISABLED()   ((RCC->APB1ENR & (RCC_APB1ENR_CANEN)) == 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.

Macro Definition Documentation

◆ __HAL_RCC_CAN1_IS_CLK_DISABLED

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

◆ __HAL_RCC_CAN1_IS_CLK_ENABLED

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