DIY Logging Volt/Ampmeter
Peripheral Clock Enable Disable

Enable or disable the AHB1 peripheral clock. More...

Macros

#define __HAL_RCC_DMA1_CLK_ENABLE()
 
#define __HAL_RCC_SRAM_CLK_ENABLE()
 
#define __HAL_RCC_FLITF_CLK_ENABLE()
 
#define __HAL_RCC_CRC_CLK_ENABLE()
 
#define __HAL_RCC_DMA1_CLK_DISABLE()   (RCC->AHBENR &= ~(RCC_AHBENR_DMA1EN))
 
#define __HAL_RCC_SRAM_CLK_DISABLE()   (RCC->AHBENR &= ~(RCC_AHBENR_SRAMEN))
 
#define __HAL_RCC_FLITF_CLK_DISABLE()   (RCC->AHBENR &= ~(RCC_AHBENR_FLITFEN))
 
#define __HAL_RCC_CRC_CLK_DISABLE()   (RCC->AHBENR &= ~(RCC_AHBENR_CRCEN))
 

Detailed Description

Enable or disable the AHB1 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_CRC_CLK_DISABLE

#define __HAL_RCC_CRC_CLK_DISABLE ( )    (RCC->AHBENR &= ~(RCC_AHBENR_CRCEN))

Definition at line 358 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_CRC_CLK_ENABLE

#define __HAL_RCC_CRC_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->AHBENR, RCC_AHBENR_CRCEN);\
/* Delay after an RCC peripheral clock enabling */\
tmpreg = READ_BIT(RCC->AHBENR, RCC_AHBENR_CRCEN);\
UNUSED(tmpreg); \
} while(0U)

Definition at line 347 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_DMA1_CLK_DISABLE

#define __HAL_RCC_DMA1_CLK_DISABLE ( )    (RCC->AHBENR &= ~(RCC_AHBENR_DMA1EN))

Definition at line 355 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_DMA1_CLK_ENABLE

#define __HAL_RCC_DMA1_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->AHBENR, RCC_AHBENR_DMA1EN);\
/* Delay after an RCC peripheral clock enabling */\
tmpreg = READ_BIT(RCC->AHBENR, RCC_AHBENR_DMA1EN);\
UNUSED(tmpreg); \
} while(0U)

Definition at line 323 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_FLITF_CLK_DISABLE

#define __HAL_RCC_FLITF_CLK_DISABLE ( )    (RCC->AHBENR &= ~(RCC_AHBENR_FLITFEN))

Definition at line 357 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_FLITF_CLK_ENABLE

#define __HAL_RCC_FLITF_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->AHBENR, RCC_AHBENR_FLITFEN);\
/* Delay after an RCC peripheral clock enabling */\
tmpreg = READ_BIT(RCC->AHBENR, RCC_AHBENR_FLITFEN);\
UNUSED(tmpreg); \
} while(0U)

Definition at line 339 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_SRAM_CLK_DISABLE

#define __HAL_RCC_SRAM_CLK_DISABLE ( )    (RCC->AHBENR &= ~(RCC_AHBENR_SRAMEN))

Definition at line 356 of file stm32f1xx_hal_rcc.h.

◆ __HAL_RCC_SRAM_CLK_ENABLE

#define __HAL_RCC_SRAM_CLK_ENABLE ( )
Value:
do { \
__IO uint32_t tmpreg; \
SET_BIT(RCC->AHBENR, RCC_AHBENR_SRAMEN);\
/* Delay after an RCC peripheral clock enabling */\
tmpreg = READ_BIT(RCC->AHBENR, RCC_AHBENR_SRAMEN);\
UNUSED(tmpreg); \
} while(0U)

Definition at line 331 of file stm32f1xx_hal_rcc.h.

RCC_AHBENR_FLITFEN
#define RCC_AHBENR_FLITFEN
Definition: stm32f103xb.h:1262
READ_BIT
#define READ_BIT(REG, BIT)
Definition: stm32f1xx.h:182
RCC_AHBENR_DMA1EN
#define RCC_AHBENR_DMA1EN
Definition: stm32f103xb.h:1256
RCC_AHBENR_CRCEN
#define RCC_AHBENR_CRCEN
Definition: stm32f103xb.h:1265
RCC
#define RCC
Definition: stm32f103xb.h:684
RCC_AHBENR_SRAMEN
#define RCC_AHBENR_SRAMEN
Definition: stm32f103xb.h:1259