STM32F103xB HAL User Manual
Defines
Peripheral Clock Enable Disable
RCC Exported Macros

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

Defines

#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.

Define Documentation

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

Definition at line 358 of file stm32f1xx_hal_rcc.h.

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.

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

Definition at line 355 of file stm32f1xx_hal_rcc.h.

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.

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

Definition at line 357 of file stm32f1xx_hal_rcc.h.

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.

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

Definition at line 356 of file stm32f1xx_hal_rcc.h.

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.