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

24773 Commits

Author SHA1 Message Date
Gunar Schorcht
41e31c516c tests/log_color: fix string literal error
printf function requires a string literal as the format argument. Using a character pointer is not accepted as string literal by some compilers.
2019-10-19 16:59:11 +02:00
Martine Lenders
3cc8b912a2 tests/gnrc_sixlowpan_frag: fix comment typo 2019-10-19 16:30:45 +02:00
Martine Lenders
f228dedcf4 gnrc_sixlowpan_frag_rb: fix comment typo 2019-10-19 16:30:45 +02:00
Martine S. Lenders
b715aee81d tests: add tests for new 6Lo reassembly buffer functions 2019-10-19 16:30:45 +02:00
Martine S. Lenders
5bf9892bb3 gnrc_sixlowpan_frag_rb: add new functions for SFR 2019-10-19 16:30:45 +02:00
Gunar Schorcht
54e915eec5 core/assert: allow multiple static_asserts
Uses an own scope for the definition of the enum const to allow multiple `static_assert` statements within the same function in non-C11 environments.
2019-10-19 16:16:24 +02:00
Martine Lenders
78f04c9fd1
Merge pull request #12441 from miri64/gnrc_icmpv6_error/fix/not-send
gnrc_icmpv6_error: consider originator's destination address correctly
2019-10-19 15:18:50 +02:00
Martine Lenders
c32f1076f6 gnrc_icmpv6_error: consider originator's destination address correctly
While 485dbd1fda (from #12175) was right
in assuming that the for most ICMPv6 error messages the originating
packet's destination address must not be a multicast, this is not the
case for _all_ ICMPv6 error messages (see [RFC 4443], section 2.4(e.3)).
Additionally, 485dbd1fda removed the
check for the source address ([RFC 4443], section 2.4(e.6)), which this
PR re-adds.

[RFC 4443]: https://tools.ietf.org/html/rfc4443#section-2.4
2019-10-19 14:39:45 +02:00
Gunar Schorcht
855ef72202
Merge pull request #12503 from kaspar030/fix_tests/pkg_fatfs_format_overflow
tests/pkg_fatfs: fix sprintf format overflow warning
2019-10-19 10:41:17 +02:00
benpicco
9f0ccdeb77
Merge pull request #11565 from kaspar030/pr/pkg/nanopb
pkg/nanopb: add nanoPb protocol buffers library package
2019-10-19 02:40:30 +02:00
ea6c4a7f23 tests/pkg_fatfs: fix sprintf format overflow warning
Some platforms issue this:

    tests/pkg_fatfs/main.c: In function '_mkfs':
    tests/pkg_fatfs/main.c:355:26: error: '%d' directive writing between 1 and 11 bytes into a region of size 8 [-Werror=format-overflo
    w=]
      355 |     sprintf(volume_str, "%d:/", vol_idx);
          |                          ^~
    tests/pkg_fatfs/main.c:355:25: note: directive argument in the range [-2147483648, 0]
      355 |     sprintf(volume_str, "%d:/", vol_idx);
          |                         ^~~~~~
    tests/pkg_fatfs/main.c:355:5: note: 'sprintf' output between 4 and 14 bytes into a destination of size 8
      355 |     sprintf(volume_str, "%d:/", vol_idx);
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cc1: all warnings being treated as errors

The cause is vol_idx being converted by atoi(), so it might be negative.
This commit increases the stack array so it cannot overflow.
2019-10-18 23:06:44 +02:00
bce70bfdfa
usbus: add descriptor prefix support 2019-10-18 22:39:39 +02:00
f52bbd084c tests/pkg_nanopb: initial commit 2019-10-18 22:34:29 +02:00
cd18dad5ca pkg: introduce nanoPb Protocol Buffers library 2019-10-18 22:34:28 +02:00
4c3d473e4e make: add GENSRC (generated source files) support 2019-10-18 22:34:28 +02:00
Francois Berder
12c3a5472a cpu: mips_pic32mx: Include vendor header in cpu_conf.h
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-10-18 18:57:42 +01:00
Francois Berder
89d43c3423 cpu: mips32r2_common: Remove useless includes
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-10-18 18:57:42 +01:00
Francois Berder
3a62b620bc cpu: mips_pic32_common: Move cpu header to mips32r2_common
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-10-18 18:57:42 +01:00
Marian Buschsieweke
d879739665
drivers/nimble: Use NETOPT_MAX_PDU_SIZE
Replaced deprecated NETOPT_MAX_PACKET_SIZE by NETOPT_MAX_PDU_SIZE
2019-10-18 17:57:36 +02:00
Marian Buschsieweke
cf9c84a00d
drivers/cc110x: Use NETOPT_MAX_PDU_SIZE
Replaced deprecated NETOPT_MAX_PACKET_SIZE by NETOPT_MAX_PDU_SIZE
2019-10-18 17:57:36 +02:00
04712dbcfc
Merge pull request #12446 from fjmolinas/pr_fix_tests_riotboot
tests/riotboot: fix test running test in docker.
2019-10-18 17:20:49 +02:00
José Alamos
2fb4a79d9a
Merge pull request #12418 from Rotzbua/doc_sha3
sys/hashes/sha3: docu rename hashes to FIPS 202 standard
2019-10-18 15:59:26 +02:00
Francisco Molina
57b09f1685 tests/riotboot: add SLOT_RIOT_ELFS:%.elf=%.bin to BUILD_FILES
- When running `BUILD_IN_DOCKER=1 make -C tests/riotboot test`
  new slot binaries (fw + hdr) need to be generated.
  `%.bin: %.elf` is no defined when building in docker, so the
  fw binaries $(SLOT_RIOT_ELFS:%.elf=%.bin) are added to
  BUILD_FILES
2019-10-18 15:56:48 +02:00
16aef163ca
Merge pull request #12497 from benpicco/tests-cpp_memory
tests: remove Makefile.ci from cpp11 tests
2019-10-18 15:12:36 +02:00
benpicco
e9d6a61439
Merge pull request #12489 from aabadie/pr/cpu/atmega_cleanup_dep
cpu/atmega: cleanup dependencies handling
2019-10-18 15:04:07 +02:00
14567ea973
Merge pull request #12494 from fjmolinas/pr_remove_OS
Makefile/include: use ony one call to `uname`
2019-10-18 15:03:10 +02:00
benpicco
970b5935a6
Merge pull request #12347 from miri64/gnrc_sixlowpan_frag_rb/enh/externalize-dispatch
gnrc_sixlowpan_frag_rb: externalize dispatch_when_complete
2019-10-18 14:49:59 +02:00
Benjamin Valentin
44d6cabd8a tests: remove Makefile.ci from cpp11 tests
The description states that the tests caused issues with an ancient
toolchain.
Building these tests locally worked fine.

So remove the obsolete BOARD_INSUFFICIENT_MEMORY lists.
2019-10-18 14:28:57 +02:00
629003d042
cpu/atmega: cleanup dependencies handling 2019-10-18 12:40:34 +02:00
Martine S. Lenders
ae879bc2ba gnrc_sixlowpan_frag_rb: add doc on rb_remove() NOP 2019-10-18 12:02:03 +02:00
benpicco
29e5c3af67
Merge pull request #12490 from aabadie/pr/boards/efm32_common_periph_gpio
boards/efm32: move provided gpio features at cpu level
2019-10-18 11:19:33 +02:00
benpicco
34ee36d9e4
Merge pull request #12491 from aabadie/pr/boards/atmega_common_periph_gpio
boards/atmega: move provided gpio features at cpu level
2019-10-18 11:19:15 +02:00
benpicco
4ed04208ea
Merge pull request #12492 from aabadie/pr/boards/cc2538_common_periph_gpio
boards/cc2538: move provided gpio features at cpu level
2019-10-18 11:18:54 +02:00
Martine S. Lenders
184e91780a gnrc_sixlowpan_frag_rb: explain second _rbuf_add() call more detailed 2019-10-18 11:14:13 +02:00
Francisco Molina
45c8eafd42 Makefile.include: remove repeated OS declaration 2019-10-18 10:36:43 +02:00
4d85735b24
boards/slwstk6220a: remove useless provided gpio features
These are provided at CPU level.
2019-10-18 09:35:00 +02:00
aed0cfb1d8
boards/efm32: remove useless provided gpio features
These features are provided at CPU level
2019-10-18 09:33:54 +02:00
174bb3feee
cpu/ezr32wg: provide gpio feature at cpu level 2019-10-18 09:32:48 +02:00
c618d9821f
cpu/efm32: provide gpio feature at cpu level 2019-10-18 09:32:48 +02:00
Marian Buschsieweke
716fc76f13
makefiles: Disable -Watomic-alignment on LLVM
`-Watomic-alignment` warns when C11 atomics have to be implemented via a to one
of the functions in `core/atomic_c11.c`. Unlike to the context of Desktop or
Server class machines, the performance penalty of this calls is insignificant
(and not existing with LTO). So this is not an issue in our context.

On the other hand: Keeping `-Watomic-alignment` prevents building applications
using C11 atomics on all platforms the atomic operations are not implemented
without calls to `core/atomic_c11.c` (due to `-Werror`), reducing portability.

So not only does the warning is not useful in our context, it actually prevents
portable use of C11 atomics. It is the most sensible thing to just disable it.
2019-10-18 09:18:37 +02:00
Martine S. Lenders
f8d75d7add gnrc_sixlowpan_frag_rb: behavioral change to add()
Rather than dispatching the packet automatically once it is complete,
`gnrc_sixlowpan_frag_rb_add()` now only returns success, and leaves it
to the caller to dispatch the packet.
2019-10-18 09:02:32 +02:00
Martine S. Lenders
df484926a2 tests/gnrc_sixlowpan_frag: adapt for API change
These changes reflect adaptations for the following API changes:

- gnrc_sixlowpan_frag_rb: return pointer to entry on add()
2019-10-18 09:02:32 +02:00
Martine S. Lenders
709baf8f1f gnrc_sixlowpan_frag_rb: make NOPs static inline functions 2019-10-18 09:02:32 +02:00
Martine S. Lenders
a229755abe gnrc_sixlowpan_frag_rb: return status on dispatch_when_complete() 2019-10-18 09:02:32 +02:00
Martine S. Lenders
b086453347 gnrc_sixlowpan_frag_rb: return pointer to entry on add() 2019-10-18 09:02:32 +02:00
Martine S. Lenders
3a4ebe98c3 gnrc_sixlowpan_frag_rb: get index instead of pointer with _rbuf_get() 2019-10-18 09:02:31 +02:00
Francisco Molina
fb0f64630b dist/buildsystem_sanity_check: add check for CPU_FAM/ARCH definition
- Check that CPU_FAM/ARCH is only exported in vars.inc.mk
2019-10-18 08:55:33 +02:00
Francisco Molina
347a0fc804 cpu/ boards/: remove exports for CPU_FAM 2019-10-18 08:55:33 +02:00
Francisco Molina
9f5a090782 makefiles/vars.inc.mk: add and export CPU_FAM 2019-10-18 08:55:33 +02:00
Francisco Molina
b4f9b74e1a cpu/cc2*: remove immediate expansion of CPU_ARCH 2019-10-18 08:55:33 +02:00