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

24470 Commits

Author SHA1 Message Date
Sebastian Meiling
ea0b5ff0dd cpu: add missing arch features to fe310
Adds arch_32bit and arch_riscv to cpu/fe310 to allow for feature
requirements and blacklisting.
2019-10-14 17:40:23 +02:00
Sebastian Meiling
55f9e6f99f examples/filesystem: blacklist feature instead of boards
Remove BOARD_BLACKLIST and use FEATURES_BLACKLIST instead.
2019-10-14 17:21:54 +02:00
Leandro Lanzieri
bfd81c1d72
Merge pull request #12431 from benpicco/mrf24j40-fix_reset
drivers/mrf24j40: don't loop in mrf24j40_reset_state_machine()
2019-10-14 17:21:17 +02:00
8a1e78bf4d
Merge pull request #9081 from kaspar030/add_arch_features
make: add architecture features and feature blacklisting
2019-10-14 16:12:54 +02:00
Martine Lenders
b5b52c74e8 gnrc_ipv6: only discard invalid source when assigned to interface
While it is correct to not use an invalid address as a source address,
it is incorrect to assume that addresses not assigned to the interface
(`idx == -1` in the respective piece of code) are invalid: Other than
classic forwarding via a FIB, forwarded packets utilizing a IPv6
routing header will pass this check, like any other packet sent by this
node. The source address for these is not on the given node, so e.g.
source routing is not possible at the moment.
2019-10-14 15:43:07 +02:00
Leandro Lanzieri
0e0b6f8231
Merge pull request #12221 from benpicco/mrf24j40-init_check
drivers/mrf24j40: allow for basic self-test on init
2019-10-14 15:36:52 +02:00
Kevin "Tristate Tom" Weiss
e236fa1ef3
Merge pull request #10793 from aabadie/pr/boards/thingy52_i2c
boards/thingy52: add dependency for on-board hts221/lps22hb sensors
2019-10-14 15:06:37 +02:00
Benjamin Valentin
38b35c513c drivers/mrf24j40: allow for basic self-test on init
During production it is often desirable for devices to perform
some kind of basic self-test to isolate defects.

For this it is necessary for the initialization not to hang if a
component is faulty / not connected.

This moves an already exising self-test that was previously enabled
as a debug option to an independent compile-time configurable.

It is necessary to call this in _init() before mrf24j40_hardware_reset()
as the reset function uses xtimer_usleep() which will cause another
thread to get scheduled.
If this thread (e.g. rpl or ipv6) then tries to access the netdev, RIOT
will crash.
2019-10-14 14:50:06 +02:00
Cenk Gündoğan
b4cb32a8ab
Merge pull request #12440 from miri64/tests/fix/gnrc_rpl_srh
tests/gnrc_rpl_srh: fix test assumption
2019-10-14 14:43:30 +02:00
Martine Lenders
3e7f25566f tests/gnrc_rpl_srh: fix unittests for gnrc_rpl_srh behavior change 2019-10-14 12:04:35 +02:00
Martine Lenders
a279228663 gnrc_rpl_srh: don't send error message on multicast error
A node is not supposed to send an ICMPv6 error message when the
destination or one of the addresses in the source route is multicast
but is supposed to be silently discarded (see [RFC4443] and [RFC6554]).
If we leave the `err_ptr` unset, the [node will not send an error
message][err_ptr set].

[RFC 4443]: https://tools.ietf.org/html/rfc4443#section-2.4
[RFC 6554]: https://tools.ietf.org/html/rfc6554#section-4.2
[err_ptr set]: https://github.com/RIOT-OS/RIOT/blob/9bc600a/sys/net/gnrc/network_layer/ipv6/ext/rh/gnrc_ipv6_ext_rh.c#L100-L105
2019-10-14 11:25:53 +02:00
Martine Lenders
ee2126a4e2 tests/gnrc_rpl_srh: fix test assumption
If the destination address or an address within the source route is
multicast within a RPL source routing header, a receiving node is
supposed to just discard the packets, but not to send an ICMPv6 error
message, as the test assumes at the moment.

