https://github.com/longsleep/gpio-heartbeat
A simple Linux Kernel module, which sends a heartbeat like signal to a GPIO pin.
https://github.com/longsleep/gpio-heartbeat
Last synced: over 1 year ago
JSON representation
A simple Linux Kernel module, which sends a heartbeat like signal to a GPIO pin.
- Host: GitHub
- URL: https://github.com/longsleep/gpio-heartbeat
- Owner: longsleep
- License: gpl-2.0
- Created: 2017-03-18T18:26:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T15:23:40.000Z (over 9 years ago)
- Last Synced: 2025-02-03T14:46:42.941Z (over 1 year ago)
- Language: C
- Size: 9.77 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# GPIO heartbeat
This module provides a continuous heartbeat signal on a GPIO pin. It can be
used as optical signal that the Kernel is alive, by connecting an LED to the
GPIO pin.
Whenever the module is loaded, the GPIO pin periodically toggles on/off
simulating a heartbeat like pluse signal.
## Educational example - use leds-gpio module in production
This module is a simple educational example of a minimal Kernel module with GPIO
platform device and and Kernel thread. The Linux Kernel has the same
functionality available in the [gpio-led](http://lxr.free-electrons.com/source/Documentation/devicetree/bindings/leds/leds-gpio.txt) module
with the heartbeat trigger.
## Compile
This module is developed as an out of tree module and can be compiled with an
existing Kernel source tree or the corresponding headers.
```
make
```
This builds the module for the currently booted (uname -r) Kernel. To install
run `make install`.
## Device tree support
The module can be used as a platform driver with automated early loading using
a device tree entry like the following.
```
gpio-heartbeat {
compatible = "gpio-heartbeat";
status = "okay";
};
```
## License
This module uses the same license as the Linux Kernel. See `COPYING` for details.