ds18b20: new module for 1-wire temperature sensor (#3462)

Initial commit of code to support 1-wire (Dallas) sensors such
as the DS18B20. Requires Linux kernel drivers to create a file
in /sysfs which is read by this module, and temperature
typically returned to a temperature_fan.

Signed-off-by: Alan Lord <alanslists@gmail.com>
Signed-off-by: Josh Headapohl <joshhead@gmail.com>
This commit is contained in:
Alan Lord
2021-02-02 19:34:56 +00:00
committed by GitHub
parent 19397a0a2b
commit 7d4df65920
5 changed files with 372 additions and 2 deletions

View File

@@ -5,8 +5,9 @@ dirs-y += src/linux src/generic
src-y += linux/main.c linux/timer.c linux/console.c linux/watchdog.c
src-y += linux/pca9685.c linux/spidev.c linux/analog.c linux/hard_pwm.c
src-y += linux/i2c.c linux/gpio.c generic/crc16_ccitt.c generic/alloc.c
src-y += linux/sensor_ds18b20.c
CFLAGS_klipper.elf += -lutil
CFLAGS_klipper.elf += -lutil -lpthread
flash: $(OUT)klipper.elf
@echo " Flashing"