libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/efm32/gpio.h>
Go to the source code of this file.
Functions | |
void | gpio_enable_lock (void) |
Enable GPIO registers lock. More... | |
void | gpio_disable_lock (void) |
Disable GPIO registers lock. More... | |
bool | gpio_get_lock_flag (void) |
Get GPIO register lock flag. More... | |
void | gpio_set_drive_strength (uint32_t gpio_port, enum gpio_drive_strength drive_stength) |
Set port pins drive strength. More... | |
void | gpio_mode_setup (uint32_t gpio_port, enum gpio_mode mode, uint16_t gpios) |
Set port pins mode. More... | |
void | gpio_set (uint32_t gpio_port, uint16_t gpios) |
Set port pins output value (Atomic) More... | |
void | gpio_clear (uint32_t gpio_port, uint16_t gpios) |
Set port pins output value (Atomic) More... | |
uint16_t | gpio_get (uint32_t gpio_port, uint16_t gpios) |
Get port pins input value. More... | |
void | gpio_toggle (uint32_t gpio_port, uint16_t gpios) |
Toggle port pins output value (Atomic) More... | |
uint16_t | gpio_port_read (uint32_t gpio_port) |
Get port (all) input value's. More... | |
void | gpio_port_write (uint32_t gpio_port, uint16_t data) |
Set port (all) output value's. More... | |
void | gpio_port_config_lock (uint32_t gpio_port, uint16_t gpios) |
Lock the Configuration of a Group of Pins. More... | |