diff options
| author | brad <brad@NetBSD.org> | 2022-11-24 21:07:05 +0000 |
|---|---|---|
| committer | brad <brad@NetBSD.org> | 2022-11-24 21:07:05 +0000 |
| commit | 2795ca978660ee2b56d126939824cc76e99ee42a (patch) | |
| tree | ff3dbe6f1c795031d4bd748786a8d7a1fe3e375c /sys/dev | |
| parent | c837eca39beb051f03fda09ba1918fadf0aed394 (diff) | |
Mention where in the datasheet the compensation algorithms came from.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/i2c/bmx280.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/i2c/bmx280.c b/sys/dev/i2c/bmx280.c index fe58787e511..f9141de74b1 100644 --- a/sys/dev/i2c/bmx280.c +++ b/sys/dev/i2c/bmx280.c @@ -1,4 +1,4 @@ -/* $NetBSD: bmx280.c,v 1.3 2022/11/23 23:45:29 brad Exp $ */ +/* $NetBSD: bmx280.c,v 1.4 2022/11/24 21:07:05 brad Exp $ */ /* * Copyright (c) 2022 Brad Spencer <brad@anduin.eldar.org> @@ -17,7 +17,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: bmx280.c,v 1.3 2022/11/23 23:45:29 brad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bmx280.c,v 1.4 2022/11/24 21:07:05 brad Exp $"); /* Driver for the Bosch BMP280/BME280 temperature, humidity (sometimes) and @@ -643,8 +643,13 @@ out: sc->sc_sme = NULL; } -/* The conversion algorithms are taken from the Bosch datasheet for - * the BMX280 and adapted to the envsys infrastructure. +/* The conversion algorithms are taken from the BMP280 datasheet. The + * same algorithms are used with the BME280. + * + * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp280-ds001.pdf + * + * Section 3.11.3, page 21 + * */ static int32_t |