Source: https://tools.ietf.org/html/rfc6554#section-4.2
2019-10-14 10:33:25 +02:00
9bc600a2e5
Merge pull request #12386 from keestux/sodaq-boards-arduino
Sodaq boards arduino
2019-10-14 07:47:58 +02:00
6d53bb33cb
Merge pull request #12437 from kaspar030/add_stmf7_spi_divs
boards/stm32: add 54MHz and 108MHz SPI divtable entries
2019-10-13 21:28:27 +02:00
3eae2f7b79 pkg/lwip: add arch_32bit feature dependency 2019-10-13 21:03:41 +02:00
ebf43616b7 cpu: add arch_* features 2019-10-13 21:03:41 +02:00
cc80961b5f make: allow feature based blacklisting (FEATURES_BLACKLIST) 2019-10-13 21:03:41 +02:00
66b57f2a51 boards/stm32: add 54MHz and 108MHz divtable entries 2019-10-13 20:27:37 +02:00
653a551fcc
boards/feather-m0: fix typo in documentation 2019-10-13 17:48:21 +02:00
Martine Lenders
c94de51e03
Merge pull request #12414 from miri64/gnrc_ipv6_ext_frag/fix/n-th-with-full-rbuf
gnrc_ipv6_ext_frag: fix release on rbuf creation for n-th fragment
2019-10-13 15:10:50 +02:00
Benjamin Valentin
853bbaf5a5 drivers/mrf24j40: don't loop in mrf24j40_reset_state_machine()
When hooking up the mrf24j40 to a bluepill board, the driver would
always get stuck on init.

Debugging revealed that it would get stuck in the mrf24j40_reset_state_machine()
function because it expects the RFSTATE to have a special value after reset.

However, the data sheet does not mention this in section 3.1 Reset.
Waiting 192µs should be enough - the value of the RFSTATE is not specified.

The Linux driver also does not wait for the RFSTATE register.

And even without the loop, the driver is functioning fine.
2019-10-11 23:01:54 +02:00
MichelRottleuthner
cce1438e61
Merge pull request #12008 from JulianHolzwarth/pr/xtimer_mutex_lock_timeout/new_test
tests/xtimer_mutex_lock_timeout: add new test with threads
2019-10-11 16:53:21 +02:00
JulianHolzwarth
15349eab61 tests/xtimer_mutex_lock_timeout/main.c: shell command description
"(no-spin timeout)" instead of "long timeout" to make it consistent
2019-10-11 15:44:56 +02:00
JulianHolzwarth
d9aec38f1f tests/xtimer_mutex_lock_timeout/main.c: Function to terminate
The function will terminate the thread and send the message m to target_pid.
2019-10-11 15:44:56 +02:00
JulianHolzwarth
714ee17fab tests/xtimer_mutex_lock_timeout/ new test with thread
Two Functions cmd_test_xtimer_mutex_lock_timeout_low_prio_thread and thread_low_prio_test are added.

This testfunction will test xtimer_mutex_lock_timeout with two threads (main thread and lower prio than main thread).

The main thread creates another thread and sleeps. While the main thread sleeps the other thread takes the mutex
and wakes the main thread up.
Then the main thread calls xtimer_mutex_lock_timeout and the second thread unlocks the mutex and
the main thread gets it and waits for the created thread to end.

