libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
PortX WRCONFIG Values
Collaboration diagram for PortX WRCONFIG Values:

Macros

#define PORT_WRCONFIG_HWSEL   (1 << 31)
 HWSEL: Half word select: 0 [15:0], 1 [31:16]. More...
 
#define PORT_WRCONFIG_WRPINCFG   (1 << 30)
 WRPINCFG: Write PINCFG: 1 to update pins for selected by PINMASK. More...
 
#define PORT_WRCONFIG_WRPMUX   (1 << 28)
 WRPMUX: Write PMUX: 1 to update pins pmux for selected by PINMASK. More...
 
#define PORT_WRCONFIG_PMUX(mux)   ((0xf & (mux)) << 24)
 PMUX: Peripheral Multiplexing: determine pmux for pins selected by PINMASK. More...
 
#define PORT_WRCONFIG_DRVSTR   (1 << 22)
 DRVSTR: Output Driver Strength Selection: determine strength for pins in PINMASK. More...
 
#define PORT_WRCONFIG_PULLEN   (1 << 18)
 PULLEN: Pull Enable: enable PINCFGy.PULLEN for pins in PINMASK. More...
 
#define PORT_WRCONFIG_INEN   (1 << 17)
 INEN: Input Enable: enable PINCFGy.INEN for pins in PINMASK. More...
 
#define PORT_WRCONFIG_PMUXEN   (1 << 16)
 PMUXEN: Peripheral Multiplexer Enable: enable PINCFGy.PMUXEN for pins in PINMASK. More...
 
#define PORT_WRCONFIG_PINMASK(pins)   ((0xffff & (pins)) << 0)
 PINMASK: Pin Mask for Multiple Pin Configuration: select pins to be configured [31:16] if HWSET=1, [15:0] if HWSET=0. More...
 

Detailed Description

Macro Definition Documentation

◆ PORT_WRCONFIG_DRVSTR

#define PORT_WRCONFIG_DRVSTR   (1 << 22)

DRVSTR: Output Driver Strength Selection: determine strength for pins in PINMASK.

Definition at line 181 of file port.h.

◆ PORT_WRCONFIG_HWSEL

#define PORT_WRCONFIG_HWSEL   (1 << 31)

HWSEL: Half word select: 0 [15:0], 1 [31:16].

Definition at line 169 of file port.h.

◆ PORT_WRCONFIG_INEN

#define PORT_WRCONFIG_INEN   (1 << 17)

INEN: Input Enable: enable PINCFGy.INEN for pins in PINMASK.

Definition at line 187 of file port.h.

◆ PORT_WRCONFIG_PINMASK

#define PORT_WRCONFIG_PINMASK (   pins)    ((0xffff & (pins)) << 0)

PINMASK: Pin Mask for Multiple Pin Configuration: select pins to be configured [31:16] if HWSET=1, [15:0] if HWSET=0.

Definition at line 195 of file port.h.

◆ PORT_WRCONFIG_PMUX

#define PORT_WRCONFIG_PMUX (   mux)    ((0xf & (mux)) << 24)

PMUX: Peripheral Multiplexing: determine pmux for pins selected by PINMASK.

Definition at line 178 of file port.h.

◆ PORT_WRCONFIG_PMUXEN

#define PORT_WRCONFIG_PMUXEN   (1 << 16)

PMUXEN: Peripheral Multiplexer Enable: enable PINCFGy.PMUXEN for pins in PINMASK.

Definition at line 190 of file port.h.

◆ PORT_WRCONFIG_PULLEN

#define PORT_WRCONFIG_PULLEN   (1 << 18)

PULLEN: Pull Enable: enable PINCFGy.PULLEN for pins in PINMASK.

Definition at line 184 of file port.h.

◆ PORT_WRCONFIG_WRPINCFG

#define PORT_WRCONFIG_WRPINCFG   (1 << 30)

WRPINCFG: Write PINCFG: 1 to update pins for selected by PINMASK.

Definition at line 172 of file port.h.

◆ PORT_WRCONFIG_WRPMUX

#define PORT_WRCONFIG_WRPMUX   (1 << 28)

WRPMUX: Write PMUX: 1 to update pins pmux for selected by PINMASK.

Definition at line 175 of file port.h.