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

29 Commits

Author SHA1 Message Date
MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files 2024-03-26 14:54:22 +01:00
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
Jan Mohr
c97d6e7f26 drivers/lis2dh12: release instead of acquire 2022-07-21 15:51:01 +02: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
MrKevinWeiss
1ff07e0133
drivers/lis2dh12: Update kconfig model 2022-03-04 14:15:45 +01:00
Francisco Molina
b229f77ac1 drivers/lis2dh12: use ifdef instead of IS_USED
Using IS_USED leads to undefined API references
2022-01-25 08:45:09 +01:00
b4267fbd5e
drivers: make use of new driver_with_saul.mk where applicable 2022-01-06 12:07:07 +01:00
d9fe3a74e5
drivers/lis2dh12: migrate to ztimer 2021-12-11 16:53:14 +01:00
Francisco Molina
cfdd941f9b drivers/lis2dh12: explicit bus variant selection 2021-12-08 10:39:55 +01:00
Gunar Schorcht
312c31dce5 drivers: update to new I2C API 2021-11-29 06:35:25 +01:00
df2ad2cdde
drivers/lis2dh12: declare pseudomodules at driver level 2021-10-05 11:48:52 +02:00
Francisco Molina
3e4b35c445 boards/nrf52840dk-nrf52dk-dwm1000: add kconfig dependencies 2021-09-29 10:19:27 +02:00
Marian Buschsieweke
732cbd969c
drivers: update to new periph_spi API 2021-09-01 21:38:40 +02:00
Benjamin Valentin
392bacd9c7 drivers/lis2dh12: add support for temperature sensor 2021-06-03 12:59:50 +02:00
Benjamin Valentin
28148b7dc3 drivers/lis2dh12: general cleanup
Don't expose raw register values for the user to figure out
2021-06-03 12:59:50 +02:00
Benjamin Valentin
e8264d3ea9 drivers/lis2dh12: fix event handling
Don't push event handling to the user.
2021-06-03 12:59:50 +02:00
Benjamin Valentin
db0edd3ec1 drivers/lis2dh12: power mode -> resolution
This is easier to understand.
2021-04-23 17:21:04 +02:00
benpicco
753c833109
Merge pull request #15871 from jan-mo/feat/20210120_lis2dh12_extension
driver_lis2dh12: functionality extension
2021-03-04 15:20:55 +01:00
Jan Mohr
4598602176 drivers/lis2dh12: functionality extension 2021-03-04 00:43:04 +01:00
iosabi
2aa7b92884 drivers/lis2dh12: Rename CS ad MODE to avoid conflicts
CS and MODE are a bit too generic macros and may conflict with headers
defined by the CPU, like in the QN908x case.

This patch renames them to BUS_CS and BUS_MODE to keep it consistent
with the other BUS names.
2021-01-31 16:27:23 +00:00
Leandro Lanzieri
ffc7764ef9
drivers/lis2dh12: add module to Kconfig 2021-01-18 10:42:31 +01:00
Bas Stottelaar
92b1dfc703 drivers/*: realign ENABLE_DEBUG 2020-10-23 01:26:09 +02:00
Gunar Schorcht
6d61381d2a drivers: use inline functions for GPIO comparisons
The expandable GPIO API requires the comparison of structured GPIO types. This means that inline functions must be used instead of direct comparisons. For the migration process, drivers must first be changed so that they use the inline comparison functions.
2020-08-31 13:10:28 +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
Jan Mohr
aa5ffe5a6d drivers/lis2dh12: added interrupt function 2020-03-04 17:01:58 +01:00
Hauke Petersen
8a69e4ac69 drivers/lis2dh12: added I2C mode 2019-10-02 11:16:39 +02:00
Hauke Petersen
ba8ab6c88b drivers/lis2dh12: add SAUL mapping 2018-01-18 18:39:43 +01:00
Hauke Petersen
09dab1a9fb drivers: add support for STM lis2dh12 accelerometer 2018-01-18 18:39:43 +01:00