Generic GPIO impulse counter driver. Counts impulses using GPIO interrupts.
Generic GPIO impulse counter. Counts impulses using GPIO interrupts.
Can be activated on low or high level. If needed,
a debounce procedure can be performed.
export PATH=<path to toolchain executables>
export KERNEL_DIR=<path to kernel build directory>
export CROSS_COMPILE=<cross compilation prefix>
export ARCH=<architecture eg.: arm>
make
Required properties:
Optional properties:
Example:
counter {
compatible = "gpio-counter";
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
debounce-delay-us = <2>;
};