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

GPIO Peripheral Configuration Register Values. More...

Collaboration diagram for GPIO_PC Values:

Macros

#define GPIO_PC_EDM(n, mode)   ((mode) << (2 * (n)))
 Extended Drive Mode Bit N. More...
 
#define GPIO_PC_EDM_MASK(n)   (0x3 << (2 * (n)))
 Extended Drive Mode Bit N Mask. More...
 
#define GPIO_PC_EDM_NORMAL   0x0
 Normal behavior, 2, 4 and 8 mA are available. More...
 
#define GPIO_PC_EDM_ADD_6MA   0x1
 An additional 6 mA option is provided. More...
 
#define GPIO_PC_EDM_FULL_RANGE   0x3
 Full range, 2, 4, 6, 8, 10 and 12 mA are available. More...
 

Detailed Description

GPIO Peripheral Configuration Register Values.

Macro Definition Documentation

◆ GPIO_PC_EDM

#define GPIO_PC_EDM (   n,
  mode 
)    ((mode) << (2 * (n)))

Extended Drive Mode Bit N.

Definition at line 333 of file gpio.h.

◆ GPIO_PC_EDM_ADD_6MA

#define GPIO_PC_EDM_ADD_6MA   0x1

An additional 6 mA option is provided.

Set one, clear other behavior is disabled

Definition at line 340 of file gpio.h.

◆ GPIO_PC_EDM_FULL_RANGE

#define GPIO_PC_EDM_FULL_RANGE   0x3

Full range, 2, 4, 6, 8, 10 and 12 mA are available.

Set one, clear other behavior is disabled

Definition at line 343 of file gpio.h.

◆ GPIO_PC_EDM_MASK

#define GPIO_PC_EDM_MASK (   n)    (0x3 << (2 * (n)))

Extended Drive Mode Bit N Mask.

Definition at line 335 of file gpio.h.

◆ GPIO_PC_EDM_NORMAL

#define GPIO_PC_EDM_NORMAL   0x0

Normal behavior, 2, 4 and 8 mA are available.

Definition at line 337 of file gpio.h.