Has test messages showing the thread count. To make sure the created thread ends.
(test messages may be removed in the future)
2019-10-11 15:44:56 +02:00
JulianHolzwarth
f0da0121f4 tests/xtimer_mutex_lock_timeout/main.c: print empty line
printing emty line after each test function to make the test easier to read
2019-10-11 15:44:55 +02:00
JulianHolzwarth
1fe8d33416 tests/xtimer_mutex_lock_timeout/Makefile: adding ps for better testing 2019-10-11 15:44:55 +02:00
JulianHolzwarth
6183f50462 tests/xtimer_mutex_lock_timeout/main.c: remove unnecessary/wrong include 2019-10-11 15:44:55 +02:00
Marian Buschsieweke
8c00e5583a
Merge pull request #12424 from smlng/pr_remove_featreq
examples/timer_periodic_wakeup: no feature required
2019-10-11 14:15:49 +02:00
Sebastian Meiling
aeb4480396 examples/timer_periodic_wakeup: no feature required
Removing the periph_timer feature requirement, which isn't
directly required by this examples but rather by xtimer.
The latter set this requirement already in Makefile.dep
hence, it is duplicated and not necessary here.
2019-10-11 13:46:03 +02:00
benpicco
48f9ed48c9
Merge pull request #12421 from Rotzbua/doc_sha256
sys/hashes/sha256: fix typo in docu
2019-10-11 13:36:13 +02:00
Leandro Lanzieri
760da795a4
Merge pull request #11879 from jia200x/pr/netif_new_interface
netif: introduce generic network interface descriptor
2019-10-11 12:05:12 +02:00
Jose Alamos
9727f325ff tests/gnrc_netif: adapt to new netif_t representation 2019-10-11 10:59:14 +02:00
Jose Alamos
8fd0c2b60f gnrc_netif: adapt to new netif_t abstraction 2019-10-11 10:59:14 +02:00
Jose Alamos
77a7aed6e6 netif: introduce descriptor based netif 2019-10-11 10:59:14 +02:00
Rotzbua
e296f69743 sys/hashes/sha256: fix typo in docu 2019-10-11 00:02:36 +02:00
Ken Bannister
9946e24bc9
Merge pull request #12375 from miri64/tests/enh/rs-i137
tests: prepare for RIOT-OS/Release-Specs#137
2019-10-10 13:57:54 -04:00
Martine S. Lenders
9e625841b7 tests/gnrc_udp: update BOARD_INSUFFICIENT_MEMORY 2019-10-10 19:02:24 +02:00
Martine S. Lenders
18597c4ab4 tests/gnrc_ipv6_ext_frag: update BOARD_INSUFFICIENT_MEMORY 2019-10-10 17:09:35 +02:00
bfebb7376e
Merge pull request #12232 from aabadie/pr/tools/codespell_check
ci: add codespell check script for tracking typos
2019-10-10 16:41:55 +02:00
Martine S. Lenders
095e966b73 gnrc_ipv6_ext_frag: fix release on rbuf creation for n-th fragment
The IPv6 (extension) headers of the first fragment received are re-used
for the reassembled packet, so when receiving a subsequent packet we
need to distinguish, if we just want to release the payload or all of
the packet after the packet data was added to the reassembly buffer.
2019-10-10 16:41:51 +02:00
Martine S. Lenders
07a6b5425e tests/gnrc_ipv6_ext_frag: add test for nth frag with full rbuf first
Adds a test case for when the following conditions cause a crash:

- a subsequent fragment is received before the first
- the reassembly buffer is currently filled up when another fragment of
  a different datagram arrives and thus needs to be cached out to make
  room for the new reassembly
2019-10-10 16:41:47 +02:00
Martine S. Lenders
40f721a4b8 tests/gnrc_ipv6_ext_frag: move static const to global space 2019-10-10 16:19:55 +02:00
3e3768140c
tools/ci: fix typo in build_and_test.sh script 2019-10-10 15:48:18 +02:00
5d408d68c4
ci: add codespell check to track typos 2019-10-10 15:48:18 +02:00
Martine Lenders
f89e0b7b31 tests: prepare for RIOT-OS/Release-Specs#137 2019-10-10 14:57:31 +02:00
053dbd1c4a
Merge pull request #12398 from cladmi/pr/cortexm/remove_old_clang_handling
makefiles/arch/cortexm.inc.mk: remove clang 3.6.2 workaround
2019-10-10 13:18:51 +02:00
Francisco
315e455643
Merge pull request #12413 from cladmi/pr/compile_and_test_for_board/flash_targets
tools/compile_and_test_for_board: allow setting the flash targets
2019-10-10 12:46:41 +02:00
Gaëtan Harter
18ae34609c
Makefile.include: put TERMFLASHDEPS in TERMDEPS
This makes it now apply also to `test` automatically.
2019-10-10 11:56:57 +02:00
Gaëtan Harter
4fe875c92f
Makefile.include/term: define 'flash/flash-only' as TERMFLASHDEPS
This puts the handling of `flash/flash-only` in common for both
`term/cleanterm` commands.
2019-10-10 11:55:43 +02:00