2083 Commits

Author SHA1 Message Date
Michel Rottleuthner
6cffa07ed1 drivers/saul: add sensor type for particulate matter 2019-01-30 13:15:17 +01:00
Michel Rottleuthner
f5dc2524d0 drivers: add driver for SDS011 active laser dust sensor 2019-01-30 13:15:17 +01:00
Marian Buschsieweke
a81d39494f
drivers/w5100: Fix recv() with too small buffer
If netdev_driver_t::recv() is called and the provided buffer is smaller than
the frame then `-ENOBUFS` should be returned, the frame should be dropped, and
no data of the frame should be returned.

Addresses: https://github.com/RIOT-OS/RIOT/issues/10413
2019-01-29 20:38:56 +01:00
Marian Buschsieweke
ea3edef5c7
drivers/w5100: Added missing drop implementation
The netdev_driver_t::recv implementation of the w5100 does not provide the
drop feature. This commit adds it.

Fixes: https://github.com/RIOT-OS/RIOT/issues/10410
2019-01-29 20:36:37 +01:00
Marian Buschsieweke
db0c66e07f
drivers/ltc4150: Allow tracking last minute charge
Implemented an example `ltc4150_recorder_t` implementation as a proof of concept
for the recorder API.
2019-01-28 13:45:45 +01:00
Marian Buschsieweke
c434c5cd3a
drivers/saul: Integrated ltc4150 2019-01-28 13:44:45 +01:00
Marian Buschsieweke
c00886ac39
drivers/ltc4150: (Re-)implemented LTC4150 driver
The LTC4150 is a coulomb counter (a.k.a. battery sensor or bidirectional
current sensor) that is used in the MSBA2 board and available for little money
as easy to use break out board.
2019-01-28 13:44:16 +01:00
Marian Buschsieweke
ac98c98a0d
drivers/saul: Added coulomb counter & ammeter 2019-01-28 13:33:18 +01:00
Gunar Schorcht
5cb2dd32e0 drivers/enc28j60: fix of #9784 2019-01-24 23:25:17 +01:00
Ran Berant
59416fc6ce drivers/at: make at_dev_init() return uart initialize status
in case there's an error uart_init() returns an error value,
this value indicates the reason for the error thus we should
return it from at_dev_init() so the user will be able to identify
whether the init succeded or failed.
2019-01-23 19:02:14 +02:00
Gunar Schorcht
5909f38089 doc: fix undocumented define in srf04 driver 2019-01-18 07:03:54 +01:00
Gunar Schorcht
b8b0a92cf8 doc: fix undocumented variable in ads101x driver 2019-01-18 07:03:45 +01:00
Leandro Lanzieri
d9be249144
Merge pull request #10578 from MrKevinWeiss/pr/i2capi
drivers/i2c: Fix i2c api issues
2019-01-16 11:07:10 +01:00
Sebastian Meiling
2fde8335c9
Merge pull request #10728 from keestux/memcpy-struct-copy
Do normal assignment instead of memcpy
2019-01-16 09:18:44 +01:00
Martine Lenders
4ab3d1a77b
Merge pull request #10534 from bergzand/pr/kw2xrf/undedup_address
kw2xrf: Don't use netdev_ieee802154_t for link layer address
2019-01-14 11:25:41 +01:00
Koen Zandberg
a6e7882879
mrf24j40: use byteorder for address operations 2019-01-13 12:03:03 +01:00
Koen Zandberg
38e5bd627b
mrf24j40: Don't propagate address to 802154 layer 2019-01-12 20:23:36 +01:00
Koen Zandberg
e6ace9c05d
mrf24j40: Add NETOPT_ADDRESS{,_LONG} to getters 2019-01-12 20:23:36 +01:00
Koen Zandberg
f7bf03073c
mrf24j40: read address from device
This change modifies the mrf24j40 driver to read the address directly
from the device instead of returning the netdev_ieee802154_t member
2019-01-12 20:23:27 +01:00
Koen Zandberg
fcb55c36cf
kw2xrf: Don't set netdev values in addr setters 2019-01-12 17:04:14 +01:00
Koen Zandberg
5fa40a02fa
kw2xrf: Don't propagate address to 802154 layer 2019-01-12 17:04:13 +01:00
Koen Zandberg
014901aae4
kw2xrf: Add NETOPT_ADDRESS{,_LONG} to getters 2019-01-12 17:04:13 +01:00
Koen Zandberg
666e83479f
kw2xrf: Fetch short addr from device
This change modifies the kw2xrf_get_addr_short function to retrieve the
short address from the device and not from netdev
2019-01-12 17:04:13 +01:00
Koen Zandberg
b044e83a44
kw2xrf: Change long address get to big endian
This change ensures that the endianess returned by the get_addr_long
is consistent with the endianess of the get_addr_short
2019-01-12 17:04:13 +01:00
Alexandre Abadie
b291c638d3
Merge pull request #10526 from OTAkeys/pr/adcxx1c_improve
drivers/adcxx1c: improve error handling
2019-01-11 19:48:35 +01:00
Vincent Dupont
2311cdda07 drivers/adcxx1c: fix phydat usage in saul wrapper 2019-01-11 17:40:55 +01:00
Vincent Dupont
6cf48416e5 drivers/adcxx1c: add error checking from i2c 2019-01-11 17:40:55 +01:00
Vincent Dupont
38da047864 drivers/adcxx1c: fix SAUL return value in case of read error 2019-01-11 16:31:51 +01:00
Sebastian Meiling
501f8fddf8
Merge pull request #10716 from keestux/refactor-prototypes-pulse-counter
drivers/pulse_counter: refactor the prototypes of read funcs
2019-01-11 11:43:36 +01:00
Kees Bakker
b21399b25c drivers/xbee: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
811cda15cb drivers/w5100: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
0cceb64ae9 drivers/tmp006: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
e60715d243 drivers/tcs37727: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
f1856887af drivers/sx127x: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
7715c7cdc0 drivers/slipdev: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
7be829c7e7 drivers/si70xx: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
23e2859528 drivers/sdcard_spi: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
4f9df5cac9 drivers/rn2xx3: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
287a075751 drivers/my9221: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
45a3d00552 drivers/mrf24j40: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
363d6a3df3 drivers/mpl3115a2: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
d5c4aa2a05 drivers/mma8x5x: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
885b123147 drivers/mma7660: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
8e898576dc drivers/mag3110: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
19a87dbf2d drivers/lpd8808: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
7126b1deb2 drivers/kw2xrf: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
7a66106846 drivers/hts221: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
5bb50ea6a5 drivers/hdc1000: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
2918d06e9c drivers/hd44780: do normal assignment instead of memcpy 2019-01-10 19:43:44 +01:00
Kees Bakker
355c52ac46 drivers/dht: do normal assignment instead of memcpy 2019-01-10 19:43:43 +01:00