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

24 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
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
Leandro Lanzieri
a223847621
drivers/mma8x5x/kconfig: add hardware feature 2021-12-07 11:32:15 +01:00
Francisco Molina
dbdaa776e4 drivers/mma8x5x: add HAVE_MMA8X5X 2021-11-25 12:33:40 +01:00
Leandro Lanzieri
d22ef9087d
drivers/mma8x5x: add module to Kconfig 2021-01-18 10:42:33 +01:00
Bas Stottelaar
92b1dfc703 drivers/*: realign ENABLE_DEBUG 2020-10-23 01:26:09 +02:00
Leandro Lanzieri
d25fc243c4
treewide: change prefix for generated Kconfig symbols.
This changes the prefixes of the symbols generated from USEMODULE and
USEPKG variables. The changes are as follow:

   KCONFIG_MODULE_ => KCONFIG_USEMODULE_
   KCONFIG_PKG_ => KCONFIG_USEPKG_
   MODULE_ => USEMODULE_
   PKG_ => USEPKG_
2020-08-31 09:37: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
Akshai M
ec98054bea drivers/mma8x5x : Expose to Kconfig
Expose Configurations to Kconfig
2020-04-22 22:02:34 +05:30
Akshai M
7e3096eae1 drivers/mma8x5x : Add CONFIG_
Add CONFIG_ Prefix for CONFIG_MMA8X5X_I2C_ADDRESS
2020-04-22 21:57:05 +05:30
Kees Bakker
d5c4aa2a05 drivers/mma8x5x: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
cf560eaca7 drivers/mma8x5x: correct cast of phydat_t*
The read functions have a mma8x5x_data_t* argument which is a
struct with 3 int16_t members. Thus we should cast res->val instead of
just res.
2019-01-06 18:11:46 +01:00
a63d76b346 drivers/mma8x5x: remove use of type param
Driver now accepts all variants of the driver
2018-11-20 10:41:45 +01:00
Vincent Dupont
cc9836d792 drivers/mma8x5x: adapt to new i2c API 2018-07-25 12:01:34 +02:00
a08e9919a9 drivers: fix doxygen grouping 2018-06-11 19:10:40 +02:00
cb93d684ff drivers/mma8x5x: use new driver params scheme 2018-03-01 13:57:24 +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
317716419c drivers: use const device descriptor 2017-06-21 17:05:45 +02:00
c78e8cbd27 drivers: mma8x5x: add motion detection interrupt support 2017-06-17 00:29:11 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
Hauke Petersen
cf507c4f07 drivers/mma8x5x: remodeld driver
- renambed to mma8x5x to reflect the versatility
- cleaned up the interface
- fixed value computation for non 12-bit devices of the family
- added default configuration with mma8x5x_params.h
2017-01-18 10:51:15 +01:00