|
RocketLogger 2.1.1
|
#include <errno.h>#include <stdbool.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <gpiod.h>#include <unistd.h>#include "gpio.hpp"
Include dependency graph for gpiod_test.c:Go to the source code of this file.
Macros | |
| #define | GPIO_FHR1 30 |
| Linux sysfs GPIO number for forcing I1 high. | |
| #define | GPIO_FHR2 60 |
| Linux sysfs GPIO number for forcing I2 high. | |
| #define | GPIO_LED_STATUS 45 |
| Linux sysfs GPIO number of status LED. | |
| #define | GPIO_LED_ERROR 44 |
| Linux sysfs GPIO number of error LED. | |
| #define | GPIO_BUTTON 26 |
| Linux sysfs GPIO number of start/stop button. | |
| #define | GPIO_POWER 31 |
| Linux sysfs GPIO number of RocketLogger cape power enable. | |
Functions | |
| int | main (void) |
| #define GPIO_BUTTON 26 |
Linux sysfs GPIO number of start/stop button.
Definition at line 21 of file gpiod_test.c.
| #define GPIO_FHR1 30 |
Linux sysfs GPIO number for forcing I1 high.
Definition at line 13 of file gpiod_test.c.
| #define GPIO_FHR2 60 |
Linux sysfs GPIO number for forcing I2 high.
Definition at line 15 of file gpiod_test.c.
| #define GPIO_LED_ERROR 44 |
Linux sysfs GPIO number of error LED.
Definition at line 19 of file gpiod_test.c.
| #define GPIO_LED_STATUS 45 |
Linux sysfs GPIO number of status LED.
Definition at line 17 of file gpiod_test.c.
| #define GPIO_POWER 31 |
Linux sysfs GPIO number of RocketLogger cape power enable.
Definition at line 23 of file gpiod_test.c.
| int main | ( | void | ) |
Definition at line 43 of file gpiod_test.c.
References GPIO_BUTTON, gpio_button, gpio_deinit(), gpio_init(), GPIO_INTERRUPT_BOTH, GPIO_LED_ERROR, GPIO_LED_STATUS, GPIO_MODE_OUT, GPIO_POWER, gpio_release(), gpio_set_value(), gpio_setup(), gpio_setup_interrupt(), and gpio_wait_interrupt().
Here is the call graph for this function: