An open API service indexing awesome lists of open source software.

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.

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.