1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

71 Commits

Author SHA1 Message Date
Francisco Molina
fe38284a3c drivers/hms330x: initial import 2021-12-16 15:19:44 +01:00
MrKevinWeiss
be6e671d4c
drivers/saul: Fix spelling mistake 2021-12-15 08:38:59 +01:00
Francisco Molina
738ec239b1 drivers/saul/Kconfig: fix autoselection based on SAUL_DEFAULT 2021-12-08 13:25:26 +01:00
Gunar Schorcht
a471d947f0 drivers/saul: add PCF857X driver 2021-12-04 14:11:04 +01:00
Francisco
2d0a6874c7
Merge pull request #16763 from benpicco/drivers/lm75-saul
drivers/lm75: add SAUL integration
2021-09-21 10:41:58 +02:00
benpicco
b6a2d08afc
Merge pull request #15915 from fabian18/ina3221-fixes
drivers/ina3221: style fixes and improvements
2021-09-16 22:22:33 +02:00
benpicco
dde4772aa4
Merge pull request #16003 from benpicco/cpu/nrf52/saul-vddh
cpu/nrf52: add SAUL driver for VDDH sensor
2021-08-25 20:31:53 +02:00
Benjamin Valentin
42a5807845 drivers/lm75: add SAUL integration 2021-08-20 18:15:13 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Fabian Hüßler
c50149e488 drivers/ina3221: refactor 2021-07-07 08:40:02 +02:00
benpicco
41bbafdfe4
Merge pull request #16328 from benpicco/driver/lis2dh12-cleanup
drivers/lis2dh12: clean up API
2021-06-03 15:33:04 +02:00
Benjamin Valentin
392bacd9c7 drivers/lis2dh12: add support for temperature sensor 2021-06-03 12:59:50 +02:00
iosabi
f72efb1daf drivers/si70xx: Add support for Si705x sensors
The Silicon Labs Si705x sensors (Si7050/1/3/4/5) are very similar to the
Si7021 sensors featuring only a temperature sensor and no humidity
sensor. The only difference between the Si705x is the temperature
accuracy of the reading, ranging from +/- 0.1 C in the Si7051 to +/- 1 C
in the Si7050.

This patch adds support for this family of sensors extending the
functionality of the existing si70xx driver. Following the style of
other modules, this implements a pseudomodule per supported chip, adding
si7050, si7051, si7053, si7054 and si7055 pseudomodules.

As a minor change this patch also implements the missing
si70xx_get_serial, si70xx_get_id and si70xx_get_revision functions that
were declared in the si70xx.h header but implemented as private
functions. The si70xx_get_id() may be relevant for the application to
know at run time exactly which version of the hardware is installed.

The updated test running with a Si7051 shows the following output, which
seems consistent with the room temperature conditions during the test.

```
make SI70XX_VARIANT=si7051 -C tests/driver_si70xx/ all flash
```

```
SI70XX temperature and humidity sensor test application
Initializing sensor...
[OK]
Found SI7051 sensor, revision 32
temperature: 24.71 C
temperature: 24.69 C
```
2021-04-17 20:14:35 +00:00
Francisco Molina
478624cbb6
driver/sgp30: initial import 2021-04-08 10:14:30 +02:00
Francisco Molina
240c016143
drivers/sm_pwm_01c: initial import 2021-04-07 12:05:09 +02:00
Benjamin Valentin
f3c1106c9e cpu/nrf52: add SAUL driver for VDDH sensor 2021-03-17 15:35:23 +01:00
chrysn
9cbc6042e3 drivers/saul: Fix "%u" print formatter 2021-02-23 18:02:06 +01:00
Jens Wetterich
533428448d drivers/ina3221: Add docs to SAUL group 2021-02-01 14:31:11 +01:00
Leandro Lanzieri
95206d0346
kconfig/saul: select phydat and enable saul_registry by default 2021-01-21 11:22:30 +01:00
quangphhr
afa723b2f7 drivers/hsc: add driver for honeywell pressure and temperature sensor 2021-01-06 10:22:17 +01:00
iosabi
ce76125a22 drivers/si1133: New SI1133 UV/IR/Ambient light driver
The SI1133 from Silicon Labs is a UV Index Sensor and Ambient Light
Sensor in a small 2x2 mm DFN package. The sensor can measure
independently ultra violet (UV) light, infra red (IR) light and
ambient light, however the ambient light is also influenced by the
IR light requiring compensation from the IR readings.

The SI1133 is quite different from other Silicon Labs chips in RIOT OS
and therefore needs its own driver. In particular, the SI1133 has 7
different photodiode configurations to read but only 6 channels to
read them in parallel so only some channels can be read each time.

