OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:gpio_info
(Results
1 - 1
of
1
) sorted by null
/hardware/bsp/intel/peripheral/libmraa/examples/
mraa-gpio.c
143
struct gpio_source*
gpio_info
= (struct gpio_source*) args;
local
144
int level = mraa_gpio_read(
gpio_info
->context);
145
fprintf(stdout, "Pin %d = %d\n",
gpio_info
->pin, level);
149
gpio_isr_start(struct gpio_source*
gpio_info
)
151
gpio_info
->context = mraa_gpio_init(
gpio_info
->pin);
152
if (
gpio_info
->context != NULL) {
153
mraa_result_t status = mraa_gpio_dir(
gpio_info
->context, MRAA_GPIO_IN);
155
status = mraa_gpio_isr(
gpio_info
->context, MRAA_GPIO_EDGE_BOTH, &gpio_isr_handler,
gpio_info
);
212
struct gpio_source
gpio_info
;
local
[
all
...]
Completed in 2688 milliseconds