1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

2024 Commits

Author SHA1 Message Date
Gilles DOFFE
dd6a37517b drivers: add motor_driver API
This driver API aims to control DC motors.
It handles :
 * motor controller associated to a PWM device
 * several motors by controller
 * motor rotation direction
 * brake capability
 * enable/disable motor individually

Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
d562af40e6
Merge pull request #11144 from jia200x/pr/netdev_lora_rx_info
netdev/lora: add netdev_lora_rx_info structure for RX info
2019-03-08 18:36:02 +01:00
Jose Alamos
2fd59067b4 drivers/sx127x: remove netdev_sx127x_lora_packet_info structure 2019-03-08 17:47:43 +01:00
Jose Alamos
80ae186d7a drivers/sx127x: use netdev_lora_rx_info structure for RX info 2019-03-08 17:47:05 +01:00
Jose Alamos
893707a590 netdev/lora: add netdev_lora_rx_info structure 2019-03-08 17:45:08 +01:00
korotkoves
433ccc9a11
sx127x: set ValidHeader interrupt to NETDEV_EVENT_RX_STARTED event 2019-03-08 08:46:52 +01:00
korotkoves
4ccdb3ac80
sx127x: remove duplicate code + fix for sending 2019-03-08 08:46:51 +01:00
korotkoves
4b60ab07fe
sx127x: fix for sending in implicit headers mode 2019-03-08 08:46:51 +01:00
Michel Rottleuthner
389d258627 drivers/sx127x: add gpio pull config define for DIO pins 2019-03-07 16:09:38 +01:00
Semjon Kerner
c2a40be458 drivers/netdev_ieee802154: add mac header filter 2019-03-04 13:21:43 +01:00
Martine Lenders
2d6a557d83 netdev: introduce test device type 2019-02-26 16:46:21 +01:00
Martine Lenders
727a843ce4
Merge pull request #10905 from maribu/packet_size_l2_pdu
net: NETOPT_MAX_{PACKET_SIZE -> PDU_SIZE}
2019-02-22 15:23:00 +01:00
Joakim Nohlgård
a6f430b4b5 drivers/ds3234: Minimal driver for DS3234 extremely accurate RTC
This driver currently only supports the SPI connected DS3234, and only
for initializing 1 Hz square wave output on the SQW pin, nothing else.
2019-02-19 11:57:40 +01:00
Marian Buschsieweke
a3f1f21410
drivers/xbee: Use NETOPT_MAX_DPU_SIZE
Updated xbee to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:02 +01:00
Marian Buschsieweke
09335b07dd
drivers/sx127x: Use NETOPT_MAX_DPU_SIZE
Updated sx127x to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:00 +01:00
Marian Buschsieweke
1bd6ac4fff
drivers/netdev_ieee802154: Use NETOPT_MAX_DPU_SIZE
Updated netdev_ieee802154 to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:18:58 +01:00
Marian Buschsieweke
d506741d38
drivers/netdev_eth: Use NETOPT_MAX_DPU_SIZE
Updated netdev_eth to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:18:56 +01:00
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