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