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

14 Commits

Author SHA1 Message Date
Gunar Schorcht
312c31dce5 drivers: update to new I2C API 2021-11-29 06:35:25 +01: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
Bas Stottelaar
c42c3475bf drivers/bmx280: add missing _release 2021-01-12 23:47:08 +01:00
Bas Stottelaar
92b1dfc703 drivers/*: realign ENABLE_DEBUG 2020-10-23 01:26:09 +02: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
Bas Stottelaar
76b1200460 drivers: bmx280: adapt to new I2C api. 2018-07-25 12:01:38 +02:00
317716419c drivers: use const device descriptor 2017-06-21 17:05:45 +02:00
4a852abd03 drivers/bmx280: factorize bme280 and bmp280 implementation 2017-06-02 14:54:17 +02:00