Marian Buschsieweke
556a1e31ff
drivers/cc110x: Use NETOPT_MAX_DPU_SIZE
...
Updated cc110x to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:18:54 +01:00
Yegor Yefremov
0dedf979f3
drivers/sx127x: fix dead links
...
URLs of the datasheets have been changed.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-02-15 21:16:42 +01:00
Leandro Lanzieri
a13ab5ee08
drivers/ad7746: Add SAUL integration
2019-02-15 13:37:45 +01:00
Leandro Lanzieri
85e75cf9f8
drivers/saul: Add capacitance and voltage types
2019-02-15 13:37:45 +01:00
Leandro Lanzieri
50dc5b7528
drivers: Add driver for AD7746 capacitance sensor
2019-02-15 13:31:18 +01:00
smlng
6fc3c82072
drivers/hts211: fix CTRL_REG2_OS_EN
...
fixes #11013
2019-02-14 18:03:35 +01:00
Yegor Yefremov
b8ff48cce4
periph/uart: improve documentation
...
Change description to reflect the configurability of the serial
interface.
Also, fix the uart_mode parameter description as the UART will be
configured and not initialized.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-02-11 09:35:23 +01:00
Yegor Yefremov
6bf185855b
drivers/bmx280: fix dead links
...
URLs have been changed to:
https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMP280-DS001.pdf
https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280-DS002.pdf )
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-02-08 09:01:20 +01:00
Kees Bakker
50ec5130d6
drivers: add support for SHT2x (I2C temp and humidity sensor)
...
Several parts were inspired by a driver written by:
George Psimenos (gp7g14@soton.ac.uk )
Steffen Robertz (steffen.robertz@rwth-aachen.de )
2019-02-05 22:17:30 +01:00
Martine Lenders
82e293a496
Merge pull request #10412 from maribu/w5100
...
drivers/w5100: Fixed netdev_driver_t::recv() API
2019-02-05 16:30:42 +01:00
Peter Kietzmann
ee3efa3436
Merge pull request #10930 from silkeh/fix-hdc1000-param-renew
...
Fix hdc1000 renew interval documentation
2019-02-04 13:01:15 +01:00
Silke Hofstra
3cf3742f8c
hdc1000: fix documentation for HDC1000_PARAM_RENEW_INTERVAL
...
The documentation refers to the `HDC1000_PARAM_RENEW_INTERVAL` as
`HDC1000_RENEW_INTERVAL`.
2019-02-04 11:28:31 +01:00
Peter Kietzmann
2c5d1b013e
Merge pull request #10918 from maribu/cc110x_mtu
...
drivers/cc110x: Fixed MTU calculation
2019-02-04 09:44:10 +01:00
Marian Buschsieweke
fc1b7f1e35
drivers/cc110x: Fixed get NETOPT_MAX_PACKET_SIZE
...
netdev_driver_t::get(NETOPT_MAX_PACKET_SIZE) used to return the maximum frame
size instead of the maximum layer 2 PDU size.
2019-02-01 12:24:34 +01:00
Marian Buschsieweke
4183e16820
drivers/cc110x: Replaced magic number
...
Introduced CC110X_L2_HDR_SIZE to get rid of magic numbers.
2019-02-01 12:23:22 +01:00
smlng
03698502e3
netstats_l2: remove obsolete struct from xbee_t
2019-02-01 11:25:27 +02:00
smlng
b8d9610316
netstats_l2: remove obsolete struct from netdev_t
2019-02-01 11:25:27 +02:00
smlng
6183d5f5c5
netdev: remove layer2 netstats from netdev drivers
...
Removing usage of netdev->stats in all net drivers, as it is
handled by gnrc_netif.
2019-02-01 11:25:27 +02:00
smlng
a0324bdb43
netdev: remove netapi call for layer 2 netstats
...
This removes the netopt to get layer 2 netstats from netdev.
2019-02-01 10:35:03 +02:00
smlng
6d0384f068
netstats: collect layer 2 netstats in gnrc_netif
...
This the first step in moving the collection of layer 2 netstats from
the low level driver to a central location, ie. gnrc_netif, to avoid
code duplication.
2019-02-01 10:35:03 +02:00
Kevin "Bear Puncher" Weiss
1d693403b6
Merge pull request #10743 from yegorich/uart-enhanced-settings
...
RFC: UART enhanced settings
2019-01-31 17:11:28 +01:00
Leandro Lanzieri
af7220c2be
drivers/sds011: Fix SAUL read error return
2019-01-31 15:35:19 +01:00
Yegor Yefremov
ddf19783d7
periph/uart: add support for enhanced serial settings
...
As suggested in PR#5899 add a routine uart_mode() that will
setup data bits, stop bits and parity at runtime.
uart.h provides a set of enums defining these settings and each
platform will override them to specify values corresponding to
its configuration registers.
The idea behind the enums is to specify default settings i.e. 8N1
through the 0 value item. Invoking uart_mode(uart, 0, 0, 0) will
setup 8N1 mode.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2019-01-31 14:15:11 +01:00
Michel Rottleuthner
bba4d5b39b
drivers/sds011: add saul integration
2019-01-30 13:15:17 +01:00
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
a6e7882879
mrf24j40: use byteorder for address operations
2019-01-13 12:03:03 +01:00
38e5bd627b
mrf24j40: Don't propagate address to 802154 layer
2019-01-12 20:23:36 +01:00
e6ace9c05d
mrf24j40: Add NETOPT_ADDRESS{,_LONG} to getters
2019-01-12 20:23:36 +01:00
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
fcb55c36cf
kw2xrf: Don't set netdev values in addr setters
2019-01-12 17:04:14 +01:00
5fa40a02fa
kw2xrf: Don't propagate address to 802154 layer
2019-01-12 17:04:13 +01:00
014901aae4
kw2xrf: Add NETOPT_ADDRESS{,_LONG} to getters
2019-01-12 17:04:13 +01:00
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
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
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
Kees Bakker
d79350f2ab
drivers/cc2420: do normal assignment instead of memcpy
2019-01-10 19:43:43 +01:00
Kees Bakker
d0fc60a323
drivers/bmx055: do normal assignment instead of memcpy
2019-01-10 19:43:43 +01:00
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
Kees Bakker
8991c21d30
drivers/pulse_counter: refactor the prototypes of read funcs
...
This change makes it more clear that the dev is modified in some of the
read functions. Only pulse_counter_read_without_reset gets a const
pointer argument.
Also, use pulse_counter_t pointers instead of void pointers where
possible.
2019-01-09 23:06:54 +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
MrKevinWeiss
0ad94e1b4b
drivers/include/i2c: Fix API documentation
...
The write_reg/s states a repeated start write is used but that is not how the i2c is implemeneted.
Most devices also only use a continuous write so the API should be changed to match implementation and the majority of sensors.
2018-12-10 09:56:40 +01:00
MrKevinWeiss
e14e6ead92
drivers/periph_common/i2c: Add not supported codes
...
This commit returns accurate error codes and prevents improper i2c states.
If since i2c_read_reg and i2c_write_reg are full frames the I2C_NOSTOP/START commands should not be supported
2018-12-10 09:49:18 +01:00
Hauke Petersen
c8aaea4288
drivers/netdev_eth: use eui48 for IID generation
2018-12-06 22:02:01 +01:00
Hauke Petersen
39f0e4d5d3
periph/uart: fix line length in doc header
2018-12-06 10:08:56 +01:00
1008ab4fdf
drivers/periph_eeprom: add eeprom_set function
2018-12-04 11:24:57 +01:00
50f19d1d1f
drivers/periph_eeprom: add clear and erase functions
2018-12-04 11:24:57 +01:00
Sebastian Meiling
f492bbd142
Merge pull request #10535 from bergzand/pr/kw2xrf/undedup_channel
...
kw2xrf: Don't use netdev_ieee802154_t for channel
2018-12-03 21:00:27 +01:00
Martine Lenders
fcfc7c3357
netdev_ieee802154: fix IID getter
...
With ace5db70e8
the IID may be gotten from
the device again. However, following the current refactoring efforts
regarding the `netdev_ieee802154` layer, the devices don't necessarily
store the address in the `netdev_ieee802154_t` struct anymore. So we
need to access the address using the driver's `get` function here
instead.
2018-12-03 14:49:41 +01:00
Marian Buschsieweke
003c04bd4c
Merge pull request #10012 from gschorcht/drivers_sht3x
...
drivers: sht3x temperature and humidity sensor
2018-12-03 10:43:16 +01:00
dc70c3c218
kw2xrf: don't set netdev channel in set_channel
2018-12-03 10:17:26 +01:00
e3eaf4671f
kw2xrf: Don't propagate NETOPT_CHANNEL setter
...
This modification changes the netdev::set function for the kw2xrf to not
propagate the NETOPT_CHANNEL to the generic netdev_ieee802154 code
2018-12-03 10:16:08 +01:00
603b754d24
kw2xrf: Add NETOPT_CHANNEL to getters
2018-12-03 10:15:33 +01:00
Federico Pellegrin
e34d46e096
drivers/at: add function to read raw data bytes from modem
2018-11-30 14:59:00 +01:00
Martine Lenders
03b91cbcb8
esp_now: use NETDEV_TYPE_ESP_NOW as device type
2018-11-29 13:35:20 +01:00
Sebastian Meiling
4eaf1d8135
Merge pull request #10384 from bergzand/pr/netdev/ref_nid
...
netdev_ieee802154/radios: refactor PAN ID reset to generic ieee802154 reset
2018-11-28 12:15:45 +01:00
2abf86afb4
mrf24j40: Remove netdev access from set_pan
...
This write access is only required when a modification to the PAN ID
happened directly via this function and not via a netdev::set operation.
The only direct call was done in the reset function of the driver
2018-11-28 11:31:04 +01:00
5566f48f02
kw2xrf: Remove netdev access from set_pan
...
This write access is only required when a modification to the PAN ID
happened directly via this function and not via a netdev::set operation.
The only direct call was done in the reset function of the driver
2018-11-28 11:31:04 +01:00
bd4592a06b
cc2420: Remove netdev access from set_pan
...
This write access is only required when a modification to the PAN ID
happened directly via this function and not via a netdev::set operation.
The only direct call was done in the reset function of the driver
2018-11-28 11:31:03 +01:00
357eed551d
at86rf2xx: Remove netdev access from set_pan
...
This write access is only required when a modification to the PAN ID
happened directly via this function and not via a netdev::set operation.
The only direct call was done in the reset function of the driver
2018-11-28 11:31:03 +01:00
03653ecd39
mrf24j40: Remove PAN ID initialization from reset
2018-11-28 11:31:03 +01:00
52e68735c3
kw2xrf: Remove PAN ID initialization from reset
2018-11-28 11:31:03 +01:00
d2ddc4ef2e
cc2420: Remove PAN ID initialization from reset
2018-11-28 11:31:02 +01:00
6306308ef5
at86rf2xx: Remove PAN ID initialization from reset
2018-11-28 11:31:02 +01:00
167858077f
netdev_ieee802154: Add PAN ID to reset function
...
This commit adds the reset of the PAN ID to the generic ieee802154 reset
function.
2018-11-28 11:30:56 +01:00
Joakim Nohlgård
a867aeaba2
periph/i2c: Add precondition on i2c_acquire for i2c bus access
2018-11-28 08:43:01 +01:00
Martine Lenders
eaabd47dd8
Merge pull request #10275 from gebart/at86rf2xx/ed-overhaul
...
at86rf2xx: refactor received frame ED processing
2018-11-22 14:20:05 +01:00
059af13933
Merge pull request #10306 from aabadie/pr/drivers/mma8x5x_update
...
drivers/mma8x5x: remove useless type from initialization parameters
2018-11-22 10:18:43 +01:00
Hauke Petersen
a07e71418e
drivers/slipdev: use netdev_set_notsup()
2018-11-21 14:33:22 +01:00
Hauke Petersen
7af516a618
netdev: add funcs for declaring get/set as notsup
...
This commit adds two convenience functions that allow to declare
get() and/or set() as not supported when declaring a
netdev_driver struct.
2018-11-21 14:33:22 +01:00
Schorcht
9d59e27d41
drivers: add SHT3X humidity/temperature sensor
2018-11-21 08:48:20 +01:00
a63d76b346
drivers/mma8x5x: remove use of type param
...
Driver now accepts all variants of the driver
2018-11-20 10:41:45 +01:00
josar
8e7c6cc26a
at86rf2xx/at86rf2xx_netdev: improve documentation.
...
It was not obvious where `dev->idle_state` was saved.
2018-11-16 18:53:36 +01:00
Marian Buschsieweke
727b4cac1c
drivers/encx24j600: Implemented missing drop case
...
The netdev_driver_t::recv implementation of the encx24j600 does not provide the
drop feature. This commit adds it.
Fixes : #10410
2018-11-16 13:24:35 +01:00
836fe3dbba
Merge pull request #9890 from bergzand/pr/ethos/sync
...
ethos: Only accept frame if previous frame is read
2018-11-14 22:41:52 +01:00
c4608ca0eb
ethos: Only accept frame if previous frame is read
2018-11-14 22:16:04 +01:00
Sebastian Meiling
1f7ec9b208
Merge pull request #10334 from maribu/saul_rssi
...
{drivers/saul,sys/phydat}: Added RSSI sensor and dBm unit
2018-11-12 21:01:24 +01:00
64afc748ca
Merge pull request #10178 from jcarrano/qualifier-fixes/ethos
...
drivers/ethos: remove unnecessary casts.
2018-11-07 09:14:40 +01:00
Marian Buschsieweke
3cc6c7f465
drivers/saul: Added sensor type RSSI
2018-11-06 11:07:13 +01:00
Juan Carrano
53de520619
drivers/at: fix invalid function pointer cast.
2018-10-31 10:58:43 +01:00
Joakim Nohlgård
23738008a7
at86rf2xx: refactor received frame ED processing
...
The value at the end of the frame buffer is the ED value, same as
PHY_ED_LEVEL, which is given in dB offset from RSSI_BASE.
2018-10-27 01:45:01 +02:00
Josarn
d1261a7ef0
at86rf2xx: correct framebuffer release
...
This PR sets the tranceiver in PLL_ON state to avoid corruption of the
data in the frame buffer and sets it back to the last state which the
transceiver had before changing into transmit mode after the data is
read out. This is done to avoid data corruption when `_recv(...)` is
called to retrieve the buffer size and frame buffer protection is released.
2018-10-26 19:16:34 +02:00
danpetry
99ae495226
Merge pull request #10011 from leandrolanzieri/pr/drivers/ds18
...
drivers/ds18: Add Maxim Integrated 1-Wire temperature sensor driver
2018-10-25 17:26:10 +02:00
Martine Lenders
bd06f7e846
Merge pull request #10250 from bergzand/pr/at86rf2xx/reenable_ack_req
...
at86rf2xx: Re-enable ack requests by default
2018-10-25 14:08:35 +02:00
c3da55b015
at86rf2xx: Re-enable ack requests by default
...
Properly splitting the flags between netdev_ieee802154 and the at86rf2xx
driver had as side effect that the ACK REQ flag was no longer set by
default. This commit reverts the default settings by enabling it again
on startup. The current code calls the generic netdev setter to set the
flag.
2018-10-25 12:17:02 +02:00
Frits Kuipers
8b8790c18f
drivers/ds18: Add Maxim Integrated ds18 driver
...
tests/driver_ds18: Add test application for DS18B20 sensor.
tests/driver_ds18: Add whitelist of boards
2018-10-24 16:02:05 +02:00
PeterKietzmann
1bcb521469
drivers/at86rf233: extend doc for smart idle listening feature
2018-10-23 20:02:39 +02:00
Peter Kietzmann
f5379c05a3
Merge pull request #8971 from Hyungsin/forupstream_smart_idle_listening
...
drivers/at86rf2xx: add smart idle listening feature
2018-10-23 19:34:21 +02:00
danpetry
bed1e22e7d
sys/auto_init: Changes to support SAUL
...
SAUL read functionality implemented only, as described in
tsl4531x_saul.c.
This driver will work with SAUL in both low and high power modes,
with the startup mode configurable in tsl4531x_params.h.
2018-10-23 17:26:28 +02:00
danpetry
a1a834a726
drivers/tsl4531x: Add power modes; redesign
...
Changes include:
- Implementation of two power modes for the driver: low and high
- Redesign and API change to the description in tsl4531x.h
- Full documentation
- Changing file structure and implementation to fit best practices as
described in
https://github.com/RIOT-OS/RIOT/wiki/Guide%3A-Writing-a-device-driver-in-RIOT
- Including I2C addresses for the rest of the range
2018-10-23 17:26:28 +02:00
Juan Carrano
5604abcedc
drivers/tsl4531x: Add SAUL driver.
2018-10-23 17:26:28 +02:00
Juan Carrano
63dcc18c55
drivers/tsl4531x: Add driver for TSL45315 illuiminance sensor.
...
Missing run modes and power saving configurations, but otherwise
functional.
2018-10-23 17:26:28 +02:00
a8c2de12fa
Merge pull request #9870 from bergzand/pr/ethos/fix_recv_with_drop
...
ethos: Add drop frame case to recv function
2018-10-18 15:30:48 +02:00
Juan Carrano
4c54ceb24a
drivers/ethos: remove unnecessary casts.
...
The code contained superfluous casts which did not preserve the
const qualifiers. Functionality is unchanged, but there are no
more warnings reported by -Wcast-qual for this module.
2018-10-17 17:31:33 +02:00
José Alamos
b3ec93d957
Merge pull request #10088 from unwireddevices/riot-fix-adxl345
...
drivers/adxl345: fix ADXL345 driver
2018-10-16 16:34:41 +02:00
Kevin "Bear Puncher" Weiss
0628345364
Merge pull request #10093 from aabadie/pr/drivers/periph_eeprom_refactor
...
drivers/periph_eeprom: refactor implementation and test application
2018-10-16 16:30:40 +02:00
Semjon Kerner
5b0152f4f7
drivers/netdev_ieee802154: drop NETOPT_MAX_PKT_SIZE
2018-10-16 13:28:03 +02:00
Semjon Kerner
2728065be4
drivers/netdev_ieee802154: support NETOPT_MAX_PKT_SIZE
2018-10-16 13:27:21 +02:00
e9a6ebc409
cpu: drivers/eeprom: refactor periph_eeprom implementation
2018-10-16 10:39:10 +02:00
Gunar Schorcht
7fde6fc258
Merge pull request #6712 from aabadie/driver_vcnl4010
...
drivers/vcnl4010: initial implementation
2018-10-15 16:12:45 +02:00
f2c1355560
drivers/adxl345: move scale factor macro to internal implem
2018-10-15 15:00:04 +02:00
Leandro Lanzieri
7a39f03986
drivers/adxl345: Fix byte swap on reading function
2018-10-15 14:57:55 +02:00
Oleg Artamonov
acda8c8828
drivers/adxl345: macros cleanup
2018-10-15 14:57:55 +02:00
Oleg Artamonov
631c16fdb1
drivers/adxl345: fix range values
2018-10-15 14:57:55 +02:00
Oleg Artamonov
de5f38d134
drivers/adxl345: fix scale factor calc
2018-10-15 14:57:55 +02:00
Oleg Artamonov
fb65067d3a
drivers/adxl345: fix ADXL345 driver
2018-10-15 14:57:55 +02:00
Peter Kietzmann
b2c791c6cb
Merge pull request #10135 from miri64/cpu/enh/periph-gpio-irq-closing-endif
...
cpu, periph_gpio: mark closing #endif for MODULE_PERIPH_GPIO_IRQ
2018-10-15 13:41:02 +02:00
1ca44cf072
drivers/vcnl40x0: initial implementation
2018-10-15 11:44:10 +02:00
9cedd7e244
drivers/saul: add proximity sensor type
2018-10-15 11:44:04 +02:00
Kevin "Bear Puncher" Weiss
33aa604dd7
Merge pull request #10145 from gschorcht/drivers_hd44780_fix
...
drivers/hd44780: fix compilation errors
2018-10-12 09:51:15 +02:00
Hauke Petersen
5f50db07e8
misc: use correct hauke.petersen@fu email address
2018-10-11 12:20:37 +02:00
Gunar Schorcht
11be2035dd
drivers/hd44780: fix compilation errors
2018-10-11 08:21:28 +02:00
Martine Lenders
0598d5bcf1
periph_gpio: comment IRQ #endif correctly
2018-10-09 15:11:45 +02:00
Martine Lenders
a95957e513
Merge pull request #9992 from haukepetersen/fix_periph_gpiofeaturesscope
...
periph/gpio: fix scope of GPIO_IRQ submodule
2018-10-09 15:10:39 +02:00
0c53bebe1b
Merge pull request #10094 from silkeh/enable-bme280-doc
...
drivers/bmx280: improve documentation
2018-10-04 10:56:16 +02:00
Martine Lenders
aba75be827
netdev: fix return value and precondition doc
...
While reviewing #9942 I noticed that the documentation on the netdev
driver API is unclear and in some cases outright contradicting itself:
> ```
> @return number of bytes used from @p value
> @return `< 0` on error, 0 on success
> ```
IMHO this is unacceptable for such a central API where communication
This fixes a few things and also clarifies preconditions:
- Specifies negative `errno`s clearly so all drivers return the same
when required
- Re-iterates parameter preconditions and special cases within the
parameter documentation itself (might also help towards #9805?)
- Fixes contradictions within return value documentation
- Adds missing parameter documentation on `init()`.
2018-10-03 16:09:42 +02:00
Silke Hofstra
2fb2776012
drivers/bmx280: improve documentation
...
- Add minimal usage instructions
- Ensure that the `bme_280_read_humidity` function (only available on
the BME280) is included in the documentation.
- Fix a typo
2018-10-01 21:28:11 +02:00
Hauke Petersen
38750f1e30
drivers/l3g4200d: fix typo in src file header
2018-09-26 11:00:48 +02:00
6dfc07b076
drivers/sx127x: remove useless rx timeout setter
2018-09-25 22:22:13 +02:00
smlng
59e299635b
cppcheck: add/correct reason for cppcheck-suppress
...
Adding and correcting description/rational on why certain cppcheck
warnings or errors are intentionally suppressed.
2018-09-25 12:03:58 +02:00
Vincent Dupont
1f2985dfc6
Merge pull request #9952 from OTAkeys/at_fix_buffer_memset
...
at driver: allow using same buffer for command and response in at_send_cmd_get_lines()
2018-09-24 17:33:58 +02:00
Joakim Nohlgård
c4016fcf3b
Merge pull request #9978 from haukepetersen/fix_periph_gpiofeaturescopeanddoc
...
periph/gpio: fix doc of `periph_gpio_irq` submodule
2018-09-21 13:15:19 +02:00
1c2dd28c90
Merge pull request #9937 from dylad/fix_mutex_tsl2561
...
drivers/tsl2561: add missing acquire∕release functions
2018-09-21 10:28:42 +02:00
Hauke Petersen
bd66184eb2
periph/gpio: re-add irq functions to doxygen
2018-09-21 08:31:09 +02:00
Hauke Petersen
abc11c8e23
periph/gpio: fix scope of GPIO_IRQ submodule
...
Move the gpio_irq_enable() and gpio_irq_disable() functions
into the scope of the PERIPH_GPIO_IRQ submodule.
2018-09-21 08:30:29 +02:00
Semjon Kerner
b24de4a22a
drivers/srf04: initial driver implementation
2018-09-20 15:18:49 +02:00
semjonkerner
83711b4819
drivers/Makefile.dep: order modules alphabetically
2018-09-20 11:00:21 +02:00
semjonkerner
603c04e2cc
drivers/Makefile.dep: delete duplicate srf02 module
2018-09-20 11:00:21 +02:00
Leandro Lanzieri
5cc7b6711f
drivers/sx127x: add preliminar multi interrupt pin support
...
drivers/sx127x: add option to use or not multi dio
2018-09-18 14:02:31 +02:00
Toon Stegen
021ab9764a
at driver: fix at_send_cmd_get_lines bug
...
When reusing the same buffer for the at command and response, no command
would be sent because the buffer was cleared. This is fixed by only
clearing the buffer after the command has been sent.
2018-09-18 12:16:09 +02:00
761987ef0d
ethos: Add drop frame case to recv function
...
The ethos driver does not drop the received frame if the recv function
is called with NULL buffer and with a length. This commit fixes that.
2018-09-18 11:20:29 +02:00
dylad
014884264f
drivers/tsl2561: add missing acquire∕release functions
2018-09-14 14:10:08 +02:00
smlng
a9e848f648
periph/rtt: add missing std header
...
The periph/rtt.h uses `uintX_t` typedefs but misses the required
standard header file, namely `stdint.h`, which is added here.
2018-09-07 14:54:23 +02:00
smlng
f35e4786f3
drivers/enc28j60: always set memory bank, if valid
...
Simplify handling of memory banks, ie. remove check if current bank
is target bank and set it explicitly every time.
2018-09-05 13:26:08 +02:00
smlng
4759f691fc
drivers/enc28j60: cleanup
...
Simplify usage of params via MACROs and copy params struct instead
of (re)assigning values to driver struct. Overall code cleanup.
2018-09-05 13:26:08 +02:00
Joakim Nohlgård
ace717ee27
drivers: Add dep on periph_gpio_irq in drivers using GPIO IRQ
2018-08-29 08:53:20 +02:00
bee9a210bc
Merge pull request #9844 from gebart/pr/features-fixup
...
drivers: Add missing dependencies
2018-08-27 12:50:03 +02:00
9f8386c215
drivers*: add saul doc group to related drivers
2018-08-27 11:32:20 +02:00
Joakim Nohlgård
bf851482b2
drivers: dep: Add missing xbee periph deps
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
deacf9c4a7
drivers: dep: Add missing srf08 periph_i2c dep
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
2d7c43f223
drivers: dep: Add missing srf02 deps
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
00f5177d78
drivers: dep: Add missing pcd8544 periph deps
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
af6db2fe28
drivers: dep: Add missing nvram_spi periph_spi dep
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
4a7a5cf5e3
drivers: dep: Add missing nrf24l01p deps
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
9ad69eaba9
drivers: dep: Add missing mq3 periph_adc dep
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
1858d40594
drivers: dep: Add missing lsm303dlhc periph_i2c dep
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
3be0913434
drivers: dep: Add missing lps331ap periph_i2c dep
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
9c25768540
drivers: dep: Remove reference to deleted lm75a driver
2018-08-26 08:10:13 +02:00
Joakim Nohlgård
00017f3f41
drivers: dep: Add missing lc709203f periph dep
2018-08-26 08:10:11 +02:00
Joakim Nohlgård
e35884c048
drivers: dep: Add missing kw2xrf periph_gpio dep
2018-08-26 08:10:07 +02:00
Joakim Nohlgård
eaa6fb381c
drivers: dep: Add missing isl29125 periph_i2c dep
2018-08-26 08:10:05 +02:00
Joakim Nohlgård
7b5dae8d3d
drivers: dep: Add missing isl29020 periph_i2c dep
2018-08-26 08:10:03 +02:00
Joakim Nohlgård
658f751f56
drivers: dep: Add missing ina220 periph_i2c dep
2018-08-26 08:09:58 +02:00
Joakim Nohlgård
dfc05cc545
drivers: dep: Add missing hih6130 periph_i2c dep
2018-08-26 08:09:56 +02:00
Joakim Nohlgård
bd8630518b
drivers: dep: Add missing adt7310 periph_spi dep
2018-08-26 08:09:52 +02:00
Martine Lenders
0f91735280
Merge pull request #9129 from OTAkeys/pr/mtd_spi_nor_4byte
...
mtd_spi_nor: add 4-byte address flash support
2018-08-24 22:22:52 +02:00
608e92e0be
drivers/ata8520e: small improvements
...
- move ata8520e_status from public interface to private implementation
- add useful references to the datasheet
2018-08-24 15:47:24 +02:00
Hauke Petersen
c2184f3454
boards/cpu/drivers/sys: use generic stdio_ if
2018-08-22 10:54:25 +02:00
463b04aa74
Merge pull request #7067 from dylad/adxl345_fix
...
drivers/adxl345: fixes & cleanup
2018-08-22 10:23:46 +02:00
d94d1854ec
Merge pull request #9234 from kYc0o/move_eeprom_to_periph
...
drivers/periph_common/eeprom: move EEPROM definitions to periph_cpu.
2018-08-21 10:25:44 +02:00
Francisco Acosta
861fbe9a11
Merge pull request #9510 from Josar/pr/at86rf2xx_rssi
...
at86rf2xx: correct rssi
2018-08-20 14:52:06 +02:00
7425ac92aa
Merge pull request #9581 from bergzand/pr/at86rf2xx/flag_refactor
...
at86rf2xx: Move flags from netdev to radio
2018-08-17 10:51:23 +02:00
Francisco Acosta
71d3c14354
drivers/periph_common/eeprom: remove the now unnecessary cpu.h include
2018-08-15 15:27:03 +02:00
Francisco Acosta
a22d7ad5cd
drivers: prepare for moving EEPROM definitions
...
IMHO and I think it's more logical, EEPROM definitions don't belong
to cpu_conf.h but to periph_conf.h, thus I moved all of them to that
place.
2018-08-15 14:53:56 +02:00
Joakim Nohlgård
1652e5ae24
sht1x: Fix Wimplicit-fallthrough warning
2018-08-14 10:05:15 +02:00