libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/sam/d/port.h>
Go to the source code of this file.
Functions | |
void | gpio_mode_setup (uint32_t gpioport, uint8_t mode, uint8_t cnf, uint32_t gpios) |
Initialize GPIO pins. More... | |
void | gpio_set_af (uint32_t gpioport, uint8_t af, uint32_t gpios) |
Alternate function GPIO pins. More... | |
void | gpio_set (uint32_t gpioport, uint32_t gpios) |
Set a group of Pins. More... | |
void | gpio_clear (uint32_t gpioport, uint32_t gpios) |
Clear a group of Pins. More... | |
uint32_t | gpio_get (uint32_t gpioport, uint32_t gpios) |
Read level of a group of Pins. More... | |
void | gpio_toggle (uint32_t gpioport, uint32_t gpios) |
Toggle level of a group of Pins. More... | |
uint32_t | port_read (uint32_t port) |
Read level for all pins from a port. More... | |
void | port_write (uint32_t port, uint32_t data) |
Set level for all pins from a port. More... | |