libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
GPIO Pin Direction and Analog/Digital Mode
Collaboration diagram for GPIO Pin Direction and Analog/Digital Mode:

Macros

#define GPIO_MODE_INPUT   0x0
 
#define GPIO_MODE_OUTPUT   0x1
 
#define GPIO_MODE_AF   0x2
 
#define GPIO_MODE_ANALOG   0x3
 

Detailed Description

Macro Definition Documentation

◆ GPIO_MODE_AF

#define GPIO_MODE_AF   0x2

Definition at line 180 of file gpio_common_f234.h.

◆ GPIO_MODE_ANALOG

#define GPIO_MODE_ANALOG   0x3

Definition at line 181 of file gpio_common_f234.h.

◆ GPIO_MODE_INPUT

#define GPIO_MODE_INPUT   0x0

Definition at line 178 of file gpio_common_f234.h.

◆ GPIO_MODE_OUTPUT

#define GPIO_MODE_OUTPUT   0x1

Definition at line 179 of file gpio_common_f234.h.