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

35 Commits

Author SHA1 Message Date
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
Marian Buschsieweke
16f859dafd
drivers/saul: use const qualifier for data to write
This makes life easier when calling e.g. `saul_reg_write()` with data
stored in flash.

As now the signatures for reading and writing differ (in that `const`
qualifier only), `saul_notsup()` is split into `saul_write_notsup()`
and `saul_read_notsup()`. However, one is implemented as a symbol alias
of the other, so that ROM consumption remains unchanged.
2022-05-23 08:35:27 +02:00
MrKevinWeiss
b1fdef7fe5
drivers/bmx280: Update kconfig model 2022-03-04 14:15:33 +01:00
b4267fbd5e
drivers: make use of new driver_with_saul.mk where applicable 2022-01-06 12:07:07 +01:00
Francisco Molina
69ac014664 drivers/*: add HAVE* 2021-12-08 13:25:26 +01:00
Gunar Schorcht
312c31dce5 drivers: update to new I2C API 2021-11-29 06:35:25 +01:00
Leandro Lanzieri
7c5630032f
drivers/bmx280: refactor Kconfig model 2021-11-22 12:25:31 +01:00
Leandro Lanzieri
ab84ec5134
drivers/bmx280: rework Kconfig model 2021-11-18 09:03:07 +01:00
8bf72ea3ec
drivers/bmx280: declare pseudomodules at driver level 2021-10-05 11:48:50 +02:00
Francisco
a1cbcc9ede
Merge pull request #15902 from maribu/spi-api-change-1
drivers/periph_spi: let spi_acquire return void
2021-09-02 08:50:56 +02:00
Marian Buschsieweke
732cbd969c
drivers: update to new periph_spi API 2021-09-01 21:38:40 +02:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
Hauke Petersen
9aa2154d3a driver/bmx280: remove unused xtimer dependency 2021-04-27 14:24:28 +02:00
Silke Hofstra
3ca1162a6a driver/bmx280: increase accuracy of SAUL pressure readings
The SAUL implementation of the BMx280 currently returns the pressure in hPa.
The sensor, however, actually reads the pressure in Pa, leading to a
significant loss of precision.

Because the operation range of the BME280 and BMP280 is 300 hPa to 1100 hPa,
we can safely increase the precision by a factor of 10 without risk of overflow.
The only downside is that readings are now presented as `e1 Pa` (eg 10206e1 Pa).
2021-03-04 21:01:56 +01:00
Bas Stottelaar
c42c3475bf drivers/bmx280: add missing _release 2021-01-12 23:47:08 +01:00
Leandro Lanzieri
7d02037f87
drivers/bmx280/kconfig: show module only while testing Kconfig deps 2020-12-04 11:36:15 +01:00
Leandro Lanzieri
0494e18a58
drivers/bmx280: add modules to Kconfig 2020-11-25 12:00:14 +01:00
Bas Stottelaar
92b1dfc703 drivers/*: realign ENABLE_DEBUG 2020-10-23 01:26:09 +02:00
304bce3724
drivers: configure per driver dependency resolution 2020-07-20 14:32:16 +02:00
490126cfa0
drivers: move USEMODULE_INCLUDES in each driver directories 2020-07-15 20:36:27 +02:00
01818ed4e8 drivers/bmx280: provide correct CALIB_T_P_LEN 2020-02-24 15:21:06 +01:00
8a909b1f9a drivers/bmx280: increase CALIB_T_P_LEN 2020-02-24 14:25:32 +01:00
benpicco
f4876013cd
Merge pull request #12789 from maribu/bmx280_endianess
drivers/bmx280: Fix incorrect endian conversion
2019-11-28 14:04:41 +01:00
Michel Gerlach
973d9fd54b driver/bme280: add dependencies on temperature for pressure and humidity 2019-11-25 13:13:24 +01:00
Marian Buschsieweke
f08df428fa
drivers/bmx280: Fix incorrect endian conversion
The binary shift operators in C are defined via the change of their values, not
the change of the memory representation of them. When reading a value from
little endian out of buffer `buf`, `((uint16_t)buf[1] << 8) | buf[0]` will
thus work regardless of the byte order of the host system.
2019-11-22 20:58:31 +01:00
Hauke Petersen
b7f33bd84f drivers/bmx280: significant driver rework
bugs fixed:
- move global variables into device descriptor
- guard bus access (use acquire and release)

added functionality:
- enable SPI mode

structural improvements:
- reduce stack usage
- simplify the driver's structure
- centralize bus access code
- use assertions
- cleanup includes
- use shortcuts for bus access

style changes:
- fix line length
- cleanup and improve doxygen
- unify pointer notation (char *var over char* var)
- unify (error) return messages
- use `#ifdef MODULE_BME280` instead of `#if defined(BME..)`
- unify debug messages -> using `[bmx28] x: msg` scheme
2019-11-22 14:04:37 +01:00
Benjamin Valentin
9d6d93ef2f drivers: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Bas Stottelaar
76b1200460 drivers: bmx280: adapt to new I2C api. 2018-07-25 12:01:38 +02:00
Bas Stottelaar
268d7d17a8 drivers: bmx280: include board.h for board parameters. 2017-10-31 21:44:57 +01:00
94c753c07a drivers: doxygen cleanup 2017-09-01 15:12:20 +02:00
smlng
946256d26f saul: use const for device parameter 2017-06-26 20:25:37 +02:00
Sebastian Meiling
1014663d34 Merge pull request #7213 from aabadie/const_drivers_pointer
drivers: partial use of constness when accessing device descriptor
2017-06-22 16:37:29 +02:00
317716419c drivers: use const device descriptor 2017-06-21 17:05:45 +02:00
d9ea159255 drivers: remove useless saul name suffix 2017-06-21 15:06:53 +02:00
4a852abd03 drivers/bmx280: factorize bme280 and bmp280 implementation 2017-06-02 14:54:17 +02:00