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

24709 Commits

Author SHA1 Message Date
benpicco
422d6d5f1a
Merge pull request #12582 from aabadie/pr/sys/sha_dead_assignment
sys/sha3: fix dead assignment of blockSize in Keccak_update
2019-10-27 13:05:16 +01:00
Martine Lenders
f5c15fc8ea
Merge pull request #12583 from aabadie/pr/sys/nanocoap_dead_assignment
sys/net/nanocoap: fix dead assignment in nanocoap server
2019-10-27 12:49:13 +01:00
Martine Lenders
86ecc7064f
Merge pull request #12532 from benpicco/make-pan_id
makefiles: allow setting PAN ID like channel
2019-10-27 12:39:52 +01:00
benpicco
1a4f07a893
Merge pull request #12505 from gschorcht/pkg/tinycbor/compilation_fix
pkg/tinycbor: fix of compiler warnings "uninitialized variable used"
2019-10-27 11:58:46 +01:00
Benjamin Valentin
d45b3d1cd3 makefiles: default-channel.inc.mk -> default-radio-settings.inc.mk
The scope of the file has changed, so change it's name.
2019-10-27 11:55:55 +01:00
Benjamin Valentin
7f1393496b makefiles: clean up default-channel.inc.mk
Clean up `default-channel.inc.mk` to only set the custom CFLAGS
if they are really needed.
This should help avoid cluttering `riotbuild.h`.

The default PAN ID configuration should be just as easy to set
as the default channel, so also add an option for that while we
are at it.
2019-10-27 11:55:55 +01:00
aaadaccc3f
sys/net/nanocoap: fix dead assignment in nanocoap server 2019-10-27 10:49:41 +01:00
74919d0646
sys/sha3: fix dead assignment of blockSize in Keccak_update 2019-10-27 10:44:54 +01:00
Gunar Schorcht
b6b12527a9 tests/pkg_tinycbor: esp32 boards removed from blacklist 2019-10-27 09:58:29 +01:00
Gunar Schorcht
61949b0e4a pkg/tinycbor: fix "uninitialized variable" warning
On ESP32 and new ESP8266 platform, the compilation of the package fails since a local variable is potentially used uninitialized. Therefore, the variable is initialized with a default value.
2019-10-27 09:56:10 +01:00
Gunar Schorcht
f4a16e6b81
Merge pull request #12568 from aabadie/pr/drivers/bmp180_scan-build_fix
drivers/bmp180: fix potential use of uninitialized variable
2019-10-27 09:48:07 +01:00
Martine Lenders
c1ea3c2eb6
Merge pull request #12561 from miri64/examples/enh/minimalize-gnrc_minimal
examples/gnrc_minimal: minimalize gnrc_minimal example
2019-10-25 17:33:01 +02:00
Martine S. Lenders
7859225790 examples/minimal: reduce BOARD_INSUFFICIENT_MEMORY 2019-10-25 16:31:22 +02:00
Martine S. Lenders
f7930002ff examples/minimal: deactivate DEVELHELP
Having `DEVELHELP` activated for a *minimal* example seems
counter-productive.
2019-10-25 16:31:22 +02:00
60748aee5d
Merge pull request #12571 from MrKevinWeiss/pr/fix/stm32/i2c/rreadbytes
stm32_common/i2c_2: Fix repeated read condition
2019-10-25 12:20:06 +02:00
Gunar Schorcht
e38d3e24ec
Merge pull request #12548 from maribu/c11_atomcis_cpp_compat
sys: Basic C++ compatibility with C11 atomcis
2019-10-25 11:48:58 +02:00
MrKevinWeiss
df19d33b77 stm32_common/i2c_2: Fix repeated read condition
Fix the condition to return -ENOPNOTSUPP when i2c repeated read attempted.
Currently the error occures even if a read after write is attempted.
This is the standard way to i2c_read_reg which should be supported.
The -EOPNOTSUPP requires the previous R/W state to be reading.
This means a `I2C_SR2_TRA` must be checked to be 0.
2019-10-25 10:35:48 +02:00
d8d7f77b7d
Merge pull request #12567 from aabadie/pr/sys/riotboot_remove_unused_variable
sys/flashwrite: remove useless line
2019-10-25 10:26:07 +02:00
Francisco
f68ad2ae6c
Merge pull request #12569 from aabadie/pr/drivers/ata8520e_fix_scan_build
drivers/ata8520e: fix potentially unused variables
2019-10-25 10:16:41 +02:00
7761169964
Merge pull request #11657 from Yanok35/pr-stm32-spi-af
boards/stm32-based: allow SPI signals routed on multiple alternate functions
2019-10-25 09:47:49 +02:00
b0dfda244b
Merge pull request #12460 from fjmolinas/pr_port_migration
makefiles/vars.inc.mk: introduce and use `PROG_DEV`
2019-10-25 09:40:20 +02:00
Yannick Gicquel
d37adee32d boards/stm32-based: allow SPI signals routed on multiple alternate functions
There is no hardware limitation for custom boards based on STM32 to uses
SPI bus with signals coming from different PORT and alternate functions.

