Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
GPIO helper functions for linux/omap. More...
#include "std.h"
Go to the source code of this file.
Functions | |
void | gpio_setup_output (uint32_t port, uint16_t gpios) |
Setup one or more pins of the given GPIO port as outputs. More... | |
void | gpio_setup_input (uint32_t port, uint16_t gpios) |
Setup one or more pins of the given GPIO port as inputs. More... | |
void | gpio_set (uint32_t port, uint16_t pin) |
Set a gpio output to high level. More... | |
void | gpio_clear (uint32_t port, uint16_t pin) |
Clear a gpio output to low level. More... | |
uint16_t | gpio_get (uint32_t gpioport, uint16_t gpios) |
Read a gpio value. More... | |
Clear a gpio output to low level.
Definition at line 70 of file gpio_ardrone.c.
References GPIO_WRITE, gpiofp, gpio_data::pin, and gpio_data::value.
Read a gpio value.
Definition at line 120 of file gpio_ardrone.c.
References GPIO_READ, gpiofp, gpio_data::pin, and gpio_data::value.
Set a gpio output to high level.
Definition at line 54 of file gpio_ardrone.c.
References GPIO_WRITE, gpiofp, gpio_data::pin, and gpio_data::value.
Setup one or more pins of the given GPIO port as inputs.
[in] | port | |
[in] | gpios | If multiple pins are to be changed, use logical OR '|' to separate them. |
Definition at line 86 of file gpio_ardrone.c.
Setup one or more pins of the given GPIO port as outputs.
[in] | port | |
[in] | gpios | If multiple pins are to be changed, use logical OR '|' to separate them. |
Definition at line 102 of file gpio_ardrone.c.