APM:Libraries
|
#include <gpio_hal.h>
Go to the source code of this file.
Functions | |
void | gpio_init_all (void) |
void | gpio_set_mode (const gpio_dev *const dev, uint8_t pin, gpio_pin_mode mode) |
Variables | |
const gpio_dev | gpioa |
const gpio_dev *const | _GPIOA = &gpioa |
const gpio_dev | gpiob |
const gpio_dev *const | _GPIOB = &gpiob |
const gpio_dev | gpioc |
const gpio_dev *const | _GPIOC = &gpioc |
const gpio_dev | gpiod |
const gpio_dev *const | _GPIOD = &gpiod |
const gpio_dev | gpioe |
const gpio_dev *const | _GPIOE = &gpioe |
const gpio_dev | gpiof |
const gpio_dev *const | _GPIOF = &gpiof |
const gpio_dev | gpiog |
const gpio_dev *const | _GPIOG = &gpiog |
static const gpio_dev * | _gpios [] = { &gpioa, &gpiob, &gpioc, &gpiod, &gpioe, &gpiof, &gpiog } |
void gpio_init_all | ( | void | ) |
Initialize and reset all available GPIO devices.
Definition at line 90 of file gpio_hal.c.
Referenced by F4Light::GPIO::init().
void gpio_set_mode | ( | const gpio_dev *const | dev, |
uint8_t | pin, | ||
gpio_pin_mode | mode | ||
) |
Set the mode of a GPIO pin.
Definition at line 125 of file gpio_hal.c.
Referenced by F4Light::GPIO::_pinMode(), F4Light::UARTDriver::begin(), boardInit(), i2c_master_release_bus(), F4Light::SPIDevice::init(), Soft_I2C::init_hw(), F4Light::DigitalSource::mode(), pwmInitializeInput(), F4Light::AnalogSource::setup_read(), spi_gpio_master_cfg(), spi_gpio_slave_cfg(), F4Light::AnalogSource::stop_read(), usb_close(), usb_periphcfg(), and usb_setParams().
GPIO port B device.
Definition at line 31 of file gpio_hal.c.
GPIO port C device.
Definition at line 39 of file gpio_hal.c.
GPIO port D device.
Definition at line 47 of file gpio_hal.c.
GPIO port E device.
Definition at line 55 of file gpio_hal.c.
GPIO port F device.
Definition at line 63 of file gpio_hal.c.
GPIO port G device.
Definition at line 71 of file gpio_hal.c.
Definition at line 75 of file gpio_hal.c.
const gpio_dev gpioa |
Definition at line 17 of file gpio_hal.c.
const gpio_dev gpiob |
Definition at line 25 of file gpio_hal.c.
const gpio_dev gpioc |
Definition at line 33 of file gpio_hal.c.
const gpio_dev gpiod |
Definition at line 41 of file gpio_hal.c.
const gpio_dev gpioe |
Definition at line 49 of file gpio_hal.c.
const gpio_dev gpiof |
Definition at line 57 of file gpio_hal.c.
const gpio_dev gpiog |
Definition at line 65 of file gpio_hal.c.