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
e0fdc3c16c
*Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +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
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
3e1ba5af2d
drivers/mag3110/kconfig: add hardware feature 2021-12-07 11:32:15 +01:00
Leandro Lanzieri
22bc6a7935
drivers/mag3110: 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
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
fc3ff2a9d9 drivers/mag3110 : Expose to Kconfig
Expose Configurations to Kconfig

Co-Authored-By: Leandro Lanzieri <leandro.lanzieri@haw-hamburg.de>
2020-04-23 15:50:26 +05:30
Akshai M
9c052a6288 drivers/mag3110 : Add CONFIG_
Add CONFIG_ Prefix for MAG3110_I2C_ADDRESS
2020-04-23 15:49:55 +05:30
Kees Bakker
8e898576dc drivers/mag3110: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
ab17629b97 drivers/mag3110: correct cast of phydat_t*
The read functions have a mag3110_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:57:44 +01:00
f113f93ca8 drivers/mag3110: adapt to new I2C api 2018-07-25 12:01:39 +02:00
2afd84f9ca drivers/mag3110: use new driver params scheme 2018-07-25 12:01:39 +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
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
smlng
17e78f7d81 driver, mag3110: add saul auto init 2017-04-13 21:14:44 +02:00
smlng
36526f8a3b driver, mag3110: add saul 2017-04-13 21:14:44 +02:00
smlng
644dbb1224 driver, mag3110: rework 2017-04-13 14:31:09 +02: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
Alexandru Caciulescu
3d209c3db1 drivers/mags3110: Repair header file include guards
removed trailing underscores
2015-03-24 17:55:39 +02:00
PeterKietzmann
dcd70c807b drivers/isl29020: Acquire exclusive access ti I2C bus 2015-03-03 18:08:38 +01:00
PeterKietzmann
0a9e837dba drivers/mag3110: Acquire exclusive access to I2C bus 2015-03-03 18:08:38 +01:00
Johann Fischer
a51c91e5be add mag3110 magnetometer driver 2015-01-09 11:10:59 +01:00