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

21647 Commits

Author SHA1 Message Date
Sebastian Meiling
a5385c15cc
Merge pull request #11027 from maribu/atmega_cleanup
boards/common/atmega: Refactoring periph_conf.h
2019-02-25 20:13:41 +02:00
Marian Buschsieweke
7bc9b4b707
boards/common/atmega: Refactoring periph_conf.h
- Moved code for periph_conf of all ATmega based boards to boards/common/atmega
- Added possibility to override config from individual board:
  - Named file `periph_conf_atmega_common.h` and let this be included from
    `board/$BOARD/include/periph_conf.h` to allow modifications
  - Guarded individual periph configs by `#ifndef $PERIPH_NUMOF` ... `#endif`
2019-02-25 18:48:09 +01:00
Juan Carrano
77f3c2d136 serial.inc.mk: disable local echo in picocom.
Due to a recent fix in shell.c, remote echo is now working as originally
intended. Local echo must be disabled or otherwise it will add up to the
remote one, causing a character-by-character double echoing.
2019-02-25 18:08:20 +01:00
Juan I Carrano
7e037d7bde
Merge pull request #11064 from cladmi/pr/bug/export/term_variables
TERMPROG and TERMFLAGS variables do not need to be exported as they are
used directly by a make receipe.

Exporting them prevents overwriting 'RIOT_TERMINAL' in the test.
2019-02-25 18:02:17 +01:00
Gaëtan Harter
479d679ddf
boards/nz32-sc151: do not blindly set TERMFLAGS
The board should not globally set `TERMFLAGS` without a RIOT_TERMINAL
condition.

Also the board does not export uart through usb and thus needs an uart
converter connected. Other boards in the same situation do not need
to set `TERMPROG` without a valid baudrate. So remove the definition
anyway.

This also removes the export of TERM* variables and should make it work
with the other RIOT_TERMINAL.
2019-02-25 18:00:58 +01:00
Gaëtan Harter
3b119cc5ba
boards/native: unexport TERM* variables
TERMPROG and TERMFLAGS variables do not need to be exported as they are
used directly by a make receipe.
2019-02-25 17:26:03 +01:00
Gaëtan Harter
20ce4db753
makefiles/tools/serial.inc.mk: unexport TERM* variables
TERMPROG and TERMFLAGS variables do not need to be exported as they are
used directly by a make receipe.

Exporting them prevents overwriting 'RIOT_TERMINAL' in the test.
2019-02-25 17:15:41 +01:00
Gaëtan Harter
d0cb6d26e1
makefiles/vars.inc.mk: unexport TERM* variables
TERMPROG and TERMFLAGS variables do not need to be exported as they are
used directly by a make receipe.

Exporting them prevents overwriting 'RIOT_TERMINAL' in the test.
2019-02-25 17:15:41 +01:00
Leandro Lanzieri
609db0c2f6 boards/lobaro-lorabox: Remove auto init LED0 2019-02-25 13:43:50 +01:00
Juan I Carrano
7e0891ebe5
Merge pull request #10989 from maribu/thread_stats
core: Use enum for thread states
2019-02-22 17:17:19 +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
Sebastian Meiling
b2e951e31d
Merge pull request #11050 from kaspar030/hifive1_disable_relic
tests/pkg_relic: add hifive1 to blacklist
2019-02-21 19:04:09 +02:00
Sebastian Meiling
e804d784d5
Merge pull request #11048 from miri64/gnrc_netif_hdr/enh/in-params-const
gnrc_netif_hdr: make in parameters const
2019-02-21 19:01:44 +02:00
Gaëtan Harter
642f5e4809
tests/bloom_bytes: explicitely expect a float
The last line should be a float lower than 1 so 0.XXX.
So expect it to match this.

This should prevent issues when float printing does not work.
2019-02-21 16:19:47 +01:00
Gaëtan Harter
124e1dd3fa
tests/bloom_bytes: replace %f with fmt/print_float
Even if using `%f` the `printf_float` module was not used.

When running the test on `samr21-xpro` and `arduino-mega2560` the float
is not printed correctly.

 * samr21-xpro ` false positive rate.`
 * arduino-mega2560 `? false positive rate.`

As the arduino-mega2560 does not handle printf_float use
`fmt/print_float`.

