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

27 Commits

Author SHA1 Message Date
Marian Buschsieweke
3c287c058d
sys/phydat: Fix unit confusion
Previously, `UNIT_G` was used for g-force with the correct symbol `g`,
`UNIT_GR` for gram (as in kilogram) with the incorrect symbol `G` (which
would be correct for Gauss), and `UNIT_GS` for Gauss with symbol `Gs`
(which is an uncommon but correct symbol).

To avoid confusion between G-Force, Gauss, and Gram the units have been
renamed to `UNIT_G_FORCE`, `UNIT_GRAM`, and `UNIT_GAUSS`. In addition,
gram now uses the correct symbol `g` and Gauss uses `G`.
2023-02-23 16:44:24 +01:00
Marian Buschsieweke
86fdbd7054
core/lib: Add macros/utils.h header
The macros CONCAT(), MIN(), and MAX() are defined over and over again in
RIOT's code base. This de-duplicates the code by moving the macros to a
common place.
2023-01-07 09:47:44 +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
b4267fbd5e
drivers: make use of new driver_with_saul.mk where applicable 2022-01-06 12:07:07 +01:00
MrKevinWeiss
8fc06376e4
drivers/lsm6dsl Allow SAUL_DEFAULT in kconfig 2021-12-15 08:39:00 +01:00
1acdec389e
drivers/lsm6dsl: migrate to ztimer 2021-12-08 15:15:30 +01:00
Leandro Lanzieri
deaf974650
drivers/lsm6dsl: add module to Kconfig 2021-01-18 10:42:32 +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
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
17e0405a07 drivers/lsm6dsl: fix typos 2019-11-23 22:39:39 +01:00
Kees Bakker
d8edf6dd4e drivers/lsm6dsl: eliminate and correct casts
Converting phydat_t* to lsm6dsl_3d_data_t* is not correct, but it happened
to just work because the first struct member of phydat_t will be used.

Furthermore, casting &res[0] to int16_t* is wrong. Again, it just happened
to work.
2019-01-06 16:56:17 +01:00
bad10174f5 drivers/lsm6dsl: adapt the i2c api return codes 2018-07-25 12:01:38 +02:00
b866bdb9d9 drivers/lsm6dsl: adapt to new I2C API 2018-07-25 12:01:34 +02:00
a64053c5a0 drivers/lsm6dsl: use new driver params scheme 2018-02-28 17:46:15 +01:00
94c753c07a drivers: doxygen cleanup 2017-09-01 15:12:20 +02:00
Vincent Dupont
e75868db32 drivers/lsm6dsl: add power up/down functions 2017-08-09 09:53:05 +02:00
smlng
6d25209967 drivers, lsm6dsl: add SAUL for temperature 2017-07-03 16:00:32 +02:00
smlng
2b9eddfbeb drivers, lsm6dsl: cleanup 2017-07-03 16:00:31 +02:00
smlng
a7d9547d5e driver, lsm6dsl: fix temperature reading 2017-07-03 16:00:25 +02:00
smlng
946256d26f saul: use const for device parameter 2017-06-26 20:25:37 +02:00
317716419c drivers: use const device descriptor 2017-06-21 17:05:45 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
8501a03cbc cleanup: apply enable_debug_false.cocci to codebase (coccinelle)
Skipped sys/cbor/cbor.c, examples/microcoap_server/microcoap_sock.c,
as they use different semantics.
2017-05-15 18:45:43 +02:00
Vincent Dupont
f5adafd813 tests/driver_lsm6dsl: add lsm6dsl driver test app 2017-04-06 10:58:18 +02:00
Vincent Dupont
73d8149490 drivers: add lsm6dsl imu driver 2017-04-06 10:58:18 +02:00