libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Port Pin Mux Select Registers. More...
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 } |
Port Pin Mux Select Registers.
#define CCS_MUXSELR_MASK_PIN | ( | pin | ) | (CCS_MUXSELR_MASK << ((pin) * 4)) |
#define CCS_MUXSELR_VAL | ( | pin, | |
muxsel | |||
) | (((muxsel) & CCS_MUXSELR_MASK) << ((pin) * 4)) |
#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) |
enum ccs_muxsel_func_t |