Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "gpio_ext_common.h"
#include "generated/airframe.h"
#include "generated/modules.h"
#include "mcu_periph/gpio.h"
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | GPIO_EXT_NOT_PROVIDED NULL |
#define | GPIO_EXT_PROVIDER1 GPIO_EXT_NOT_PROVIDED |
#define | GPIO_EXT_PROVIDER2 GPIO_EXT_NOT_PROVIDED |
#define | GPIO_EXT_PROVIDER3 GPIO_EXT_NOT_PROVIDED |
#define | GPIO_EXT_PROVIDER4 GPIO_EXT_NOT_PROVIDED |
#define | SAFE_CALL(_port, _fn, _args...) if(gpio_ext_impl[_port - GPIOEXT1] && gpio_ext_impl[_port - GPIOEXT1]->_fn) gpio_ext_impl[_port - GPIOEXT1]->_fn(_args); |
Functions | |
void | __wrap_gpio_setup_output (uint32_t port, uint32_t gpios) |
void | __real_gpio_setup_output (uint32_t port, uint32_t gpios) |
void | __wrap_gpio_setup_input (uint32_t port, uint32_t gpios) |
void | __real_gpio_setup_input (uint32_t port, uint32_t gpios) |
uint32_t | __wrap_gpio_get (uint32_t port, uint32_t gpios) |
uint32_t | __real_gpio_get (uint32_t port, uint32_t gpios) |
void | __wrap_gpio_set (uint32_t port, uint32_t gpios) |
void | __real_gpio_set (uint32_t port, uint32_t gpios) |
void | __wrap_gpio_clear (uint32_t port, uint32_t gpios) |
void | __real_gpio_clear (uint32_t port, uint32_t gpios) |
void | __wrap_gpio_toggle (uint32_t port, uint32_t gpios) |
void | __real_gpio_toggle (uint32_t port, uint32_t gpios) |
Variables | |
static struct gpio_ext_functions * | gpio_ext_impl [GPIOEXT_NB] |
Definition in file gpio_ext_common.c.
#define GPIO_EXT_NOT_PROVIDED NULL |
Definition at line 36 of file gpio_ext_common.c.
#define GPIO_EXT_PROVIDER1 GPIO_EXT_NOT_PROVIDED |
Definition at line 39 of file gpio_ext_common.c.
#define GPIO_EXT_PROVIDER2 GPIO_EXT_NOT_PROVIDED |
Definition at line 42 of file gpio_ext_common.c.
#define GPIO_EXT_PROVIDER3 GPIO_EXT_NOT_PROVIDED |
Definition at line 45 of file gpio_ext_common.c.
#define GPIO_EXT_PROVIDER4 GPIO_EXT_NOT_PROVIDED |
Definition at line 48 of file gpio_ext_common.c.
#define SAFE_CALL | ( | _port, | |
_fn, | |||
_args... | |||
) | if(gpio_ext_impl[_port - GPIOEXT1] && gpio_ext_impl[_port - GPIOEXT1]->_fn) gpio_ext_impl[_port - GPIOEXT1]->_fn(_args); |
Definition at line 62 of file gpio_ext_common.c.
Definition at line 111 of file gpio_ext_common.c.
References __real_gpio_clear(), gpio_ext_functions::clear, and SAFE_CALL.
Definition at line 87 of file gpio_ext_common.c.
References __real_gpio_get(), gpio_ext_functions::get, and gpio_ext_impl.
Definition at line 101 of file gpio_ext_common.c.
References __real_gpio_set(), SAFE_CALL, and gpio_ext_functions::set.
Definition at line 77 of file gpio_ext_common.c.
References __real_gpio_setup_input(), SAFE_CALL, and gpio_ext_functions::setup_input.
Definition at line 67 of file gpio_ext_common.c.
References __real_gpio_setup_output(), SAFE_CALL, and gpio_ext_functions::setup_output.
Definition at line 121 of file gpio_ext_common.c.
References __real_gpio_toggle(), SAFE_CALL, and gpio_ext_functions::toggle.
|
static |
Definition at line 51 of file gpio_ext_common.c.
Referenced by __wrap_gpio_get().