Kees Bakker
f8324c3bff
drivers/ata8520e: do normal assignment instead of memcpy
2019-01-10 19:43:43 +01:00
Kees Bakker
c82f9759a8
drivers/at86rf2xx: do normal assignment instead of memcpy
2019-01-10 19:43:43 +01:00
Kees Bakker
d50038f9d0
drivers/apa102: do normal assignment instead of memcpy
2019-01-10 19:43:43 +01:00
José Alamos
afa69c5567
Merge pull request #10416 from maribu/cc2420
...
drivers/cc2420: Implemented missing drop case
2019-01-10 16:26:40 +01:00
Martine Lenders
6a8808c511
Merge pull request #10638 from maribu/gnrc_netif_cc1xxx
...
net/gnrc/netif: Added CC1xxx adaption layer
2019-01-10 11:45:53 +01:00
Marian Buschsieweke
ae7024b9a3
net/gnrc/netif: Added CC1xxx adaption layer
...
This adaption layer is intended to be used by a rewrite of the CC110x driver and
a new CC1200 driver that is currently being developed for RIOT.
2019-01-10 10:54:36 +01:00
Sebastian Meiling
6767caea5f
Merge pull request #10709 from keestux/eliminate-cast-ds18
...
drivers/ds18: refactor functions with const dev pointer
2019-01-10 09:17:53 +01:00
steffen
2ff2b2c1d7
drivers: Initial support for TPS6274x converter
...
drivers/tps6274x: initial support step-down converter
tests/driver_tps6274x: Added testcase for the step-down converter
boards/jiminy-mega256rfr2: Added TPS6274x config
2019-01-10 00:00:02 +01:00
Peter Kietzmann
3cf8b4de38
Merge pull request #9887 from smlng/pr/driver/enc28j60
...
driver/enc28j60: cleanup
2019-01-09 10:31:43 +01:00
Marian Buschsieweke
aac69c3a56
drivers/cc2420: Fixed behavior on too small buffer
...
As decided in https://github.com/RIOT-OS/RIOT/issues/10413 when
netdev_driver_t::recv() is called with a too small buffer the incoming frame
should be dropped and `-ENOBUFS` returned. This commit makes cc2420 compliant.
2019-01-08 23:45:06 +01:00
Marian Buschsieweke
078444902f
drivers/cc2420: Implemented missing drop feature
...
The netdev_driver_t::recv implementation of the cc2420 does not provide the drop
feature. This commit adds it.
2019-01-08 23:42:03 +01:00
Kees Bakker
52102a7aa0
drivers/bmx055: eliminate some casts
...
First, every read function converts the void pointer into a const bmx055_t
Second, it is cleaner (more obvious) to pass phydat_t.val[3] instead of
type casting to int16_t* and relying that .val[3] is the first struct
member of phydat_t.
2019-01-08 22:03:20 +01:00
Kees Bakker
9ed7d2dc18
drivers/ds18: refactor functions with const dev pointer
...
All DS18 functions have a dev argument. All except the init function use
it as an IN parameter, so we can prototype it as const ds18_t*.
As a consequence we can drop the cast in read_temperature() in ds18_saul.c
which was the primary trigger for the changes.
The commit also follows the preferred convention that "params" is a field
in the device struct. Only the init function needs to write it.
2019-01-08 19:25:13 +01:00
Marian Buschsieweke
19073742b2
Merge pull request #10725 from jia200x/pr/cc2420_inline_flush
...
drivers/cc2420: move flush sequence to inline function
2019-01-08 14:49:58 +01:00
Sebastian Meiling
838284f979
Merge pull request #10729 from keestux/replace-memset
...
drivers: replace memset by simple assignments
2019-01-08 14:26:23 +01:00
Jose Alamos
87e9172643
drivers/cc2420: add datasheet documentation to duplicated strobe call
2019-01-08 13:46:32 +01:00
Jose Alamos
b965b47d9b
drivers/cc2420: move flush sequence to inline function
2019-01-08 13:46:32 +01:00
Kees Bakker
0cb92e1e51
drivers: replace memset by simple assignments
...
A memset was used to clear two of the SAUL values in phydat_t::val
The change is to replace that by the following
res->val[1] = 0;
res->val[2] = 0;
which makes the code more obvious.
2019-01-07 21:59:25 +01:00
Kees Bakker
1d5a67dcce
drivers/bh1750fvi: change prototype of bh1750fvi_init
...
The params argument is now a const pointer. This eliminates the need for
a type cast that converts a const to a non-const.
2019-01-07 21:37:02 +01:00
4365d666f7
Merge pull request #10670 from OTAkeys/pr/cc110x_irq
...
drivers/cc110x: remove irq_disable/irq_restore around spi transfers
2019-01-07 18:49:10 +01:00
Sebastian Meiling
a57b970858
Merge pull request #10713 from keestux/eliminate-cast-adxl345
...
drivers/adxk345: include copy of params in dev struct
2019-01-07 16:38:52 +01:00
Sebastian Meiling
7d56a1decd
Merge pull request #10711 from keestux/eliminate-casts-lsm6dsl
...
drivers/lsm6dsl: eliminate and correct casts
2019-01-07 14:34:41 +01:00
Sebastian Meiling
c999d3a592
Merge pull request #10712 from keestux/lsm303dlhc-correct-phydat-cast
...
drivers/lsm303dlhc: correct cast of phydat_t*
2019-01-07 14:33:12 +01:00
Sebastian Meiling
e8fc13c83c
Merge pull request #10708 from keestux/eliminate-casts-ccs811
...
drivers/ccs811: remove unnecessary casts
2019-01-07 14:31:46 +01:00
Kees Bakker
1e4b956eeb
drivers/mpu9150: correct cast of phydat_t*
...
The read functions have a mpu9150_results_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:14:53 +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
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
Kees Bakker
0ee426b4fe
drivers/mm7660: correct cast of phydat_t*
...
The read functions have a mma7660_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:55:47 +01:00
Kees Bakker
5265edcd26
drivers/adxk345: include copy of params in dev struct
...
This follows the usual convention of having the whole params in the device
struct instead of a pointer-to. This also eliminates the need to cast a
const to a non-const pointer in the init function.
2019-01-06 17:24:24 +01: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
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
Kees Bakker
fa431c4e97
drivers/ccs811: remove unnecessary casts
2019-01-06 14:41:47 +01:00
Kees Bakker
9e8b1edbf9
drivers/ads101x: eliminate casts
...
A helper variable is added, and now all type casts are not needed anymore.
2019-01-03 22:35:44 +01:00
MrKevinWeiss
b870dbb3b9
drivers/bh1750: Fix mislabeled i2c address
...
The i2c address when the pin is high/low are swapped.
This swaps them to match the datasheet and changes the default to low.
2019-01-03 09:08:31 +01:00
Martine Lenders
fa3d617e2e
Merge pull request #10657 from maribu/netdev_driver_pre
...
netdev_driver_t::recv(): Clarified documentation
2018-12-29 14:34:42 +01:00
Marian Buschsieweke
58f496de47
netdev_driver_t::recv: Extend doc on size feature
...
Some drivers return on netdev_driver_t::recv() not the actual frame size, but
an upper bound estimation of it. The upper layer code is already prepared to
handle that. This brings the doc in sync with the code.
2018-12-29 13:59:58 +01:00
Marian Buschsieweke
e81b6191aa
netdev_driver_t::recv: Clarified small buf case
...
Clarified in the documentation how netdev_driver_t::recv() should behave in case
the size of the buffer in parameter buf (indicated by parameter len) is to small
to fit the received frame.
2018-12-28 20:23:19 +01:00
Marian Buschsieweke
87055d7b6d
netdev_driver_t::recv: Added drop and size to doc
...
netdev_driver_t::recv does on of three things:
- Receive the frame
- Drop it
- Get (an estimation of) the size of the frame
The brief section of the documentation was changed to reflect this. (And it
starts with the least obvious thing in the hope readers of the API stumble upon
it...)
2018-12-28 20:23:11 +01:00
Marian Buschsieweke
b6069eb5f5
netdev_driver_t::recv: Fixed preconditions in doc
...
Removed the invalid precondition in netdev_driver_t::recv that the buffer never
NULL and the length positive. (In the "get message size" case both is wrong, in
the drop message case the first part is wrong.)
2018-12-28 20:22:57 +01:00
Martine Lenders
e13bc4285b
Merge pull request #10191 from fedepell/at_recv_bytes_1
...
drivers/at: add function to read raw data bytes from modem
2018-12-28 12:09:35 +01:00
Vincent Dupont
6b82b8490b
drivers/sx127x: remove irq_disable/irq_restore around spi transfers
2018-12-28 09:36:00 +01:00
Vincent Dupont
ffc6e4b65c
drivers/cc110x: remove irq_disable/irq_restore around spi transfers
2018-12-28 09:35:14 +01:00
74d97de11d
drivers/ccs811: cleanup documentation (fix codacy)
2018-12-20 12:42:44 +01:00
Gunar Schorcht
3181a2faa7
drivers/ccs811: nWAKE and nRESET moved to base
2018-12-20 12:42:44 +01:00
Gunar Schorcht
d513e9d3d3
drivers/ccs811: fix build issues on AVR platform
2018-12-20 12:42:44 +01:00
8a7edeb193
drivers/ccs811: fix build issues on ARM ( #1 )
...
* drivers/ccs811: fix types in debug messages
* drivers/driver_ccs811_full: fix unused variable build error
2018-12-20 12:42:44 +01:00
Schorcht
98af7d3d62
drivers: add driver for CCS811 gas sensor
2018-12-20 12:42:44 +01:00
Schorcht
74e1ab220c
drivers: add driver for CCS811 gas sensor
2018-12-20 12:42:44 +01:00
Martine Lenders
6886ca54c2
Merge pull request #10537 from miri64/netdev_ieee802154/fix/get-iid
...
netdev_ieee802154: fix IID getter
2018-12-11 15:59:52 +01:00
Hauke Petersen
c8aaea4288
drivers/netdev_eth: use eui48 for IID generation
2018-12-06 22:02:01 +01:00