STM32G474xx HAL User Manual
宏定义
PIN
GPIO Exported Constants

宏定义

#define LL_GPIO_PIN_0   GPIO_BSRR_BS0
#define LL_GPIO_PIN_1   GPIO_BSRR_BS1
#define LL_GPIO_PIN_2   GPIO_BSRR_BS2
#define LL_GPIO_PIN_3   GPIO_BSRR_BS3
#define LL_GPIO_PIN_4   GPIO_BSRR_BS4
#define LL_GPIO_PIN_5   GPIO_BSRR_BS5
#define LL_GPIO_PIN_6   GPIO_BSRR_BS6
#define LL_GPIO_PIN_7   GPIO_BSRR_BS7
#define LL_GPIO_PIN_8   GPIO_BSRR_BS8
#define LL_GPIO_PIN_9   GPIO_BSRR_BS9
#define LL_GPIO_PIN_10   GPIO_BSRR_BS10
#define LL_GPIO_PIN_11   GPIO_BSRR_BS11
#define LL_GPIO_PIN_12   GPIO_BSRR_BS12
#define LL_GPIO_PIN_13   GPIO_BSRR_BS13
#define LL_GPIO_PIN_14   GPIO_BSRR_BS14
#define LL_GPIO_PIN_15   GPIO_BSRR_BS15
#define LL_GPIO_PIN_ALL

宏定义说明

#define LL_GPIO_PIN_0   GPIO_BSRR_BS0

选择引脚0

定义于文件 stm32g4xx_ll_gpio.h 的第 115 行。

#define LL_GPIO_PIN_1   GPIO_BSRR_BS1

选择引脚1

定义于文件 stm32g4xx_ll_gpio.h 的第 116 行。

#define LL_GPIO_PIN_10   GPIO_BSRR_BS10

选择引脚10

定义于文件 stm32g4xx_ll_gpio.h 的第 125 行。

#define LL_GPIO_PIN_11   GPIO_BSRR_BS11

选择引脚11

定义于文件 stm32g4xx_ll_gpio.h 的第 126 行。

#define LL_GPIO_PIN_12   GPIO_BSRR_BS12

选择引脚12

定义于文件 stm32g4xx_ll_gpio.h 的第 127 行。

#define LL_GPIO_PIN_13   GPIO_BSRR_BS13

选择引脚13

定义于文件 stm32g4xx_ll_gpio.h 的第 128 行。

#define LL_GPIO_PIN_14   GPIO_BSRR_BS14

选择引脚14

定义于文件 stm32g4xx_ll_gpio.h 的第 129 行。

#define LL_GPIO_PIN_15   GPIO_BSRR_BS15

选择引脚15

定义于文件 stm32g4xx_ll_gpio.h 的第 130 行。

#define LL_GPIO_PIN_2   GPIO_BSRR_BS2

选择引脚2

定义于文件 stm32g4xx_ll_gpio.h 的第 117 行。

#define LL_GPIO_PIN_3   GPIO_BSRR_BS3

选择引脚3

定义于文件 stm32g4xx_ll_gpio.h 的第 118 行。

#define LL_GPIO_PIN_4   GPIO_BSRR_BS4

选择引脚4

定义于文件 stm32g4xx_ll_gpio.h 的第 119 行。

#define LL_GPIO_PIN_5   GPIO_BSRR_BS5

选择引脚5

定义于文件 stm32g4xx_ll_gpio.h 的第 120 行。

#define LL_GPIO_PIN_6   GPIO_BSRR_BS6

选择引脚6

定义于文件 stm32g4xx_ll_gpio.h 的第 121 行。

#define LL_GPIO_PIN_7   GPIO_BSRR_BS7

选择引脚7

定义于文件 stm32g4xx_ll_gpio.h 的第 122 行。

#define LL_GPIO_PIN_8   GPIO_BSRR_BS8

选择引脚8

定义于文件 stm32g4xx_ll_gpio.h 的第 123 行。

参考引用于 LL_GPIO_Init()

#define LL_GPIO_PIN_9   GPIO_BSRR_BS9

选择引脚9

定义于文件 stm32g4xx_ll_gpio.h 的第 124 行。

#define LL_GPIO_PIN_ALL
值:
(GPIO_BSRR_BS0 | GPIO_BSRR_BS1  | GPIO_BSRR_BS2  | \
                                           GPIO_BSRR_BS3  | GPIO_BSRR_BS4  | GPIO_BSRR_BS5  | \
                                           GPIO_BSRR_BS6  | GPIO_BSRR_BS7  | GPIO_BSRR_BS8  | \
                                           GPIO_BSRR_BS9  | GPIO_BSRR_BS10 | GPIO_BSRR_BS11 | \
                                           GPIO_BSRR_BS12 | GPIO_BSRR_BS13 | GPIO_BSRR_BS14 | \
                                           GPIO_BSRR_BS15)

选择所有引脚

定义于文件 stm32g4xx_ll_gpio.h 的第 131 行。

参考引用于 LL_GPIO_StructInit()