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

23441 Commits

Author SHA1 Message Date
Juan I Carrano
e2b2b8e43c
Merge pull request #12014 from cladmi/pr/cpu_cpu_model/migration/straightforward_ones
boards: move CPU/CPU_MODEL definition to Makefile.features
2019-08-21 18:52:28 +02:00
Juan I Carrano
872407807a
Merge pull request #12011 from cladmi/pr/makefiles/info_global/default_modules
makefiles/info-global.inc.mk: bug: honor DEFAULT_MODULES
2019-08-21 18:51:35 +02:00
Juan I Carrano
c35cbda1bf
Merge pull request #12038 from cladmi/pr/tests/crypto/add_rfc_nist_tests
tests/sys_crypto: add RFC3610 and NIST SP 800-38C tests
2019-08-21 18:46:43 +02:00
Gaëtan Harter
4516905c0f
makefiles/info-global.inc.mk: bug: honor DEFAULT_MODULE$
The parsing for info-boards-supported was completely ignoring default
modules.
2019-08-21 17:57:30 +02:00
Gaëtan Harter
46c79018f3
tests/sys_crypto: add tests from NIST SP 800-38C
Taken from pycrypto tests input
2019-08-21 17:52:45 +02:00
Gaëtan Harter
d61f3c23ca
tests/sys_crypto: add remaining tests from RFC 3610
Taken from pycrypto tests input
2019-08-21 17:52:45 +02:00
Gaëtan Harter
1e7242ac82
tests/sys_crypto: change naming and formatting
* use names with RFC
* add terminating comma
* remove newlines between tests values

This prepares for the format of the next commit adding all RFC tests.
This will reduce the number of changes in upcoming commit.
2019-08-21 17:52:45 +02:00
Gaëtan Harter
330b9669a3
tests/sys_crypto: move tests-crypto out of unittests
This moves unittests/tests-crypto to its own test.
It should allow adding big test vectors without preventing boards from
running the tests.
2019-08-21 17:52:45 +02:00
Juan I Carrano
dcc20d7054
Merge pull request #12041 from cladmi/pr/makefiles/info_global/features_conflict
makefiles/info-global.inc.mk: bug: handle FEATURES_CONFLICT value
2019-08-21 17:51:42 +02:00
Gaëtan Harter
8c0120acd5
makefiles/info-global.inc.mk: bug: handle FEATURES_CONFLICT value
The value must be saved from the original value to allow restoring it.

This has currently no impact on 'info-boards-supported' as it is
currently ignored.
2019-08-21 17:16:32 +02:00
Juan I Carrano
e7957e6d9b
Merge pull request #11688 from cladmi/pr/tests/pthread_rwlock/enable_in_ci
tests/pthread_rwlock: run the test in CI
2019-08-21 17:15:53 +02:00
Juan I Carrano
507444ee44
Merge pull request #12010 from cladmi/pr/makefiles/info_global/disable_module
makefiles/info-global.inc.mk: bug: fix DISABLE_MODULE_GLOBAL value
2019-08-21 17:15:02 +02:00
Marian Buschsieweke
938b36a29c
Merge pull request #12054 from cladmi/pr/unittests/sht1x/limit_test_vectors_on_board
unittests/sht1x: decrease the amount of tested values on board
2019-08-21 16:03:04 +02:00
Gaëtan Harter
9cd08d4999
tests/pthread_rwlock: run the test in CI
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
2019-08-21 15:46:47 +02:00
Gaëtan Harter
0aae704fd4
tests/pthread_rwlock: lock around prints
The test assumes that 'printf/puts' are non interruptible operations.
Use a mutex to guarantee it.

Without this, the automated test was failing in some configurations with
lines being cut by others.
2019-08-21 15:46:19 +02:00
Cenk Gündoğan
83e092e585
Merge pull request #12043 from jcarrano/dont-use-tlsf
pkg/ccn-lite: remove dependency on tlsf-malloc.
2019-08-21 15:38:54 +02:00
8f7009e4f9
Merge pull request #11680 from cladmi/pr/ci/change_testing_policy
makefiles/murdock.inc.mk: change policy to run tests by default
2019-08-21 15:32:48 +02:00
Sebastian Meiling
8e08748c60
Merge pull request #7654 from cladmi/pr/arduino_sketches.cpp
arduino/sketches: build sketches as a module
2019-08-21 15:22:45 +02:00
Gaëtan Harter
2a24c7ee20
unittests/sht1x: decrease the amount of tested values on board
Reduce the amount of tested values by a 100.
This makes the testing time go from 3 minutes to 2 seconds on
`frdm-kw41z`.

