aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorAdrian Keet <arkeet@gmail.com>2021-02-06 15:11:29 -0800
committerKevinOConnor <kevin@koconnor.net>2021-03-01 14:53:13 -0500
commit16d85d1a78bbd29d0177c98754b9a8ccb9f10b42 (patch)
tree68f4fd163dccf3233ada50f2806717d26b99cd5f /src/Makefile
parentf8b0ea53dcf2a04ca847aa6cbf4683eed98a3321 (diff)
downloadkutter-16d85d1a78bbd29d0177c98754b9a8ccb9f10b42.tar.gz
kutter-16d85d1a78bbd29d0177c98754b9a8ccb9f10b42.tar.xz
kutter-16d85d1a78bbd29d0177c98754b9a8ccb9f10b42.zip
fan: Add tachometer support
This adds new config options for fans: 'tachometer_pin' to specify the GPIO pin, and 'tachometer_ppr' (default 2) to specify the number of signal pulses per revolution. The rpm is also exposed by get_status for command templates and the API server. For fast fans (at least 10000 RPM), the polling interval can be shortened using the 'tachometer_poll_interval' option. There is a new mcu object for a generic edge counter, which repeatedly polls a GPIO pin and periodically reports the count to the host. Signed-off-by: Adrian Keet <arkeet@gmail.com>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 98c9a1c1..2f2ab521 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -7,4 +7,4 @@ src-$(CONFIG_HAVE_GPIO_SPI) += spicmds.c thermocouple.c
src-$(CONFIG_HAVE_GPIO_I2C) += i2ccmds.c
src-$(CONFIG_HAVE_GPIO_HARD_PWM) += pwmcmds.c
src-$(CONFIG_HAVE_GPIO_BITBANGING) += lcd_st7920.c lcd_hd44780.c buttons.c \
- tmcuart.c spi_software.c neopixel.c sensor_adxl345.c
+ tmcuart.c spi_software.c neopixel.c sensor_adxl345.c pulse_counter.c