This patch allow alternate's function definition per pin basis, thus enable
the support of SPI bus signals routed on differents PORT.

Signed-off-by: Yannick Gicquel <ygicquel@gmail.com>
2019-10-25 06:27:41 +02:00
Marian Buschsieweke
a770a919aa
tests/c11_atomics_cpp_compat: Added compile test 2019-10-24 23:08:36 +02:00
Marian Buschsieweke
707bacc1b7
tests/rmutex_cpp: Testing rmutex with C++
Copied test from tests/rmutex, but using C++ instead of C.
2019-10-24 23:08:36 +02:00
Marian Buschsieweke
e0cec17ec8
core/rmutex: Made C++ compatible 2019-10-24 23:08:36 +02:00
Marian Buschsieweke
314184adb5
cpu: Platform specific C11 atomics compat headers
Added headers to define platform specific sizes and types for the C11 atomics
compatibility module for C++.
2019-10-24 23:08:36 +02:00
Marian Buschsieweke
809d74bca6
dist/tools: Added script for C11 atomics compat
Added a script to determine the sizes of the default C11 atomic types and
generate an C++ header with preprocessor defines to access the sizes of the
types and an integer type of the same size (and therefore alignment
requirements).
2019-10-24 23:08:35 +02:00
Marian Buschsieweke
cd8562e8c0
sys: Added basic C++ compat for C11 atomics
Added a header to allow defining C interfaces using the default C11 atomic
types. Those types are however fully opaque and inaccessible from C++, as C11
atomics are completely incompatible with C++.
2019-10-24 23:08:35 +02:00
Marian Buschsieweke
a4e4c43203
Merge pull request #12566 from maribu/native_c11
boards/native: Default to C11 instead of C99
2019-10-24 23:06:42 +02:00
Marian Buschsieweke
ef97b874bf
boards/native: Default to C11 instead of C99 2019-10-24 21:57:02 +02:00
09466050ff
Merge pull request #12563 from fjmolinas/pr_enable_suit
examples/suit_update:enable murdock
2019-10-24 19:45:43 +02:00
benpicco
afecb9aa7a
Merge pull request #12562 from kaspar030/pr/suit_v4_nanocbor
sys/suit/v4: switch to nanocbor
2019-10-24 19:15:25 +02:00
Marian Buschsieweke
1c624e457c
Merge pull request #10592 from gschorcht/sys_arduino_ext
sys/arduino: Added Wire (I2C) interface
2019-10-24 18:28:11 +02:00
20e1e161a3
Merge pull request #12554 from kaspar030/update_codespell
dist/tools/codespell: update ignore list
2019-10-24 17:33:27 +02:00
Francisco Molina
ce3665c097 examples/suit_update:enable murdock 2019-10-24 17:16:36 +02:00
Francisco
0364c39694
Merge pull request #12408 from miri64/gnrc_netif/fix/src-addr-selection
gnrc_netif: only use prefix matching as tie-breaker in source selection
2019-10-24 17:14:17 +02:00
265020cee3
Merge pull request #12467 from fjmolinas/pr_suit_use_cc2519
sys/suit: use c25519 instead of hacl
2019-10-24 17:02:34 +02:00
4ccb4e5995 sys/suit/v4: switch to nanocbor
Co-authored-by: Francisco <femolina@uc.cl>
2019-10-24 16:48:00 +02:00
050c077be7 dist/tools/codespell: update ignore list
changed wan -> WAN, codespell help says:
"Words are case sensitive based on how they are written in the dictionary file"
Thus WAN doesn't match but "wan" does.

