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

Port Pin Mux Select Registers. More...

Collaboration diagram for PMUXSEL register mapping.:

Macros

#define CCS_MUXSELR(base)   MMIO32(base)
 
#define CCS_PAMUXSELR   CCS_MUXSELR(CCS_PORTA)
 
#define CCS_PBMUXSELR   CCS_MUXSELR(CCS_PORTB)
 
#define CCS_PCMUXSELR   CCS_MUXSELR(CCS_PORTC)
 
#define CCS_PDMUXSELR   CCS_MUXSELR(CCS_PORTD)
 
#define CCS_PEMUXSELR   CCS_MUXSELR(CCS_PORTE)
 
#define CCS_PFMUXSELR   CCS_MUXSELR(CCS_PORTF)
 
#define CCS_PGMUXSELR   CCS_MUXSELR(CCS_PORTG)
 
#define CCS_MUXSELR_MASK   0x7
 
#define CCS_MUXSELR_MASK_PIN(pin)   (CCS_MUXSELR_MASK << ((pin) * 4))
 
#define CCS_MUXSELR_VAL(pin, muxsel)   (((muxsel) & CCS_MUXSELR_MASK) << ((pin) * 4))
 

Enumerations

enum  ccs_muxsel_func_t {
  CCS_MUXSEL_GPIO = 0 , CCS_MUXSEL_AF1 = 1 , CCS_MUXSEL_AF2 = 2 , CCS_MUXSEL_AF3 = 3 ,
  CCS_MUXSEL_AF4 = 4 , CCS_MUXSEL_AF5 = 5 , CCS_MUXSEL_AF6 = 6 , CCS_MUXSEL_AF7 = 7
}
 

Detailed Description

Port Pin Mux Select Registers.

Macro Definition Documentation

◆ CCS_MUXSELR

#define CCS_MUXSELR (   base)    MMIO32(base)

Definition at line 137 of file ccs.h.

◆ CCS_MUXSELR_MASK

#define CCS_MUXSELR_MASK   0x7

Definition at line 145 of file ccs.h.

◆ CCS_MUXSELR_MASK_PIN

#define CCS_MUXSELR_MASK_PIN (   pin)    (CCS_MUXSELR_MASK << ((pin) * 4))

Definition at line 146 of file ccs.h.

◆ CCS_MUXSELR_VAL

#define CCS_MUXSELR_VAL (   pin,
  muxsel 
)    (((muxsel) & CCS_MUXSELR_MASK) << ((pin) * 4))

Definition at line 147 of file ccs.h.

◆ CCS_PAMUXSELR

#define CCS_PAMUXSELR   CCS_MUXSELR(CCS_PORTA)

Definition at line 138 of file ccs.h.

◆ CCS_PBMUXSELR

#define CCS_PBMUXSELR   CCS_MUXSELR(CCS_PORTB)

Definition at line 139 of file ccs.h.

◆ CCS_PCMUXSELR

#define CCS_PCMUXSELR   CCS_MUXSELR(CCS_PORTC)

Definition at line 140 of file ccs.h.

◆ CCS_PDMUXSELR

#define CCS_PDMUXSELR   CCS_MUXSELR(CCS_PORTD)

Definition at line 141 of file ccs.h.

◆ CCS_PEMUXSELR

#define CCS_PEMUXSELR   CCS_MUXSELR(CCS_PORTE)

Definition at line 142 of file ccs.h.

◆ CCS_PFMUXSELR

#define CCS_PFMUXSELR   CCS_MUXSELR(CCS_PORTF)

Definition at line 143 of file ccs.h.

◆ CCS_PGMUXSELR

#define CCS_PGMUXSELR   CCS_MUXSELR(CCS_PORTG)

Definition at line 144 of file ccs.h.

Enumeration Type Documentation

◆ ccs_muxsel_func_t

Enumerator
CCS_MUXSEL_GPIO 
CCS_MUXSEL_AF1 
CCS_MUXSEL_AF2 
CCS_MUXSEL_AF3 
CCS_MUXSEL_AF4 
CCS_MUXSEL_AF5 
CCS_MUXSEL_AF6 
CCS_MUXSEL_AF7 

Definition at line 150 of file ccs.h.