608f0135d7
zep: Use netdev reset function
2018-07-16 15:36:34 +02:00
aecbad960a
netdev: Initialize sequence number to random value
2018-07-16 15:36:30 +02:00
Martine Lenders
ecaef7bfc5
Merge pull request #9575 from bergzand/pr/pkg/emb6/rnd_conflict
...
pkg/emb6: Add random functions to rename patch
2018-07-16 15:35:42 +02:00
8903b34924
Merge pull request #8215 from miri64/gnrc_ipv6/opt/simplify-send
...
gnrc_ipv6: clean-up and simplify send handling
2018-07-16 15:21:55 +02:00
Martine Lenders
d8081453f2
gnrc_ipv6: clean-up and simplify send handling
...
This change is a gnrc_ipv6_nib/gnrc_netif(2)-based rework of #7210 .
Packet duplication
==================
Its main optimization is that it restructures `gnrc_ipv6` handling of
sent packets so that duplication for write-protection happens at the
latest possible step:
* potential `gnrc_netif` headers added by upper layers are
write-protected before their removal
* This unifies the duplication of the IPv6 header directly after
that
* Extension headers in-between the IPv6 header and the payload header
are duplicated just before the check sum is duplicated
Especially the last point allows for only handing a single packet snip
to all lower functions instead of an already searched IPv6 header
(which now is always the first until it is handed to the interface) +
payload header.
Further clean-ups
=================
* Next-hop link-layer address determination was moved to the
`_send_unicast` function, greatly simplifying the unicast case in the
`_send` function
* Code for loopback case was added to a new function `_send_to_self`
* Removed some code duplication
2018-07-16 15:08:56 +02:00
f2791dcec5
pkg/emb6: Rebuild patches for consistency
2018-07-16 14:30:28 +02:00
3c128a0ed7
pkg/emb6: Add utils/random to rename patch
...
Both random_init and random_rand are prefixed with emb6_ to prevent
function name collisions with RIOT
2018-07-16 14:27:38 +02:00
Peter Kietzmann
446ff9f282
Merge pull request #9553 from bergzand/pr/pkg/lwip/set_netdev_events
...
lwip: explicitly set required netdev events
2018-07-13 17:09:45 +02:00
Peter Kietzmann
9f34513eec
Merge pull request #9563 from bergzand/pr/netif/netdev_recv_reset
...
gnrc_netif_ieee802154: drop frame on buffer error
2018-07-13 16:21:33 +02:00
9f289dff1b
Merge pull request #9543 from smlng/pr/netdev/reset
...
cc2538: use netdev reset
2018-07-13 14:52:39 +02:00
Peter Kietzmann
0aa5d8139b
Merge pull request #9556 from bergzand/pr/pkg/emb6/set_netdev_events
...
emb6: explicitly configure RX complete interrupt
2018-07-13 13:58:44 +02:00
smlng
0067be035c
cpu/cc2538: cleanup netdev calls in radio driver
...
Cleanup netdev calls using &dev->netdev for all functions and
thereby omiting the explicit cast.
2018-07-13 12:17:03 +02:00
smlng
520f5b60b3
cpu/cc2538: use netdev reset function in radio driver
2018-07-13 12:17:03 +02:00
Peter Kietzmann
fd8ef789b7
Merge pull request #9531 from bergzand/pr/netdev/reset_refactor
...
netdev_ieee802154: Add and use common reset function
2018-07-13 12:01:14 +02:00
Peter Kietzmann
7816d359fe
Merge pull request #9562 from bergzand/pr/mrf24j40/netdev_recv_fix
...
mrf24j40: Fix netdev recv implementation
2018-07-13 10:51:29 +02:00
fb27efb919
Merge pull request #9555 from bergzand/pr/pkg/openthread/netdev_rx_cb_enable
...
openthread: Enable RX complete netdev event
2018-07-13 09:17:38 +02:00
Gaëtan Harter
3cb57b68c2
Merge pull request #9502 from dylad/pr/update_edbg
...
dist/tools: update EDBG version
2018-07-12 22:14:02 +02:00
ea6a2ef494
gnrc_netif_ieee802154: drop frame on buffer error
...
This adds a netdev recv call to indicate that the received frame should be
dropped when there is no buffer space available to store the frame.
2018-07-12 16:15:00 +02:00
517f4d37cc
mrf24j40: Fix netdev recv implementation
...
The mrf24j40 driver should return the frame length when both buf is NULL
and len is zero and drop the packet when len is nonzero and buf is NULL.
This commit fixes that behaviour
2018-07-12 15:54:31 +02:00
acf7a104d2
emb6: explicitly configure RX complete interrupt
2018-07-12 12:34:15 +02:00
da8589ce4c
openthread: Enable RX complete netdev event
...
Fixes issue where openthread assumed that this flag was enabled by
default with netdev devices
2018-07-12 12:13:54 +02:00
e7debdb865
lwip: explicitly set required netdev events
2018-07-12 12:00:39 +02:00
Vincent Dupont
e3c897dd94
Merge pull request #9545 from OTAkeys/pr/fix_stm32_vendor
...
stm32: fix vendor header conflicting enum
2018-07-11 19:15:10 +02:00
Peter Kietzmann
f398b5e5ff
Merge pull request #9428 from kYc0o/add_reset_remote
...
remote: add RESET variable
2018-07-11 10:28:39 +02:00
Peter Kietzmann
68f1bae775
Merge pull request #9542 from yegorich/pr/tests/uart_periph/autotester-v2
...
tests/periph_uart: adapt main.c for automated testing
2018-07-11 10:20:25 +02:00
Yegor Yefremov
38aecf2bdf
tests/periph_uart: adapt main.c for automated testing
...
This is an effort to automate UART testing using the same framework as
was already introduced for i2c. The framework relies on shell commands
to return invocation status and data in a special way:
1. Invocation status: Success or Error
2. Data inside the []
Hence this patch adds invocation status to the UART init command and
invocation status and data to the printer.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-07-11 10:06:18 +02:00
91bd1a38ba
mrf24j40: use netdev reset function
2018-07-11 09:39:18 +02:00
71e5ce9a68
kw2xrf: use netdev reset function
2018-07-11 09:39:17 +02:00
327295a1e1
cc2420: use netdev reset function
2018-07-11 09:39:17 +02:00
c04cb23cbc
at86rf2xx: Use netdev reset function
2018-07-11 09:39:12 +02:00
Martine Lenders
3b1e4f54d2
Merge pull request #9532 from brummer-simon/gnrc_tcp-fix_includes
...
gnrc_tcp: Add missing includes
2018-07-10 20:22:13 +02:00
Gaëtan Harter
541be9994c
Merge pull request #9536 from cladmi/pr/make/fixup/remove_info
...
Makefile.include: remove debug '$(info)'
2018-07-10 18:52:14 +02:00
Gaëtan Harter
82c8d69f34
Makefile.include: remove debug '$(info)'
...
Remove debug '$(info)' added by https://github.com/RIOT-OS/RIOT/pull/9451
2018-07-10 18:37:06 +02:00
Gaëtan Harter
17545e4389
Merge pull request #9002 from cladmi/pr/makefiles/builddeps
...
make: Add 'BUILDDEPS' variable
2018-07-10 18:22:32 +02:00
Cenk Gündoğan
2df6da25f5
Merge pull request #9533 from smlng/pr/make/dedup
...
make: fix dedup USEMODULE_INCLUDES in Makefile.include
2018-07-10 17:27:28 +02:00
Simon Brummer
3b89bef366
gnrc_tcp: Add missing includes
2018-07-10 16:00:36 +02:00
smlng
98c02b8045
make: fix dedup USEMODULE_INCLUDES in Makefile.include
...
Fixes a regression introduces #9479 which breaks building on macOS.
The introduces `uniq` function is never called, hence the includes
ie. USEMODULE_INCLUDES are not used.
2018-07-10 15:41:33 +02:00
Vincent Dupont
83168ce628
cpu/stm32f7: remove conflicting enum from vendor header
2018-07-10 15:37:59 +02:00
Vincent Dupont
dc793e92b4
cpu/stm32f4: remove conflicting enum from vendor header
2018-07-10 15:37:49 +02:00
Vincent Dupont
3af2ff0bd1
cpu/stm32f3: remove conflicting enum from vendor header
2018-07-10 15:37:41 +02:00
Vincent Dupont
5cc7342d10
cpu/stm32f2: remove conflicting enum from vendor header
2018-07-10 15:37:32 +02:00
Vincent Dupont
3aa7722e16
cpu/stm32f0: remove conflicting enum from vendor header
2018-07-10 15:37:24 +02:00
dylad
5341fc5ae5
makefiles/tools: add Makefile dependency to EDBG
2018-07-10 15:20:14 +02:00
dylad
edf0360103
dist/tools: update EDBG version
...
update to the current lastest version of EDBG to allow user to reflash a bricked board due to sleep mode or wrong clock assignment. this avoid the use of Atmel Studio to erase flash.
2018-07-10 15:10:40 +02:00
Vincent Dupont
071614bf04
Merge pull request #8543 from OTAkeys/pr/rtt_clean_up
...
periph_rtt: remove RTT_NUMOF guard and init from periph_common
2018-07-10 15:00:53 +02:00
Martine Lenders
17af1f1221
Merge pull request #9506 from Josar/pr/ternary
...
Uncrustify: ternary operator indentation
2018-07-10 14:59:36 +02:00
123b275b23
netdev: Add common ieee802154 reset function
...
Resets flags, sequence number and protocol.
2018-07-10 14:27:52 +02:00
Francisco Acosta
f89b727567
Merge pull request #9508 from Josar/pr/at86rf2xx_uncrustify
...
at86rf2xx: uncrustify and changed parenthesis order of NETOPT_CSMA_RETRIES check
2018-07-10 12:08:05 +02:00
Peter Kietzmann
a5140a71b7
Merge pull request #9525 from miri64/gnrc_netif/fix/debug
...
gnrc_netif: don't spam user if dev doesn't support NETOPT_RX/TX_END_IRQ
2018-07-10 10:12:21 +02:00
José Alamos
ff31be3a5f
Merge pull request #9528 from aabadie/pr/pkg/semtech-loramac_random
...
pkg/semtech-loramac: use random_uint32() to generate random integer
2018-07-10 09:53:29 +02:00