libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
gpio.c File Reference
Include dependency graph for gpio.c:

Go to the source code of this file.

Functions

static uint32_t get_ccs_port_base (uint32_t gpioport)
 PAC55xxxx General-Purpose Input/Output (GPIO) More...
 
void gpio_mode_setup (uint32_t gpioport, gpio_mode_t mode, ccs_pull_updown_t pull_up_down, uint16_t gpios)
 Set the IO mode and pull-up/down configuration for the pins. More...
 
void gpio_set_outmask (uint32_t gpioport, bool enable, uint16_t gpios)
 Set the output mask (disable changes) to the output pins specified. More...
 
void gpio_set (uint32_t gpioport, uint16_t gpios)
 Set the port pins specified to the true state. More...
 
void gpio_clear (uint32_t gpioport, uint16_t gpios)
 Clear the port pins specified to the false state. More...
 
uint16_t gpio_get (uint32_t gpioport, uint16_t gpios)
 Return a masked bitfield of the port specified. More...
 
void gpio_set_af (uint32_t gpioport, ccs_muxsel_func_t muxsel, uint16_t gpios)
 Set the function of the pin for this port. More...
 
void gpio_set_output_options (uint32_t gpioport, ccs_drive_strength_t strength, uint16_t gpios)
 Set special output options for the gpio pin. More...
 
void gpio_set_schmidt_trigger (uint32_t gpioport, bool enable, uint16_t gpios)
 Set input schmidt trigger for glitch rejection on the input pin. More...