Testing that the integer calculation matches the float one does not need
to be performed on the full range on boards. Checking some values should
be enough to detect overflow issues.
The full range checking is kept on native.
2019-08-21 14:54:35 +02:00
Gaëtan Harter
8e5422ff78
applications: remove 'TEST_ON_CI_WHITELIST += all'
This is now the default so not required anymore.
2019-08-21 12:51:17 +02:00
Gaëtan Harter
1292d96feb
makefiles/murdock.inc.mk: change policy to run tests by default
By default if a test is available and not blacklisted it will be run by
murdock.

This will move from a whitelisting everything that works, to
blacklisting what fails. This way, failing tests will be easier to
track instead of being silently just not run.

It could even allow introducing failing tests before a fix is available.
2019-08-21 12:49:26 +02:00
Gaëtan Harter
1e6ac08423
murdock: only set test is enabled if there are tests
Only set `TEST_ON_CI_ENABLED` if the application has tests.
Currently `TEST_ON_CI_WHITELIST` was only set if there were tests.

This is a pre-step to have `TEST_ON_CI_WHITELIST` being `all` by
default.
2019-08-21 12:49:26 +02:00
Gaëtan Harter
084c6f739d
tests/lwip: disable failing test
The test fails on both murdock and on my machine due to the process
exiting directly.

pexpect.exceptions.EOF: End Of File (EOF). Exception style platform.
2019-08-21 12:49:24 +02:00
Gaëtan Harter
1f11843623
tests/pkg_fatfs_vfs: disable tests that need setup
The test need a manual setup that cannot currently be done in CI.
2019-08-21 12:49:00 +02:00
Gaëtan Harter
f7176f425f
tests/gnrc: disable tests that need setup and root
Disable running tests that need a setup and run with root as they cannot
currently be run in CI.
2019-08-21 12:46:51 +02:00
Gaëtan Harter
12d4b71c31
tests/socket_zep: define TEST_ON_CI_BLACKLIST
HACK, the test currently fails in CI for 'native' due to binding issue
2019-08-21 12:40:40 +02:00
Gaëtan Harter
095268a33a
tests/netstats_l2: run the test in CI
HACK, blacklist native as it fails to create a tun interface in murdock.
2019-08-21 12:40:40 +02:00
Gaëtan Harter
622fe2c28f
tests/pthread_rwlock: run the test in CI
HACK, the test currently fails in CI for `native` due to `utf-8` handling.
HACK, the test implementation can fail due being de-scheduled during printf.
2019-08-21 12:40:40 +02:00
Gaëtan Harter
be30f072e2
sys/arduino/sketches: build sketches as a module
Generate a module for arduino sketches in a subfolder of BINDIR.
This prevents issues when doing concurrent builds or out of tree build with
readonly sources.

Declare all generated files as `BUILDDEPS` to be re-created after
`clean` on parrallel `clean all`.
2019-08-21 11:57:41 +02:00
d6356bdc08
Merge pull request #11692 from maribu/fmt_table
sys/fmt: Added submodule fmt_table for printing tables
2019-08-20 22:18:54 +02:00
Peter Kietzmann
11b4bab101
Merge pull request #10340 from maribu/cc110x_rewrite
drivers/cc110x: Complete rewrite from scratch
2019-08-20 17:58:21 +02:00
Juan Carrano
5dc46eb03e pkg/ccn-lite: remove dependency on tlsf-malloc.
There is no reason why this package would need tlsf. Using tlsf as
system malloc is not known to work in all platforms.

With this patch CCN-Lite will use the default malloc provided by the
target's C library.
2019-08-20 17:47:25 +02:00
Marian Buschsieweke
a84de4225d
examples,tests: Add msba2 to BOARD_PROVIDES_NETIF 2019-08-20 17:05:09 +02:00
Juan I Carrano
a4a1dc4dfe
Merge pull request #11771 from cladmi/pr/make/remove_riot_version_override
Makefile.include: remove RIOT_VERSION_OVERRIDE
2019-08-20 16:54:24 +02:00
Juan I Carrano
d2970332fc
Merge pull request #12009 from cladmi/pr/application/board_equal/bug
dist/tools/build_system_sanity_check: check BOARD set as ?=
2019-08-20 16:52:21 +02:00
Juan I Carrano
f08e0d315e
Merge pull request #12030 from cladmi/pr/docker/allow_defining_from_env
makefiles/docker.inc.mk: allow setting more things from environment
2019-08-20 16:50:45 +02:00
Marian Buschsieweke
f33b963ef4
tests: Added test for the cc110x driver
The test application provides:
- RIOT's basic network utilities such as `ping6`
- A custom `cc110x` shell command that can be used print the low level device
  and driver state. This is mostly useful for debugging.
