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   0x00 /* Default */
 
#define GPIO_MODE_OUTPUT   0x01
 
#define GPIO_MODE_AF   0x02
 
#define GPIO_MODE_ANALOG   0x03
 

Detailed Description

Macro Definition Documentation

◆ GPIO_MODE_AF

#define GPIO_MODE_AF   0x02

Definition at line 158 of file l1/gpio.h.

◆ GPIO_MODE_ANALOG

#define GPIO_MODE_ANALOG   0x03

Definition at line 159 of file l1/gpio.h.

◆ GPIO_MODE_INPUT

#define GPIO_MODE_INPUT   0x00 /* Default */

Definition at line 156 of file l1/gpio.h.

◆ GPIO_MODE_OUTPUT

#define GPIO_MODE_OUTPUT   0x01

Definition at line 157 of file l1/gpio.h.