Also added "dout" (short form of digital out).
2019-10-24 16:47:00 +02:00
Martine Lenders
020af4145a tests: provide more test cases for source address selection
- ULA destination with global address on interface
- Deprecated addresses
2019-10-24 16:04:41 +02:00
Martine S. Lenders
e9d75f5655 gnrc_netif: remove filter parameter from _match_to_idx()
`_match_to_idx()` was removed from source address selection (which was
the only one setting the filter parameter to a non-NULL value), so it
is the parameter is not needed anymore.
2019-10-24 16:04:41 +02:00
Martine S. Lenders
e787f6b60d gnrc_netif: only use prefix matching as tie-breaker in source selection
When source address selection is done, both RFC and comments in the code
state, that a longest prefix match should *only* be used as a
tie-breaker between more than one viable candidate. If there is only one
address, there is

a) no need for a tie-breaker
b) in the case of either the destination address or the single remaining
   address being ULAs ([which are considered to be of global scope]
   [RFC4193]) possibly not matching, as `fd00::/7` and e.g. `2001::/8`
   do not have a common prefix.

(b) in fact causes the match function to return -1, causing the source
address selection to return -1, causing the outer function to return the
first address it found (which most often is the link-local address),
causing e.g. a ping to an ULA to fail, even is there is a global
address.

[RFC4193]: https://tools.ietf.org/html/rfc4193
2019-10-24 16:04:41 +02:00
Martine S. Lenders
a53d13f333 examples/gnrc_minimal: disable logging 2019-10-24 14:08:17 +02:00
Cenk Gündoğan
e0ab8776f3
Merge pull request #12547 from miri64/gnrc_netif/enh/warn-no-ARSM
gnrc_netif: warn when not joining solicited-nodes from non-6LN netif
2019-10-24 13:46:38 +02:00
Martine Lenders
e990b26d5b
Merge pull request #12560 from miri64/gnrc_sixlowpan/cleanup/rb-remainders
gnrc_sixlowpan: move remaining reassembly buffer components to gnrc_sixlowpan_frag_rb
2019-10-24 13:38:55 +02:00
Vincent Dupont
3fb3b62ea2
Merge pull request #12507 from gschorcht/core/static_assert
core/assert: allow multiple static_asserts within a function
2019-10-24 13:38:00 +02:00
Francisco Molina
1ae0873769 boards: change PORT used for flash/debug/reset to PROG_DEV 2019-10-24 12:58:12 +02:00
Francisco Molina
755b4d97da boards/(openmote-b/remote): migrate PORT_BSL to PROG_DEV
- Move serial.inc.mk in remote and openmote-b Makefile.include before
  PROG_DEV to avoid repeating OS logic check
- Add deprecation warning for PORT_BSL
2019-10-24 12:57:46 +02:00
Francisco Molina
7794cce5ee makefiles/tools/serial.inc.mk: set default PROG_DEV to PORT 2019-10-24 12:57:42 +02:00
Francisco Molina
bf25e12602 makefiles/tools/avrdude.inc.mk: migrate to use PROG_DEV
- Move serial.inc.mk in mega-xplained/Makefile.include after
  PROG_DEV so PROG_DEV can still default to PORT
- Add deprecation warning for arduino-leonardo and mega-xplained
2019-10-24 12:57:07 +02:00