libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
syscon.h File Reference
Include dependency graph for syscon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYSCON_SWD_SEL   MMIO32(SYSTEM_CON_BASE + 0x30)
 SWD Enable register. More...
 
#define SYSCON_PORTA_SEL   MMIO32(SYSTEM_CON_BASE + 0x80)
 Pin Alternate function selection register. More...
 
#define SYSCON_PORTA_PULLUP   MMIO32(SYSTEM_CON_BASE + 0x90)
 Pin Pull up register. More...
 
#define SYSCON_PORTA_INEN   MMIO32(SYSTEM_CON_BASE + 0xe0)
 Pin Input enable register. More...
 

Functions

void syscon_sel_af (uint16_t gpios, bool af_en)
 Select the alternative function of a Group of Pins. More...
 
void syscon_pullup (uint16_t gpios, bool en)
 Enable the internal pull-up of a Group of Pins. More...
 
void syscon_input_enable (uint16_t gpios, bool en)
 Enable the input function of a Group of Pins. More...
 
void syscon_sel_swd (bool en)
 Select the SWD function of GPIO 1/2. More...