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
Benjamin Valentin
6e7d5ae2d3
codespell: fix remaining issues
2022-09-16 14:00:35 +02:00
Karl Fessel
05f114d0af
doc: fix unbalaced grouping
...
- most were trivial
- missing group close or open
- extra space
- no doxygen comment
- name commad might open an implicit group
this hould also be implicit cosed but does not happen somtimes
- crazy: internal declared groups have to be closed internal
2022-09-14 15:05:25 +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
b4267fbd5e
drivers: make use of new driver_with_saul.mk where applicable
2022-01-06 12:07:07 +01:00
MrKevinWeiss
aa138dbe4b
drivers/lsm303dlhc: Allow SAUL_DEFAULT in kconfig
2021-12-15 08:38:59 +01:00
Leandro Lanzieri
a8d6e2757e
drivers/lsm303dlhc: add module to Kconfig
2021-01-18 10:42:32 +01:00
Bas Stottelaar
62994dfb16
drivers/*: replace #if ENABLE_DEBUG with IS_ACTIVE
2020-11-02 21:34:12 +01:00
Bas Stottelaar
92b1dfc703
drivers/*: realign ENABLE_DEBUG
2020-10-23 01:26:09 +02:00
99238370a2
drivers/lsm303dlhc: remove useless release/acquire sequence
2020-09-21 11:16:14 +02:00
55ef882860
drivers/lsm303dlhc: improve debug message during init
2020-09-21 11:16:13 +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
Kees Bakker
37d8709f3f
drivers/lsm303dlhc: correct cast of phydat_t*
...
The read functions have a lsm303dlhc_3d_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 17:08:04 +01:00
ec25c1f7b0
drivers/lsm303dlhc: adapt to new I2C api
2018-07-25 12:01:38 +02:00
d81cf561b0
drivers/lsm303dlhc: rework driver API and params definition
2018-07-25 12:01:38 +02:00
a08e9919a9
drivers: fix doxygen grouping
2018-06-11 19:10:40 +02: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
Hauke Petersen
3cbc0352ea
drivers: use saul_notsup
2017-05-08 13:56:35 +02:00
Hauke Petersen
c95abbe45a
drivers/lsm303dlhc: added default params.h file
2017-01-18 15:34:29 +01:00
Kees Bakker
bac5cda1e3
periph/i2c: convert char to uint8_t where applicapable
...
In general, data transferred through I2C are bytes and thus should have
type uint8_t, not char.
Also convert uint8_t ptrs to void ptrs
2016-10-04 20:26:39 +02:00
Oleg Hahm
b428979a1d
debug: add missing line breaks
2016-09-27 23:38:41 +02:00
f0640ee4d8
Update lsm303dlhc.c
2016-07-13 11:30:42 +02:00
Hauke Petersen
e51d634aeb
drivers: adapted gpio_init(_x)() calls
2016-03-17 14:55:30 +01:00
Hauke Petersen
0bde97f167
drivers/lsm303dlhc: normalized SAUL readings
2016-02-04 11:51:28 +01:00
Hauke Petersen
84a094d092
drivers/lsm303dlhc: added SAUL integration
2015-11-30 20:33:55 +01:00
Hauke Petersen
2cc2d9f740
drivers: adjusted drivers to changed GPIO interface
2015-06-12 19:10:29 +02:00
Alexandru Caciulescu
4f643532ce
drivers/lsm303dlhc: Repair header file include guards
2015-03-24 17:55:44 +02:00
PeterKietzmann
dcd70c807b
drivers/isl29020: Acquire exclusive access ti I2C bus
2015-03-03 18:08:38 +01:00
PeterKietzmann
bf6757fe1d
drivers/lsm303dlhc: Acquire exclusive access to I2C bus
2015-03-03 18:08:38 +01:00
Thomas Eichinger
6bbc4ca226
shell: provide shell commands to poll lsm303dlhc sensor
2014-11-06 11:28:22 +01:00
Thomas Eichinger
88fce936e9
lsm303dlhc: initial import of lsm303dlhc driver
...
TODO: Accelerometer does not return valid values yet
2014-11-05 13:04:47 +01:00