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

Macros

#define PORT_DIR(port)   MMIO32((port) + 0x0000)
 Direction register. More...
 
#define PORT_DIRCLR(port)   MMIO32((port) + 0x0004)
 Direction clear register. More...
 
#define PORT_DIRSET(port)   MMIO32((port) + 0x0008)
 Direction set register. More...
 
#define PORT_DIRTGL(port)   MMIO32((port) + 0x000c)
 Direction toggle register. More...
 
#define PORT_OUT(port)   MMIO32((port) + 0x0010)
 output register More...
 
#define PORT_OUTCLR(port)   MMIO32((port) + 0x0014)
 output clear register More...
 
#define PORT_OUTSET(port)   MMIO32((port) + 0x0018)
 output set register More...
 
#define PORT_OUTTGL(port)   MMIO32((port) + 0x001c)
 output toggle register More...
 
#define PORT_IN(port)   MMIO32((port) + 0x0020)
 input register More...
 
#define PORT_CTRL(port)   MMIO32((port) + 0x0024)
 Control register. More...
 
#define PORT_WRCONFIG(port)   MMIO32((port) + 0x0028)
 Write configuration register. More...
 
#define PORT_PMUX(port, n)   MMIO8((port) + 0x0030 + (n))
 Peripheral multiplexing registers. More...
 
#define PORT_PINCFG(port, n)   MMIO8((port) + 0x0040 + (n))
 Pin configuration registers. More...
 

Detailed Description

Macro Definition Documentation

◆ PORT_CTRL

#define PORT_CTRL (   port)    MMIO32((port) + 0x0024)

Control register.

Definition at line 113 of file port.h.

◆ PORT_DIR

#define PORT_DIR (   port)    MMIO32((port) + 0x0000)

Direction register.

Definition at line 86 of file port.h.

◆ PORT_DIRCLR

#define PORT_DIRCLR (   port)    MMIO32((port) + 0x0004)

Direction clear register.

Definition at line 89 of file port.h.

◆ PORT_DIRSET

#define PORT_DIRSET (   port)    MMIO32((port) + 0x0008)

Direction set register.

Definition at line 92 of file port.h.

◆ PORT_DIRTGL

#define PORT_DIRTGL (   port)    MMIO32((port) + 0x000c)

Direction toggle register.

Definition at line 95 of file port.h.

◆ PORT_IN

#define PORT_IN (   port)    MMIO32((port) + 0x0020)

input register

Definition at line 110 of file port.h.

◆ PORT_OUT

#define PORT_OUT (   port)    MMIO32((port) + 0x0010)

output register

Definition at line 98 of file port.h.

◆ PORT_OUTCLR

#define PORT_OUTCLR (   port)    MMIO32((port) + 0x0014)

output clear register

Definition at line 101 of file port.h.

◆ PORT_OUTSET

#define PORT_OUTSET (   port)    MMIO32((port) + 0x0018)

output set register

Definition at line 104 of file port.h.

◆ PORT_OUTTGL

#define PORT_OUTTGL (   port)    MMIO32((port) + 0x001c)

output toggle register

Definition at line 107 of file port.h.

◆ PORT_PINCFG

#define PORT_PINCFG (   port,
 
)    MMIO8((port) + 0x0040 + (n))

Pin configuration registers.

Definition at line 122 of file port.h.

◆ PORT_PMUX

#define PORT_PMUX (   port,
 
)    MMIO8((port) + 0x0030 + (n))

Peripheral multiplexing registers.

Definition at line 119 of file port.h.

◆ PORT_WRCONFIG

#define PORT_WRCONFIG (   port)    MMIO32((port) + 0x0028)

Write configuration register.

Definition at line 116 of file port.h.