|
RocketLogger
1.0
|
#include "gpio.h"
Include dependency graph for rl_deamon.c:Go to the source code of this file.
Macros | |
| #define | GPIO_BUTTON 26 |
| Linux GPIO number of start/stop button. More... | |
| #define | MIN_INTERVAL 1 |
| Minimal time interval between two interrupts (in seconds) More... | |
Functions | |
| int | gpio_setup (void) |
| void | interrupt_handler (int value) |
| int | main (void) |
| #define GPIO_BUTTON 26 |
Linux GPIO number of start/stop button.
Copyright (c) 2016-2017, ETH Zurich, Computer Engineering Group
Definition at line 8 of file rl_deamon.c.
Referenced by gpio_setup(), and main().
| #define MIN_INTERVAL 1 |
Minimal time interval between two interrupts (in seconds)
Definition at line 10 of file rl_deamon.c.
Referenced by interrupt_handler().
| int gpio_setup | ( | void | ) |
Setup button GPIO
Definition at line 16 of file rl_deamon.c.
References FAILURE, FALLING, GPIO_BUTTON, gpio_dir(), gpio_export(), gpio_interrupt(), IN, and SUCCESS.
Referenced by main().
Here is the call graph for this function:| void interrupt_handler | ( | int | value | ) |
GPIO interrupt handler
| value | GPIO value after interrupt |
Definition at line 33 of file rl_deamon.c.
References MIN_INTERVAL, and status.
Referenced by main().
| int main | ( | void | ) |
RocketLogger deamon program. Continuously waits on interrupt on button GPIO and starts/stops RocketLogger
Arguments: none
Definition at line 59 of file rl_deamon.c.
References FAILURE, GPIO_BUTTON, gpio_setup(), gpio_wait_interrupt(), and interrupt_handler().
Here is the call graph for this function: