libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/swm050/gpio.h>
Go to the source code of this file.
Functions | |
void | gpio_set (uint16_t gpios) |
Set a Group of Pins. More... | |
void | gpio_clear (uint16_t gpios) |
Clear a Group of Pins. More... | |
uint16_t | gpio_get (uint16_t gpios) |
Read a Group of Pins. More... | |
void | gpio_toggle (uint16_t gpios) |
Toggle a Group of Pins. More... | |
void | gpio_input (uint16_t gpios) |
Set the direction of a Group of Pins to Input. More... | |
void | gpio_output (uint16_t gpios) |
Set the direction of a Group of Pins to Output. More... | |
void | gpio_int_enable (uint16_t gpios, bool en) |
Sets the pins as external interrupts, rather than normal GPIO. More... | |
void | gpio_int_mask (uint16_t gpios, enum gpio_int_masked masked) |
Sets bits in the interrupt mask. More... | |
void | gpio_int_type (uint16_t gpios, enum gpio_trig_type type) |
Sets whether the pins are edge triggered or level triggered. More... | |
void | gpio_int_pol (uint16_t gpios, enum gpio_pol pol) |
Sets the interrupt trigger polarity. More... | |
uint16_t | gpio_int_status (void) |
Gets the masked interrupt status. More... | |
uint16_t | gpio_int_raw_status (void) |
Gets the raw unmasked interrupt status. More... | |
void | gpio_int_clear (uint16_t gpios) |
Clear the specified pin interrupts. More... | |