Benjamin Valentin
870f5a5a0b
drivers/include/periph/spi: fix documentation
...
spi_transfer_reg() will *always* send out a byte, even if the byte is '0'.
fixes #11763
2019-07-31 13:27:47 +02:00
Leandro Lanzieri
92a5f7cee3
Merge pull request #11658 from aabadie/pr/drivers/rn2xx3_fix_cmd_append
...
drivers/rn2xx3: fix incorrectly terminated hex strings when writing an array of bytes
2019-07-30 21:03:31 +02:00
Martine Lenders
007de266d3
Merge pull request #11926 from miri64/gnrc_cc110x/enh/use-netif-setter
...
gnrc_cc110x: use gnrc_netif_hdr_set_netif()
2019-07-30 19:57:30 +02:00
Marian Buschsieweke
8cbf636781
drivers/dht: Fixed magic numbers & missing doc
...
- Replaced magic number by preprocessor macros and documented them
- Added comment to explain why DHT21 is not part of the switch() expression
2019-07-29 10:39:50 +02:00
Marian Buschsieweke
579a67be03
drivers/dht: Move hold logic from SAUL to driver
...
The DHT11/DHT21/DHT22 cannot be sampled more than once a second. Previously,
a global cache was added to the SAUL adaption of the dht driver to answer with
stored values for one second after the last read. This however had two
disadvantages:
- The global cache was shared for all DHTXX devices connected. As a result
incorrect values were delivered when reading out multiple sensors over SAUL
with less than 1 second delay in between
- A user of the low level API will had to implement the same caching strategy,
resulting in code duplication
By moving the hold logic to the driver, both limitations can be overcome.
2019-07-29 10:39:50 +02:00
Martine S. Lenders
d129382484
gnrc_cc110x: use gnrc_netif_hdr_set_netif()
2019-07-26 15:34:08 +02:00
Marian Buschsieweke
d2d83c3bd0
drivers/dht: Fixed assert on uninitialized data
...
Instead of asserting that parameters are valid, dht_init() contained an assert
on uninitialized data. This commit fixes that assert
2019-07-19 16:14:29 +02:00
Marian Buschsieweke
c75bacceba
drivers/dht: Added error handling
...
Previously the DHT11/DHT21/DHT22 driver ended up in an infinite loop locking up
RIOT when a communication error occurred. This commit adds a simple timeout to
the communication in order to prevent these lock ups.
2019-07-19 15:57:49 +02:00
f8128844b7
Merge pull request #11527 from fjmolinas/pr_wdg_hdr
...
drivers/include: add header definition for wdt
2019-07-16 14:25:40 +02:00
fjmolinas
541f9ddd20
drivers/include: add header definition for wdt
2019-07-16 13:53:28 +02:00
Leandro Lanzieri
cb57c6ff1a
Merge pull request #11798 from jia200x/pr/remove_sx127x_multi
...
sx127x: remove MULTIDIO and fix missing interrupt handling
2019-07-05 11:33:42 +02:00
Jose Alamos
2e7683b5e2
sx127x_netdev: remove switch-case from ISR handler
...
Some LoRa modules don't provide all ISR lines. Thus, there are
cases where different interrupts appear simultaneously in the ISR flags.
It's required to use an AND/OR pattern to check which interrupts were triggered.
2019-07-05 10:52:43 +02:00
9e6d558596
stm32_eth: Code cleanup and some fixes
...
cpu/stm32_common: cleanup periph eth
boards/nucleo-f767zi: cleanup dependencies
boards/nucleo-f767zi: fix dma configuration attribute for eth
examples/default: add nucleo-767zi in boards with netif
drivers/stm_32_eth: Add header guard for eth_config
Co-authored-By: Robin <robin@chilio.net>
2019-07-04 15:27:50 +02:00
Robin
4729bea46e
stm32_eth: Multiple Improvements of the original codebase
...
stm32eth: Move to stm32_common periph
cpu/stm32_periph_eth: Rebase to current master branch
- Update DMA to use new vendor headers
- Update send to use iolist. It looks like the packet headers are now transfered as seperate iolist entries which results in the eth periph sending each header as own packet. To fix this a rather ugly workaround is used where the whole iolist content is first copied to a static buffer. This will be fixed soon in another commit
- If MAC is set to zero use luid to generate one
- Small code style fixes
cpu/stm312f7: Add periph config for on-board ethernet
boards/nucleo-f767zi: Add config for on board ethernet
tests/stm32_eth_lwip: Remove board restriction
boards/common/nucleo: Add luid module if stm32 ethernet is used
tests/stm32_eth_gnrc: Add Testcase for gnrc using the stm32 eth periph
stm32_eth: Rework netdev driver layour
tests/stm32_eth_*: Use netdev driver header file for prototypes
stm32_eth: Add auto init for stm32 eth netdev driver
boards/stm32: Enable ethernet conf for nucleo boards
stm32_eth_auto_init: Add dont be pendantic flag
stm32_eth: Remove dma specific stuff from periph_cpu.h
Looks like this was implemented in PR #9171 and 021697ae94
with the same interface.
stm32_eth: Remove eth feature from stm32f4discovery boards
stm32_eth: Migrate to stm32 DMA API
stm32_eth: Add iolist to module deps
stm32_eth: Rework send function to use iolist
stm32_eth: Fix ci build warnings
stm32_eth: Fix bug introduced with iolist usage
stm32_eth: Remove redundant static buffer
stm32_eth: Fix feature dependencies
stm32_eth: Fix wrong header guard name
stm32_eth: Implement correct l2 netstats interface
stm32_eth: Rename public functions to stm32_eth_*
stm32_eth: Fix doccheck
stm32_eth: Move register DEFINE to appropriate header file
stm32_eth: remove untested configuration for f446ze boards
stm32_eth: Move periph configuration struct to stm32_common
stm32_eth: Fix naming of eth_phy_read and eth_phy_write
stm32_eth: Remove obsolete test applications
2019-07-04 15:27:26 +02:00
Victor Arino
e206087d65
stm32_eth: Initial implementation by Victor Arino
...
drivers/eth-phy: add generic Ethernet PHY iface
cpu/stm32f4: implement eth driver peripheral
This implements the ethernet (MAC) peripheral of the stm32f4 as a
netdev driver.
boards/stm32f4discovery: add eth configuration
boards/stm32f4discovery: add feature stm32_eth
tests/stm32_eth_lwip: add test application
2019-07-04 15:04:01 +02:00
Jose Alamos
d94d587e5e
sx127x: remove DIOMULTI
2019-07-04 14:23:48 +02:00
Sebastian Meiling
f6207871a9
Merge pull request #11678 from MichelRottleuthner/pr_fix_sx127x_reset
...
drivers/sx127x: fix device reset
2019-07-03 17:07:50 +02:00
Michel Rottleuthner
6e4214843a
drivers/sx127x: fix reset for sx1272 devices.
...
- The previous implementation wrongly assumes that sx1272 and 1276
use the same logic level for triggering a reset.
- The timeout values were to short to guarantee proper reset when
coming from POR.
2019-07-03 11:26:23 +02:00
Jose Alamos
ca8c78116f
drivers/sx127x: add NETOPT_RX_SYMBOL_TIMEOUT setter
2019-06-27 15:43:50 +02:00
Jose Alamos
268e6df950
drivers/sx127x: add NETOPT_RANDOM option handling
2019-06-27 15:43:50 +02:00
Jose Alamos
77162b8c6f
drivers/sx127x: add NETOPT_SYNCWORD option handling
2019-06-27 15:43:50 +02:00
Toon Stegen
331c0db5cf
driver/at: add return code for CME/CMS errors
...
in case of CME or CMS errors, the error codes or human readable strings
are in the response buffer. We want to indicate to the AT driver user
that when tihs case occurrs so he can extract the error codes.
2019-06-25 09:59:27 +02:00
f52d5ebde7
drivers: sys: replace USE_ETHOS_FOR_STDIO macro by MODULE_STDIO_ETHOS
2019-06-23 22:16:03 +02:00
Martine Lenders
abf4d60286
Merge pull request #11718 from jia200x/pr/netdev_ieee802154_pib
...
netdev_ieee802154: add txpower and page
2019-06-19 18:24:13 +02:00
Jose Alamos
302fa1467f
netdev_ieee802154: add txpower to descriptor
2019-06-18 13:51:31 +02:00
Jose Alamos
c33d5f744b
netdev_ieee802154: add channel page to descriptor
2019-06-18 13:51:31 +02:00
Michel Rottleuthner
f337f42738
drivers/sx127x: add define for logic level of POR indication by the reset pin
2019-06-11 19:24:07 +02:00
44f9c3fa28
enc28j60: use ethernet address helper functions
2019-06-10 21:07:02 +02:00
1f6895d0f7
drivers/rn2xx3: fix incorrectly terminated hex strings
...
When writing an array of bytes, each byte is converted on the fly to 2 hex characters and sent to the rn2xx3 module. This change ensures each string is correctly terminated, with null character, when written to the module
2019-06-07 10:39:31 +02:00
Martine Lenders
82278e808e
Merge pull request #11637 from miri64/isrpipe/fix/change-api-types
...
isrpipe: change API to be in line with `tsrb`
2019-06-06 12:49:24 +02:00
Martine Lenders
f3ab285362
slipdev: make rxmem buffer uint8_t
...
`tsrb` changed to that type, so there is no reason for us, to keep the
internally used buffer as a `char` (especially since the rest of the
driver already uses `uint8_t`)
2019-06-05 21:24:38 +02:00
Martine Lenders
8cf4bc178c
at: adapt for isrpipe API type change
2019-06-05 18:16:32 +02:00
9b47dcb542
Merge pull request #11634 from miri64/tsrb/fix/change-api-types
...
tsrb: change input type to `uint8_t`
2019-06-05 17:50:16 +02:00
Martine Lenders
5dafce71be
slipdev: adapt for tsrb API type change
2019-06-05 17:10:27 +02:00
Martine Lenders
31c49c58f1
ethos: adapt for tsrb API type change
2019-06-05 17:10:27 +02:00
20b94e9c56
usbdev: fix usbopt argument for getter/setter wrappers
2019-06-05 12:06:10 +02:00
Kevin "Bear Puncher" Weiss
4922321f1f
Merge pull request #11585 from fedepell/i2c_reg_endianess_2
...
periph/i2c: handle i2c register write/read helper function correctly in big endian
2019-05-29 11:54:24 +02:00
Kevin "Bear Puncher" Weiss
772dcd189b
Merge pull request #11532 from leandrolanzieri/pr/drivers/at_rcv-functions
...
drivers/at: Add 'at_recv_bytes_until_string' function
2019-05-29 09:55:33 +02:00
Federico Pellegrin
1779abafb5
periph/i2c: make sure i2c registers is big-endian on all archs
2019-05-29 05:15:23 +02:00
Peter Kietzmann
a66693d111
Merge pull request #11501 from leandrolanzieri/pr/drivers/adcxxc1_config_group
...
drivers/adcxxc1: Expose compile configuration via config group
2019-05-28 22:17:54 +02:00
Carton
886a29311e
drivers/mrf24j40 : support of NETOPT_LAST_ED_LEVEL
2019-05-23 15:45:03 +02:00
Benjamin Valentin
477938e46e
drivers/mrf24j40: add external PA/LNA control on MC/MD/ME devices
...
The MRF24J40MC/MD/ME modules contain an external power amplifier &
low noise amplifier that has to be enabled manually by setting three bits
in the TESTMODE register.
On MRF24J40MC the power amplifier is powered by a separate voltage regualtor
that has to be enabled by setting GPIO3 to HIGH.
During Sleep and CCA the PA should be disabled.
Co-authored-by: Carton <joel.carron@eeproperty.ch>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2019-05-23 11:07:04 +02:00
a7f8182249
drivers: sys: add SAUL support for ds75lx sensor
2019-05-22 16:54:20 +02:00
35a3c4ddfe
drivers/ds75lx: add basic driver
2019-05-22 16:54:19 +02:00
Guillaume Gonnet
1783b3da55
drivers/ds18: fix ds18_read
with negative temperatures
...
When DS18 returns 0xFE6F (corresponding to -25.0625 °C), `ds18_read` returns
13877 whereas it should return -2506. This commit fixes this issue.
2019-05-16 20:12:22 +02:00
Leandro Lanzieri
b5171f4d48
tests/driver_at: Add receive until string test
2019-05-16 14:45:53 +02:00
Leandro Lanzieri
5b04fb1713
drivers/at: Add function to receive until string
2019-05-16 14:45:53 +02:00
Leandro Lanzieri
ef6207da06
drivers/adcxxc1: expose configuration via config group
2019-05-08 15:22:41 +02:00
MichelRottleuthner
c754f3c4c7
Merge pull request #11451 from fhessel/pcd8544
...
drivers/pcd8544: Use uint8_t instead of char for byte represenatation
2019-04-30 21:47:50 +02:00
Frank Hessel
70ac451a2b
drivers/sdcard_spi: Use uint8_t for byte values
2019-04-29 19:25:34 +02:00
Frank Hessel
827868a7a0
drivers/pcd8544: replace char by uint8_t for bytes
2019-04-25 23:42:30 +02:00
Frank Hessel
4fa954c1e3
drivers/adt7310: Replace binary representation
2019-04-25 21:18:36 +02:00
ac60154157
Merge pull request #9771 from Citrullin/advanced_io
...
drivers/periph/gpio_util: add gpio_util_shiftin()
2019-04-24 11:15:20 +02:00
Philipp Blum
9f2ef5e367
drivers/periph_common/gpio_util: introduce gpio_util_shiftin()
2019-04-18 07:09:32 +02:00
Gilles DOFFE
3a83648f2a
drivers: add licence to motor_driver source files
...
Related to PR #10290 , add missing licence to some source files.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-04-13 00:29:58 +02:00
c1547efb3a
Merge pull request #11316 from fjmolinas/pr_sx127x_switch
...
drivers/sx127x: add support for rx and tx switch pin
2019-04-10 18:40:37 +02:00
francisco
c62d9feff7
drivers/sx127x: add support for rx and tx switch pin
2019-04-10 08:18:01 +02:00
MrKevinWeiss
3ed9060527
drivers: adcxx1c, ads101x, ad7746: Change I2C macro to DEV
...
Due to a name clash the helper macro I2C should be change.
Helper macros in other drivers are called DEV.
Changing to DEV fixes the naming conflict.
2019-04-08 14:08:07 +02:00
Sebastian Meiling
4dd09eaa06
Merge pull request #6178 from OTAkeys/pr/can_stm32
...
can stm32: add a driver for STM32 bxCAN peripheral
2019-04-08 08:50:08 +02:00
Dylan Laduranty
a81dbf0037
Merge pull request #11152 from ibr-cm/petersen/l3g4200d-fix-pr
...
l3g4200d: Fixes conversion bug
2019-04-05 15:49:13 +02:00
Vincent Dupont
74ddf56171
tests/conn_can: build stm32 CAN drivers
...
Build can_stm32 module on boards which have a stm32 CAN controller.
2019-04-03 11:12:46 +02:00
Martine Lenders
a1e2dc0810
Merge pull request #11332 from kYc0o/pr/xbee/prevent_0_len_uart
...
drivers/xbee: prevent 0 length packet sent to UART
2019-04-02 17:33:29 +02:00
kYc0o
f673d5af1e
drivers/xbee: prevent 0 length packet sent to UART
...
Since the API doc doesn't specify what to do with 0
len writings into UART, we cannot assume that is
safe to do it, so this commit prevents it by checking
the length prior to the `uart_write()` operation.
2019-04-02 16:47:13 +02:00
Martine Lenders
4e464bdbc6
Merge pull request #11331 from kYc0o/pr/cc2420/fix_0_len_pkt
...
drivers/cc2420: don't append to FIFO if iol->iol_len == 0
2019-04-02 16:29:24 +02:00
kYc0o
c6b424f4ff
drivers/cc2420: don't append to FIFO if iol->iol_len == 0
...
This prevents SPI transfers with len == 0, which triggers
an assert failure.
2019-04-02 16:00:03 +02:00
200ce49638
Merge pull request #11325 from maribu/encx24j600
...
drivers/encx24j600: Allow empty iolist elements
2019-04-01 17:10:16 +02:00
MichelRottleuthner
d77b8e1f52
Merge pull request #11321 from bergzand/pr/mrf24j40/fix_empty_element
...
drivers/mrf24j40: don't load data if iol->iol_len == 0
2019-04-01 17:09:15 +02:00
Marian Buschsieweke
99db8e8717
drivers/encx24j600: Allow empty iolist elements
...
This commits allows using netdev_driver_t::send() to be called with one or more
empty iolist elements. This fixes issue
https://github.com/RIOT-OS/RIOT/issues/11163
2019-04-01 16:51:39 +02:00
1804730c0e
mrf24j40: don't load data if iol->iol_len == 0
2019-04-01 11:46:42 +02:00
Martine Lenders
299a1903e6
Merge pull request #11215 from jia200x/pr/sx127x_fix
...
sx127x: ignore empty iolist element
2019-04-01 11:37:37 +02:00
Martine Lenders
85276fb7a0
Merge pull request #11214 from maribu/enc28j60
...
drivers/enc28j60: Allow sending with empty chunks
2019-03-30 18:08:01 +01:00
Torben Petersen
506e208ffd
drivers/l3g4200d: fixes driver conversion
2019-03-30 10:32:43 +01:00
Vincent Dupont
ae95137f95
can stm32: add a driver for STM32 bxCAN peripheral
...
This driver is compliant with the candev interface. It has been tested
with STM32F0 and STM32F2 and STM32F413 ONLY at this time but should be
compliant with other STM32Fx devices
2019-03-29 12:03:43 +01:00
14f47bf220
Merge pull request #10695 from aabadie/pr/drivers/lpsxxx
...
drivers/lpsxxx: refactor lps331ap and add support for lps25hb + lps22hb
2019-03-29 10:54:08 +01:00
Dylan Laduranty
ccf12c57a8
Merge pull request #10884 from fedepell/sam_rwee_support
...
sam0 flashpage RWWEE flash support
2019-03-28 11:00:25 +01:00
Hauke Petersen
f2df22ed99
Merge pull request #10589 from miri64/l2util/feat/initial
...
l2util: initial import of a general IPv6 over X helper module
2019-03-27 11:46:12 +01:00
Martine Lenders
db8954fe60
Merge pull request #11267 from cladmi/pr/isrpipe/separate_read_timeout
...
isrpipe: split isrpipe_read_timeout to isolate xtimer dependency
2019-03-26 22:27:15 +01:00
Martine Lenders
664763bb29
netdev: add doc group for network device types
2019-03-26 21:37:20 +01:00
Gaëtan Harter
29fc58bc79
drivers/at: remove the direct dependency to xtimer
...
`at` is not using the `xtimer` module directly but only through
'isrpipe_read_timeout'.
2019-03-26 21:36:24 +01:00
Gaëtan Harter
b07eecd619
isrpipe: split isrpipe_read_timeout to isolate xtimer dependency
...
This defines a new 'isrpipe_read_timeout' module that should be used when using
the timeout based function of isrpipe.
This fix the implicit dependency to 'xtimer' that is only needed for the
'_timeout' functions.
It prevents 'stdio_uart' that uses 'isrpipe' to need to depend on xtimer.
This was silently solved at link time for most platforms but not for the
'esp32' for example.
'drivers/at' needed to be updated at the same time to follow the api change.
2019-03-26 21:36:24 +01:00
Kevin "Bear Puncher" Weiss
268d3e926c
Merge pull request #10826 from ranbe1/at_driver_uart_initialize_status
...
drivers/at: make at_dev_init() return uart initialize status
2019-03-26 14:07:05 +01:00
c697a3bfd8
usbdev: extend events with suspend/resume
2019-03-25 21:03:21 +01:00
Dylan Laduranty
784af0a9c8
Merge pull request #11213 from bergzand/pr/usb/periph_init
...
usbdev: Add low level initialization to `periph_init()`
2019-03-25 20:49:25 +01:00
Federico Pellegrin
5faafac092
sam0 flashpage RWWEE flash support
2019-03-21 04:27:41 +01:00
7c285eb186
drivers/lpsxxx: add support for lps22hb
2019-03-20 14:43:37 +01:00
1f4dee90a1
drivers/lpsxxx: unify lps331ap and lps25h drivers
2019-03-20 14:43:36 +01:00
Marian Buschsieweke
f5cd25bdab
drivers/enc28j60: Allow sending with empty chunks
...
This commit allows `netdev_driver_t::send()` of `enc28j60` to be passed an
`iolist_t` containing one or more empty elements.
2019-03-20 09:57:45 +01:00
cf093c5a25
periph: add low level usbdev initialization
2019-03-20 09:12:24 +01:00
4d352fc93f
usbdev: Extend with low level initialization functions
2019-03-20 09:12:24 +01:00
Jose Alamos
4778776790
sx127x: ignore empty iolist element
2019-03-19 17:30:55 +01:00
Torben Petersen
04d346667b
drivers/bmp180: fix conversion
2019-03-18 09:43:39 +01:00
Martine Lenders
6611be5140
at86rf2xx: don't call tx_load when iol->iol_len == 0
2019-03-15 15:34:38 +01:00
Martine Lenders
51626a48d4
netdev: document valid values for iolist in send()
2019-03-15 11:34:19 +01:00
71204d1d70
Merge pull request #9830 from bergzand/pr/usb/usbdev
...
usbdev: Introducing a generic USB device driver API
2019-03-14 22:48:47 +01:00
9af6c69a93
usbdev: Introduce a common API for USB peripherals
...
This commit adds usbdev, a common API to interface USB peripheral
devices. The API is split into two parts, one for the USB device itself
and one for the USB endpoint.
2019-03-14 21:44:56 +01:00
Leandro Lanzieri
e98de1a91a
drivers/ds3234: Fix doxygen group
2019-03-14 14:32:28 +01:00
Leandro Lanzieri
94a10e9e10
Merge pull request #11132 from MichelRottleuthner/pr_sx127x_add_gpio_pull_config
...
drivers/sx127x: add gpio pull config define for DIO pins
2019-03-14 14:05:56 +01:00
4dcd958dce
Merge pull request #10415 from maribu/encx24j600
...
drivers/encx24j600: Implemented missing drop case
2019-03-11 14:15:40 +01:00
f4bb315db2
Merge pull request #11153 from kaspar030/fix_encx24j600_netopt_linkstate
...
drivers/encx24j600: lock dev in netopt get()
2019-03-11 12:52:27 +01:00
4c2749041b
drivers/encx24j600: lock dev in netopt get()
2019-03-11 12:35:09 +01:00
Gilles DOFFE
8a20936a9d
drivers: add motor_driver implementation
...
Implement motor_driver API to drive CC motors through hardware drivers.
Signed-off-by: Gilles DOFFE <g.doffe@gmail.com>
2019-03-11 01:44:22 +01:00
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
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