summaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorbrad <brad@NetBSD.org>2021-10-03 17:27:02 +0000
committerbrad <brad@NetBSD.org>2021-10-03 17:27:02 +0000
commitdf58d621ea740afbd302751df690d52cd7f93a8b (patch)
tree8005f52582e47b46532df5c8e2fe01fde4be1cd7 /sys/modules
parentd02db73cbda207400155329019aaf9b0fb4d89bf (diff)
A driver for the Sensirion SHT40/SHT41/SHT45 temperature and humidity
sensor. An example of this chip is: https://www.adafruit.com/product/4885 This is a lower cost chip that provides higher then usual precision according to the data sheet. This driver supports all of the published functions that the chip has.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile3
-rw-r--r--sys/modules/sht4xtemp/Makefile11
-rw-r--r--sys/modules/sht4xtemp/sht4xtemp.ioconf7
3 files changed, 20 insertions, 1 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 28cee291fbb..96eeac7a77f 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.256 2021/09/25 17:55:37 maya Exp $
+# $NetBSD: Makefile,v 1.257 2021/10/03 17:27:02 brad Exp $
.include <bsd.own.mk>
@@ -69,6 +69,7 @@ SUBDIR+= hfs
SUBDIR+= hythygtemp
SUBDIR+= si70xxtemp
SUBDIR+= am2315temp
+SUBDIR+= sht4xtemp
SUBDIR+= i2cexec
SUBDIR+= i2c_bitbang
SUBDIR+= if_agr
diff --git a/sys/modules/sht4xtemp/Makefile b/sys/modules/sht4xtemp/Makefile
new file mode 100644
index 00000000000..7c0be3c3847
--- /dev/null
+++ b/sys/modules/sht4xtemp/Makefile
@@ -0,0 +1,11 @@
+.include "../Makefile.inc"
+
+.PATH: ${S}/dev/i2c
+
+KMOD= sht4xtemp
+IOCONF= sht4xtemp.ioconf
+SRCS= sht4x.c
+
+WARNS= 3
+
+.include <bsd.kmodule.mk>
diff --git a/sys/modules/sht4xtemp/sht4xtemp.ioconf b/sys/modules/sht4xtemp/sht4xtemp.ioconf
new file mode 100644
index 00000000000..d5bddcfed33
--- /dev/null
+++ b/sys/modules/sht4xtemp/sht4xtemp.ioconf
@@ -0,0 +1,7 @@
+ioconf sht4xtemp
+
+include "conf/files"
+
+pseudo-root iic*
+
+sht4xtemp* at iic? addr 0x44