libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/cm3/common.h>
#include <libopencm3/pac55xx/ccs.h>
#include <libopencm3/pac55xx/memorymap.h>
Go to the source code of this file.
Enumerations | |
enum | gpio_mode_t { GPIO_ANALOG_INPUT = 0 , GPIO_PUSH_PULL_OUTPUT = 1 , GPIO_OPEN_DRAIN_OUTPUT = 2 , GPIO_HIGH_IMPEDENCE_INPUT = 3 } |
Functions | |
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... | |