No description
- C 96.2%
- Makefile 3.8%
| .gitignore | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| rpm.c | ||
rpm
Installation
- Run
sudo make install
Example usage
cat /sys/class/rpm/rpm0/rpm
Example device tree entry
rpm_fan0: rpm_fan0 {
compatible = "sentinel,rpm-gpio";
rpm-gpios = <&gpio 7 1>; /* 1 = GPIO_ACTIVE_LOW */
pulses-per-revolution = <2>;
hysteresis = <15>; /* optional: number of pulse periods averaged for the reported rpm value, defaults to 15 */
enable-pull-up; /* optional: enable the internal pull-up */
status = "okay";
};