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

24500 Commits

Author SHA1 Message Date
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
Gaëtan Harter
2c3c275694
Makefile.include: also do 'cleanterm' after 'flash-only'
Harmonize with `term`.
2019-10-10 11:52:20 +02:00
Gaëtan Harter
7f2f0b6616
tools/compile_and_test_for_board: allow setting the flash targets
This allow configuring the flash targets in the same way as the
compilation and test targets.

This is part of trying to flash with docker using a different flash target.
2019-10-10 11:39:00 +02:00
Benjamin Valentin
41745859bb tests: replace SLEEP define
The SLEEP define collides with an Arduino header file.
Rename the define to resolve the conflict.
2019-10-10 10:47:38 +02:00
5ab8d92702
Merge pull request #11818 from kaspar030/suit-pr
sys/suit: initial support for SUIT firmware updates
2019-10-10 10:38:01 +02:00
Leandro Lanzieri
3a6f6bc4d9
Merge pull request #12390 from aabadie/pr/drivers/sx127x_reset_pin_undef
drivers/sx127x: skip reset sequence if pin is undefined
2019-10-10 10:06:08 +02:00
Francisco
e2eaf3ed6d
Merge pull request #12410 from cladmi/pr/boards/slwstk6000b/cpu_model_hack
boards/slwstk6000b-*: move CPU_MODEL definition to Makefile.features
2019-10-09 23:59:00 +02:00
80cbf1b523
Merge pull request #12405 from miri64/gnrc_netif/fix/deprecated-src-selection
gnrc_netif: avoid deprecated as source addresses, don't prefer them!
2019-10-09 21:25:38 +02:00
Kees Bakker
57463d722a driver/hd44780: black list Sodaq boards
The Sodaq boards support Arduino, but there are no ARDUINO_PIN_* defines.
2019-10-09 20:16:22 +02:00
Kees Bakker
2c41d7d707 boards/sodaq-*: prefer default ADC config from Arduino
Right now the gain and reference are hard coded. Until it is configurable
at runtime prefer the same default as with Arduino Core. That is,
GAIN_DIV2 and REFSEL_INTVCC1. This way we can properly measure the
battery voltage.
2019-10-09 20:14:40 +02:00
Kees Bakker
eb0595e4be boards/sodaq-autonomo: add arduino config 2019-10-09 20:14:40 +02:00
Kees Bakker
9afb390362 boards/sodaq-explorer: add arduino config 2019-10-09 20:14:40 +02:00
Kees Bakker
20e7232d09 boards/sodaq-sara-aff: add arduino config 2019-10-09 20:14:40 +02:00
Kees Bakker
f80123da85 boards/sodaq-one: add arduino config 2019-10-09 20:14:40 +02:00
Kees Bakker
9974ec2231 boards/sodaq-autonomo: add ADC configuration 2019-10-09 20:14:40 +02:00
Kees Bakker
67f82cdf6a boards/sodaq-explorer: adjust ADC channels 2019-10-09 20:14:40 +02:00
Kees Bakker
d91f73ae3e boards/sodaq-one: adjust ADC channels 2019-10-09 20:14:40 +02:00
Martine Lenders
c7502fedf9
Merge pull request #12190 from benpicco/deprecate_oonf
pkg/oonf_api: deprecate package
2019-10-09 19:19:47 +02:00
Gaëtan Harter
7ac30e471c
boards/slwstk6000b-*: move CPU_MODEL definition to Makefile.features
This is still currently a hack to hardcode it as the value can be deduced
from the `BOARD_MODULE` daughter board name.

But it requires more cleanup and could come in a separate step.

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-10-09 18:51:57 +02:00
3addde5377 examples/suit_update: disable CI test for now 2019-10-09 18:19:27 +02:00
22b0873e2b
Merge pull request #12403 from miri64/pkg/enh/lwip-doc
lwip: improve and fix documentation
2019-10-09 15:28:41 +02:00