2019-08-20 16:40:15 +02:00
Marian Buschsieweke
ccf713c5ad
drivers/cc1xxx_common: L2 netstats & cleanups
- Added required logic to provide correct L2 netstats when the module
  netstats_l2 is used.
- Refactored code to use gnrc_netif_hdr_set_netif() over manually setting the
  pid to ease future refactoring.
2019-08-20 16:40:00 +02:00
Marian Buschsieweke
137c2c0adf
boards: Added cc110x params for MSB-A2 & MSB-IoT 2019-08-20 16:38:49 +02:00
Marian Buschsieweke
88cf6cb46f
sys/auto_init/netif: Increased cc110x stack size
With the increase of the message queue size from 8 to 16 in
946b06e4f0, the default stack became too small.
This changes the stack size to grow with the message queue size.
2019-08-20 16:38:49 +02:00
Marian Buschsieweke
972367432a
drivers/cc110x: Rewrite of the cc110x driver
The cc110x driver has been re-written from scratch to overcome the limitations
of the old driver. The main motivation of the rewrite was to achieve better
maintainability by a detailed documentation, reduce the complexity and the
overhead of the SPI communication with the device, and to allow to
simultaneously use transceivers with different configuration regarding the used
base band, the channel bandwidth, the modulation rate, and the channel map.

Features of this driver include:

- Support for the CC1100, CC1101, and the CC1100e sub-gigahertz transceivers.
- Detailed documentation of every aspect of this driver.
- An easy to use configuration API that allows setting the transceiver
  configuration (modulation rate, channel bandwidth, base frequency) and the
  channel map.
- Fast channel hopping by pre-calibration of the channels during device
  configuration (so that no calibration is needed during hopping).
- Simplified SPI communication: Only during start-up the MCU has to wait
  for the transceiver to be ready (for the power regulators and the crystal
  to stabilize). The old driver did this for every SPI transfer, which
  resulted in complex communication code. This driver will wait on start up
  for the transceiver to power up and then use RIOT's SPI API like every other
  driver. (Not only the data sheet states that this is fine, it also proved to
  be reliable in practise.)
- Greatly reduced latency: The RTT on the old driver (@150 kbps data rate) was
  about 16ms, the new driver (@250 kbps data rate) has as RTT of ~3ms
  (depending on SPI clock and on CPU performance) (measured with ping6).
- Increased reliability: The preamble size and the sync word size have been
  doubled compared to the old driver (preamble: 8 bytes instead of 4,
  sync word: 4 byte instead of 2). The new values are the once recommended by
  the data sheet for reliable communication.
- Basic diagnostic during driver initialization to detect common issues as
  SPI communication issues and GDO pin configuration/wiring issues.
- TX power configuration with netdev_driver_t::set() API-integration
- Calls to netdev_driver_t::send() block until the transmission has completed
  to ease the use of the API (implemented without busy waiting, so that the
  MCU can enter lower power states or other threads can be executed).
2019-08-20 16:32:11 +02:00
Gaëtan Harter
636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
cladmi
8305390a05
boards/common: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00
Kevin "Tristate Tom" Weiss
fa81295988
Merge pull request #8838 from cladmi/pr/big/cleanup/add_flashfile
Makefiles: add support to generate both `.hex` and `.bin` file and add FLASHFILE variable
2019-08-20 16:06:29 +02:00
benpicco
20dec77e39
Merge pull request #11999 from nmeum/pr/gnrc_tcp_mark_update
net/gnrc/tcp: fix invalid read
2019-08-20 15:37:17 +02:00
Marian Buschsieweke
18bc0ce5fc
tests/driver_ltc4150: Use new fmt_table API 2019-08-20 14:33:15 +02:00
Marian Buschsieweke
26d73116f6
sys/fmt: Added submodule fmt_table
print_col_u32_dec() / print_col_s32_dec() can be used to print an
uint32_t / int32_t as a column of the given width
2019-08-20 14:32:49 +02:00
Peter Kietzmann
f0272ed262
Merge pull request #12005 from haukepetersen/fix_nrfmin_doc
cpu/nrf5x: fix bitrate doc for nrfmin driver
2019-08-20 08:31:29 +02:00
552e425b66
Merge pull request #12029 from gschorcht/cpu/esp32/newlib_fix
cpu/esp32: fix newlib usage for stdio functions
2019-08-19 17:27:19 +02:00
Gaëtan Harter
89a92c551f
makefiles/docker.inc.mk: allow adding docker make arguments
Allow defining make arguments when called in docker.

It would be the same as adding to `DOCKER_OVERRIDE_CMDLINE` but have a
consistent naming.
2019-08-19 17:00:08 +02:00