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

7 Commits

Author SHA1 Message Date
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
Kees Bakker
0cb92e1e51 drivers: replace memset by simple assignments
A memset was used to clear two of the SAUL values in phydat_t::val
The change is to replace that by the following
    res->val[1] = 0;
    res->val[2] = 0;
which makes the code more obvious.
2019-01-07 21:59:25 +01:00
Hyungsin
fd3f33880b drivers/hdc1000: add caching capability for hdc1000 driver 2017-11-29 11:30:39 -08: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
Hauke Petersen
48f2a92262 drivers/hdc1000: (re)add error checks for I2C acces 2017-05-12 11:57:43 +02:00
Hauke Petersen
976cf30281 drivers/hdc1000: remodeled driver
- cleaned up interface
- made read functions return phyical values
- made resolution configurable at initialization time
- added default parameter configuration file
- added SAUL support for the driver
2017-01-17 10:48:22 +01:00