|
libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/sam/gpio.h>
Go to the source code of this file.
Functions | |
| void | gpio_set (uint32_t gpioport, uint32_t gpios) |
| Atomic set output. More... | |
| void | gpio_clear (uint32_t gpioport, uint32_t gpios) |
| Atomic clear output. More... | |
| void | gpio_toggle (uint32_t gpioport, uint32_t gpios) |
| Atomic toggle output. More... | |
| void | gpio_enable (uint32_t gpioport, uint32_t gpios, enum gpio_mode mode) |
| Enable output pins. More... | |
| void | gpio_disable (uint32_t gpioport, uint32_t gpios) |
| Disable output pins. More... | |
| void gpio_clear | ( | uint32_t | gpioport, |
| uint32_t | gpios | ||
| ) |
| void gpio_disable | ( | uint32_t | gpioport, |
| uint32_t | gpios | ||
| ) |
Disable output pins.
Onlyc the ones where bits are set to "1" are touched, everything else remains in the old state.
| [in] | gpioport | uint32_t: GPIO Port base address |
| [in] | gpios | uint32_t |
Definition at line 97 of file gpio.c.
References GPIO_GPERC.
| void gpio_enable | ( | uint32_t | gpioport, |
| uint32_t | gpios, | ||
| enum gpio_mode | mode | ||
| ) |
Enable output pins.
Onlyc the ones where bits are set to "1" are touched, everything else remains in the old state.
| [in] | gpioport | uint32_t: GPIO Port base address |
| [in] | gpios | uint32_t |
| [in] | mode | enum gpio_mode GPIO mode. IN, OUT or peripheral function. |
Definition at line 72 of file gpio.c.
References GPIO_GPERC, GPIO_GPERS, GPIO_MODE_IN, GPIO_MODE_OUT, GPIO_ODERC, GPIO_ODERS, and GPIO_PMR_SETVAL.
| void gpio_set | ( | uint32_t | gpioport, |
| uint32_t | gpios | ||
| ) |