GPS Device
Loading...
Searching...
No Matches

Convenience macros for GPIO peripheral clock enable/disable. More...

Collaboration diagram for Legacy GPIO Clock Macros:

Macros

#define GPIOA_CLK_EN()
#define GPIOB_CLK_EN()
#define GPIOC_CLK_EN()
#define GPIOD_CLK_EN()
#define GPIOE_CLK_EN()
#define GPIOH_CLK_EN()
#define GPIOA_CLK_DIS()
#define GPIOB_CLK_DIS()
#define GPIOC_CLK_DIS()
#define GPIOD_CLK_DIS()
#define GPIOE_CLK_DIS()
#define GPIOH_CLK_DIS()

Detailed Description

Convenience macros for GPIO peripheral clock enable/disable.

Note
These macros are superseded by rcc_set_pclk_ahb1. Prefer the function-based API in new code.

Macro Definition Documentation

◆ GPIOA_CLK_EN

#define GPIOA_CLK_EN ( )
Value:
(RCC->RCC_AHB1ENR |= 0b1 << 0)
#define RCC

Enable GPIOA clock.

Definition at line 891 of file stm32f401re.h.

◆ GPIOB_CLK_EN

#define GPIOB_CLK_EN ( )
Value:
(RCC->RCC_AHB1ENR |= 0b1 << 1)

Enable GPIOB clock.

Definition at line 892 of file stm32f401re.h.

◆ GPIOC_CLK_EN

#define GPIOC_CLK_EN ( )
Value:
(RCC->RCC_AHB1ENR |= 0b1 << 2)

Enable GPIOC clock.

Definition at line 893 of file stm32f401re.h.

◆ GPIOD_CLK_EN

#define GPIOD_CLK_EN ( )
Value:
(RCC->RCC_AHB1ENR |= 0b1 << 3)

Enable GPIOD clock.

Definition at line 894 of file stm32f401re.h.

◆ GPIOE_CLK_EN

#define GPIOE_CLK_EN ( )
Value:
(RCC->RCC_AHB1ENR |= 0b1 << 4)

Enable GPIOE clock.

Definition at line 895 of file stm32f401re.h.

◆ GPIOH_CLK_EN

#define GPIOH_CLK_EN ( )
Value:
(RCC->RCC_AHB1ENR |= 0b1 << 7)

Enable GPIOH clock.

Definition at line 896 of file stm32f401re.h.

◆ GPIOA_CLK_DIS

#define GPIOA_CLK_DIS ( )
Value:
(RCC->RCC_AHB1ENR |= ~(0b1 << 0))

Disable GPIOA clock.

Definition at line 898 of file stm32f401re.h.

◆ GPIOB_CLK_DIS

#define GPIOB_CLK_DIS ( )
Value:
(RCC->RCC_AHB1ENR |= ~(0b1 << 1))

Disable GPIOB clock.

Definition at line 899 of file stm32f401re.h.

◆ GPIOC_CLK_DIS

#define GPIOC_CLK_DIS ( )
Value:
(RCC->RCC_AHB1ENR |= ~(0b1 << 2))

Disable GPIOC clock.

Definition at line 900 of file stm32f401re.h.

◆ GPIOD_CLK_DIS

#define GPIOD_CLK_DIS ( )
Value:
(RCC->RCC_AHB1ENR |= ~(0b1 << 3))

Disable GPIOD clock.

Definition at line 901 of file stm32f401re.h.

◆ GPIOE_CLK_DIS

#define GPIOE_CLK_DIS ( )
Value:
(RCC->RCC_AHB1ENR |= ~(0b1 << 4))

Disable GPIOE clock.

Definition at line 902 of file stm32f401re.h.

◆ GPIOH_CLK_DIS

#define GPIOH_CLK_DIS ( )
Value:
(RCC->RCC_AHB1ENR |= ~(0b1 << 7))

Disable GPIOH clock.

Definition at line 903 of file stm32f401re.h.