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

Enable or disable the Low Speed APB (APB1) peripheral clock. More...

Macros

#define __HAL_RCC_CAN1_CLK_ENABLE()
 
#define __HAL_RCC_CAN1_CLK_DISABLE()   (RCC->APB1ENR &= ~(RCC_APB1ENR_CANEN))
 

Detailed Description

Enable or disable the Low Speed APB (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_CLK_DISABLE

#define __HAL_RCC_CAN1_CLK_DISABLE ( )    (RCC->APB1ENR &= ~(RCC_APB1ENR_CANEN))

◆ __HAL_RCC_CAN1_CLK_ENABLE

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