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

24727 Commits

Author SHA1 Message Date
Martine S. Lenders
40138fdce8 gnrc_sixlowpan_frag_rb: allow for deletion timer after completion
This allows to set a timer between the completion of a datagram in the
reassembly buffer and the deletion of the corresponding reassembly
buffer entry. This allows to ignore potentially late incoming link-layer
duplicates of fragments of the datagram that then will have the
reassembly buffer entry be blocked.

This was noted in this [discussion] for classic 6LoWPAN reassembly (and
minimal fragment forwarding) and is recommended in the current
[selective fragment recovery draft][SFR draft].

[discussion]: https://mailarchive.ietf.org/arch/msg/6lo/Ez0tzZDqawVn6AFhYzAFWUOtJns
[SFR draft]: https://tools.ietf.org/html/draft-ietf-6lo-fragment-recovery-07#section-6
2019-11-12 17:06:52 +01:00
Marian Buschsieweke
d4adcfd92d
Merge pull request #12581 from benpicco/lpc2387-xtal_select
cpu/lpc2387: allow for more flexible clock selection
2019-10-28 12:32:11 +01:00
benpicco
c9166c691c
Merge pull request #12435 from fhessel/fix-riotbuild-freebsd
Makefile.include: Fix call to sed for FreeBSD
2019-10-28 11:26:32 +01:00
Benjamin Valentin
d6ca62576d cpu/lpc2387: allow use of other XTALs
Currently the cpu/lpc2387 init code hard-codes a 16 MHz
external oscillator.
Instead, calculate the PLL multiplier based on the board define
and also allow to run without an external oscillator.
2019-10-28 11:11:40 +01:00
Leandro Lanzieri
073090b01e
Merge pull request #12580 from benpicco/lpc2387-fix_rtc
cpu/lpc2387: enable RTC on rtc_init()
2019-10-28 10:40:37 +01:00
Leandro Lanzieri
00926221fd
Merge pull request #12585 from aabadie/pr/cpu/stm32_common_fix_llvm_build
cpu/stm32_common: fix i2c_1 build with llvm toolchain
2019-10-28 10:03:48 +01:00
Marian Buschsieweke
4cf2151248
Merge pull request #12537 from benpicco/at86rfmega
drivers/at86rf2xx: add support for ATmegaRF MCUs
2019-10-28 09:22:02 +01:00
fd2d30c6e7
cpu/stm32_common: fix i2c_1 build with llvm toolchain 2019-10-27 15:44:07 +01:00
benpicco
7072696e4e
Merge pull request #12576 from aabadie/pr/cpu/sam0_scan_build_fix
cpu/sam0_common: fix potential undefined result with sercom_id
2019-10-27 15:12:22 +01:00
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
1c416185b6
cpu/sam0_common: fix potential undefined result with sercom_id
Scan-build detected that sercom_id could return -1 and the value of this function is affected to uint8_t variables. Since these variables are used for shitfing bit in registers, this could lead to undefined behavior
2019-10-27 12:02:47 +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
Benjamin Valentin
985fb53c9f cpu/lpc2387: enable RTC on init
All other CPU implementations have the RTC running after
rtc_init() was called.

Fix this for lpc2387.
2019-10-27 01:33:13 +02:00
Benjamin Valentin
3ecf7a0430 boards/msba2: define XTAL frequency
The board comes with a 16 MHz XTAL.
Since the avsextrem is just an extended msba2, this is true here too.
2019-10-27 01:32:50 +02:00
Benjamin Valentin
eeb75c08bd tests/examples: add microduino-corerf to Makefile.ci
Now that the radio is enabled, some tests do not fit onto the MCU
anymore.
2019-10-27 00:18:23 +02:00
Benjamin Valentin
92335b1aff examples/default: add microduino-corerf to BOARD_PROVIDES_NETIF 2019-10-26 23:10:18 +02:00
Benjamin Valentin
14a8a53eb5 cpu/atmega256rfr2: Hook up at86rfr2 radio 2019-10-26 23:10:18 +02:00
Benjamin Valentin
25e9b24bc4 cpu/atmega128rfa1: Hook up at86rfa1 radio 2019-10-26 23:10:18 +02:00
Benjamin Valentin
8f1eaae353 drivers/at86rf2xx: add support for ATmegaRF MCUs
The ATmega128RFA1 and ATmega256RFR2 contain a version of this IP
on the MCU.

The radio core behaves mostly like a at86rf231, but all registers
are mapped to memory and radio states can directly generate interrupts
on the CPU.

The ATmega256RFR2 adds support for automatic retransmissions.
This has not been implemented yet.

Co-authored-by: Josua Arndt <jarndt@ias.rwth-aachen.de>
2019-10-26 23:10:18 +02: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