This patch implements a new driver allowing to read the data directly
and a saul interface for the three kinds of light source. There are
many configuration options including interrupts and continous modes
that are left out of this initial driver.
2020-12-14 03:13:23 +00:00
Leandro Lanzieri
2407c18890
drivers/saul: add modules to Kconfig 2020-11-25 12:00:13 +01:00
Bas Stottelaar
e3b15a4cc4 drivers/saul: add auto init for efm32_coretemp 2020-11-18 12:28:45 +01:00
Jean Pierre Dudey
e920a2e645 drivers: add gp2y10xx dust sensor
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2020-11-18 09:13:56 +01:00
benpicco
be9eb22bb8
Merge pull request #15106 from chrysn-pull-requests/saul-rgbleds
saul_pwm: auto-init'able RGB LEDs and dimmers
2020-11-13 18:22:30 +01:00
chrysn
1b7cd3d142 drivers/saul/auto_init: Err on out-of-range input 2020-11-05 19:01:17 +01:00
Bas Stottelaar
92b1dfc703 drivers/*: realign ENABLE_DEBUG 2020-10-23 01:26:09 +02:00
Bas Stottelaar
4bdfe9a254 drivers/*: add missing include of assert.h 2020-10-22 11:13:08 +02:00
chrysn
4687504936 drivers/saul/auto_init: Support bool and percent for dimmers
Booleans make sense for dimmers when accessed from a Sith application
that deals in absolutes.

Percent values are also a widespread interpretation of brightness
levels, and are thus supported as well.

The bit arithmetic makes sure that the arithmetic operation value / 100
* saul_pwm_resolution is done efficiently (by expression as a
multiplication followed by shifting) and accurately (by maximizing the
number of usable bits) while still being flexible both with respect to
integer sizes and to changes of saul_pwm_resolution.

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2020-10-17 11:20:30 +02:00
chrysn
d196c7c4a6 drivers/saul/auto_init: Add PWM for LEDs
In analogy to the existing GPIO mappings, this provides (write-only)
SAUL entries for PWM'd LEDs in a single-LED (as SAUL_ACT_DIMMER) and an
RGB (as SAUL_ACT_RGB_LED) mode.

Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
2020-10-17 11:20:17 +02:00
fd1057ee9f
drivers/saul: fix typo in auto_init adc function name 2020-10-16 12:33:37 +02:00
Marian Buschsieweke
b145f4b0b6
sys/auto_init: auto_init_adc -> auto_init_saul_adc
Avoid confusion between peripheral device initialization and SAUL registration
by renaming `auto_init_adc()` to `auto_init_saul_adc()`.
2020-10-16 09:48:05 +02:00
Viktor Gal
7ea8f738fd
Add support for Adafruit Seesaw Soil moisture sensor (#14835)
drivers/seesaw_soil: Add support for Adafruit Seesaw Soil moisture sensor
2020-09-23 17:35:33 +02:00
nagrawal
900e4b61dc driver/scd30: Add driver for Sensirion SCD30
Created tests for Sensirion scd30 driver

Moved Makefile.dep and Makefile.include as per new spec
2020-07-28 10:38:01 +02:00
Dirk Ehmen
05980765f2 drivers/sdp3x: Driver for sensirion sdp3x sensor 2020-06-29 20:50:41 +02:00
ebc147d058 drivers/mhz19: initial support 2020-06-17 08:41:41 +02:00
f585b53d03
drivers/saul/auto_init: remove useless preprocessor directives
The files are now built only when the corresponding module is used
2020-06-08 11:10:48 +02:00
e9a23325e1
drivers/saul/init_devs: only build files when related module is used 2020-06-08 11:10:39 +02:00
984c8eed49
drivers/saul: rename some auto_init files
In order to name them the same as the module they are related to
2020-06-08 11:10:39 +02:00
Akshai M
74a7bb230b drivers/tmp00x : Expose to Kconfig
Expose configurations to Kconfig

Co-authored-by: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-05-20 19:09:48 +05:30
Akshai M
414fae5b0c drivers/tmp00x : Model as bool
Model CONFIG_TMP00X_USE_LOW_POWER and CONFIG_TMP00X_USE_RAW_VALUES
as bool
2020-05-20 19:09:48 +05:30
Gunar Schorcht
df612a3790 sys/auto_init: add hmc5883l device driver 2020-04-01 13:37:22 +02:00
Gunar Schorcht
a1e2f36adb drivers/saul: add auto_init for BME680 2020-03-12 08:52:10 +01:00
Gunar Schorcht
1118f80180 drivers/saul: add common gas class 2020-03-12 08:42:59 +01:00
Schorcht
811850bba7 sys/auto_init: add APDS99XX ALS and proximity 2020-03-11 14:21:47 +01:00
Benjamin Valentin
521b1ce440 sys/auto_init: allow delayed initialisation of SAUL
Co-authored-by: Martine S. Lenders <m.lenders@fu-berlin.de>
2020-03-04 16:13:40 +01:00
Michel Rottleuthner
46091b6b43 drivers/saul: add class and string for size measurements 2020-02-20 14:26:55 +01:00
cae369bc52
saul: Ignore extra dimensions in read functions 2019-12-03 15:17:25 +01:00
Marian Buschsieweke
837e9c1ddc
drivers/saul: Improved stringification
- Changed declaration of SAUL classes (while keeping the format)
    - Termed "class of SAUL classes" category of SAUL classes in the doc to
      avoid confusion. (E.g. a SAUL class will now be in category sensor or
      actuator.)
    - Separate enums for SAUL category and intra-category ID. Numbers will now
      but auto-assigned by the compiler
- Use constant look-up tables for stringification (one table per SAUL category).
  ==> This saves 512B in .data section of AVR
2019-11-25 10:09:11 +01:00
fabian18
7e8cce875a drivers/ina3221: Added SAUL integration 2019-11-05 12:37:41 +01:00