libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
GPIO Pin Configuration

If mode specifies input, configuration can be. More...

Collaboration diagram for GPIO Pin Configuration:

Macros

#define GPIO_CNF_INPUT_ANALOG   0x00
 Analog Input. More...
 
#define GPIO_CNF_INPUT_FLOAT   0x01 /* Default */
 Digital Input Floating. More...
 
#define GPIO_CNF_INPUT_PULL_UPDOWN   0x02
 Digital Input Pull Up and Down. More...
 
#define GPIO_CNF_OUTPUT_PUSHPULL   0x00
 Digital Output Pushpull. More...
 
#define GPIO_CNF_OUTPUT_OPENDRAIN   0x01
 Digital Output Open Drain. More...
 
#define GPIO_CNF_OUTPUT_ALTFN_PUSHPULL   0x02
 Alternate Function Output Pushpull. More...
 
#define GPIO_CNF_OUTPUT_ALTFN_OPENDRAIN   0x03
 Alternate Function Output Open Drain. More...
 

Detailed Description

If mode specifies input, configuration can be.

If mode specifies output, configuration can be

Macro Definition Documentation

◆ GPIO_CNF_INPUT_ANALOG

#define GPIO_CNF_INPUT_ANALOG   0x00

Analog Input.

Definition at line 618 of file f1/gpio.h.

◆ GPIO_CNF_INPUT_FLOAT

#define GPIO_CNF_INPUT_FLOAT   0x01 /* Default */

Digital Input Floating.

Definition at line 620 of file f1/gpio.h.

◆ GPIO_CNF_INPUT_PULL_UPDOWN

#define GPIO_CNF_INPUT_PULL_UPDOWN   0x02

Digital Input Pull Up and Down.

Definition at line 622 of file f1/gpio.h.

◆ GPIO_CNF_OUTPUT_ALTFN_OPENDRAIN

#define GPIO_CNF_OUTPUT_ALTFN_OPENDRAIN   0x03

Alternate Function Output Open Drain.

Definition at line 631 of file f1/gpio.h.

◆ GPIO_CNF_OUTPUT_ALTFN_PUSHPULL

#define GPIO_CNF_OUTPUT_ALTFN_PUSHPULL   0x02

Alternate Function Output Pushpull.

Definition at line 629 of file f1/gpio.h.

◆ GPIO_CNF_OUTPUT_OPENDRAIN

#define GPIO_CNF_OUTPUT_OPENDRAIN   0x01

Digital Output Open Drain.

Definition at line 627 of file f1/gpio.h.

◆ GPIO_CNF_OUTPUT_PUSHPULL

#define GPIO_CNF_OUTPUT_PUSHPULL   0x00

Digital Output Pushpull.

Definition at line 625 of file f1/gpio.h.