The output should be flushed before using fmt/print functions if
available as they do not use `printf` buffer.
2019-02-21 16:19:38 +01:00
Gaëtan Harter
f5c79ba821
tests/bloom_bytes: define regexp as raw strings
Python strings for regular expression should be declared as `raw` so `\`
is not re-interpreted.

This fixes `flake8` warning.
2019-02-21 16:19:27 +01:00
a4c4cd9605 tests/pkg_relic: add hifive1 to blacklist 2019-02-21 14:24:55 +01:00
bd77c1b1f7
Merge pull request #11049 from kaspar030/fix_lwip_mbox_fetch_timeout
pkg/lwip: use xtimer_set64() in sys_arch_mbox_fetch()
2019-02-21 14:19:09 +01:00
120a46c784 pkg/lwip: use xtimer_set64() in sys_arch_mbox_fetch()
Used _xtimer_set64 previously, which expects ticks instead of us.
That broke on non-1us xtimer ticks (e.g., hifive1 with 32kHZ).
2019-02-21 13:53:21 +01:00
Sebastian Meiling
92b3558b4b
Merge pull request #11047 from kaspar030/fix_tests_periph_timer_for_hifive1
tests/periph_timer: add hifive1 exception
2019-02-21 14:39:57 +02:00
Martine Lenders
998b9ed0d4 gnrc_netif_hdr: make in parameters const 2019-02-21 12:43:08 +01:00
Martine Lenders
27782a5620
Merge pull request #11045 from kaspar030/fix_tests_lwip_sock_ip
tests/lwip_sock_ip: fix wrong memcpy assumption
2019-02-21 11:57:43 +01:00
332b06a319 tests/periph_timer: add hifive1 exception 2019-02-21 11:40:30 +01:00
c16bd3871c tests/lwip_sock_ip: fix memcpy lenghts
sizeof(ip6_addr_t) > 16 depending on compilation flags, possibly reading
more data than available.

Fix by using the actual address' sizeof for memcpy.
2019-02-21 11:30:25 +01:00
Peter Kietzmann
654fd4fba5
Merge pull request #10999 from cladmi/pr/tests/rng/print_float
tests/rng: replace printf_float with fmt/print_float
2019-02-21 11:11:46 +01:00
Gaëtan Harter
27b42d34d3
tests/rng: replace printf_float with fmt/print_float
When running the test on `arduino-mega2560` printing the float failed
and was printed as ` ?`.

    Calculated  ? bits of entropy from 10000 samples.

Replace using `printf` floating point printing by using `fmt/print_float`.
Now the test succeeds on `arduino-mega2560`.

As `print_float` does not buffer and is used with `printf` the output
should be flushed before calling it if `fflush` is available.
2019-02-21 10:42:04 +01:00
Gaëtan Harter
44d2b62a70
tests/rng: fix cppcheck error shiftTooManyBitsSigned
cpp check is reporting the following error

    error (shiftTooManyBitsSigned):
    Shifting signed 32-bit value by 31 bits is undefined behaviour

Fix by ensuring the `1` is an `uint32_t` before shifting.
2019-02-21 10:41:33 +01:00
José Alamos
d4f0864640
Merge pull request #11042 from aabadie/pr/pkg/semtech-loramac_doc_fix
pkg/semtech-loramac: fixing missing directive in doc
2019-02-21 09:30:12 +01:00
f7abe8415d
pkg/semtech-loramac: fixing missing directive in doc
Setting the LORAMAC_ACTIVE_REGION define via cflags is required for any lorawan application to build
2019-02-20 21:39:16 +01:00
f37b02a73a
Merge pull request #11034 from aabadie/pr/tools/serial_socat
tools/serial: add support for socat as riot terminal
2019-02-20 13:40:32 +01:00
5ad3fd4e5b
tools/serial: add support for socat as riot terminal 2019-02-20 12:05:19 +01:00
Gaëtan Harter
944d0f31af
doc/doxygen: add package name for lessc
Add package name in ubuntu for lessc.
2019-02-20 11:35:06 +01:00
Juan I Carrano
1335bf60fe
Merge pull request #11035 from aabadie/pr/tools/serial_makefile_indent
makefiles/serial: fix indent
2019-02-20 11:33:18 +01:00
Gaëtan Harter
37349a0b19
doc/doxygen: remove support for lesscpy
lessc (node-less) and lesscpy do not produce the same output.
There are some minor whitespace +-1 in color values which
are not important but the output file is not stable

However lesscpy removes comments and so the license of the output file
As it produces an invalid file it support is dropped.

https://lesscpy.readthedocs.io/en/latest/#differences-from-less-js
2019-02-20 11:32:10 +01:00
ea8672ca9c
makefiles/serial: fix indent 2019-02-20 08:40:54 +01:00
Peter Kietzmann
0e71c8a6a3
Merge pull request #10974 from haukepetersen/add_random_hwrngseed
sys/random: use periph/hwrng as seed if available
2019-02-19 18:31:15 +01:00
Hauke Petersen
64489e8b44 sys/random: add hwrng as seed source (if available) 2019-02-19 18:09:40 +01:00
Hauke Petersen
8a135d3a43 sys/random: add guard for periph/cpuid include 2019-02-19 18:09:40 +01:00
Hauke Petersen
e070d5a694 sys/random: fix indention in doxygen header 2019-02-19 18:09:40 +01:00
MichelRottleuthner
621224d0ea
Merge pull request #11032 from PeterKietzmann/pr_emb6_hwrng_typo
pkt/emb6: fix typo in hwrng call
2019-02-19 18:09:28 +01:00
PeterKietzmann
8f766c3fac pkt/emb6: fix typo in hwrng call 2019-02-19 17:51:01 +01:00
Marian Buschsieweke
9216607163
tests/gnrc_ipv6_nib_6ln: Refactored code
Improved readability of if statements. This issue was pointed out by cppcheck.
2019-02-19 13:00:05 +01:00
Leandro Lanzieri
5d481c2a68
Merge pull request #9838 from gebart/pr/ds3234-pps
ds323x: Minimal driver for DS323x extremely accurate RTC
2019-02-19 12:52:24 +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
Peter Kietzmann
dd664a88fd
Merge pull request #10963 from brummer-simon/gnrc_tcp-fix_test_setup
gnrc_tcp: change and verify addrs in use
2019-02-19 09:32:53 +01:00
Marian Buschsieweke
1b5f615554
tests/driver_at86rf2xx: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:20 +01:00
Marian Buschsieweke
0c03c63c0e
tests/lwip_sock_ip: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:18 +01:00
Marian Buschsieweke
829a8b1792
tests/lwip_sock_udp: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:16 +01:00
Marian Buschsieweke
5189ac4d19
tests/gnrc_sixlowpan: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:13 +01:00
Marian Buschsieweke
4c0469f9d3
tests/gnrc_ipv6_nib_6ln: Use NETOPT_MAX_DPU_SIZE
Updated the test to use NETOPT_MAX_DPU_SIZE instead of the deprecated
NETOPT_MAX_PACKET_SIZE
2019-02-18 20:19:11 +01:00