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

31905 Commits

Author SHA1 Message Date
Martine Lenders
cd8666735e
Merge pull request #15107 from benpicco/boards/samr21-xpro_edbg_eui
boards/samr21-xpro: fix reading EUI-64 from EDBG on cold boot
2020-09-29 11:04:04 +02:00
a2cf40aa76
Merge pull request #15038 from jia200x/pr/openthread/refactor
pkg/openthread: migrate to event loop
2020-09-29 10:48:07 +02:00
2c6693d68e
Merge pull request #14863 from hugueslarrive/nucleo-f302r8
boards/nucleo-f302r8: add ADC feature
2020-09-29 10:45:40 +02:00
2d80bbf7b9
Merge pull request #15109 from aabadie/pr/make/features_bootloader_stm32_cleanup
cpu/stm32: cleanup bootloader_stm32 build system management
2020-09-29 10:45:27 +02:00
Martine Lenders
9631576b22
gnrc_ipv6_nib: make ARO extra status codes also available without 6LN 2020-09-29 10:45:12 +02:00
Martine Lenders
04f6e06dd4
gnrc_ipv6_nib: only multicast probe UNREACHABLE neighbor if 6LR
Non-routing 6LNs do not have to join the solicited nodes address, so
probing for a neighbor using that address may be in vain and only
spamming the LLN with unnecessary messages. RFC 6775 basically assumes
this in section 5.2:

> There is no need to join the solicited-node multicast address, since
> nobody multicasts NSs in this type of network.
2020-09-29 10:45:12 +02:00
Benjamin Valentin
f163f1580b sys/net/uhcp: use LOG_ functions
Using `gnrc_border_router` with `uhcp` is quite noisy.
uhcpc will regularly refresh the prefix and print a bunch of status messages.

Allow the user to tone it down by setting a higher `LOG_LEVEL`.
For this, convert calls to `printf()` and `puts()` to `LOG_xxx()`.

This requires a dummy header for `uhcpd`.
2020-09-29 09:55:28 +02:00
7dc1286ae0
Merge pull request #15108 from aabadie/pr/cpu/stm32_info_fix
cpu/stm32: fix minor bug in Makefile logic when determining CPU_CORE
2020-09-28 21:20:26 +02:00
ef864bba39
cpu/stm32: only build bootloader when the module is loaded 2020-09-28 21:07:01 +02:00
1259a89acf
cpu/stm32: remove useless bootloader dependency resolution 2020-09-28 21:07:01 +02:00
17b04972f9
makefiles/features_modules.inc.mk: convert bootloader_stm32 feature as module 2020-09-28 21:06:37 +02:00
Benjamin Valentin
971c03eeb9 drivers/edbg_eui: add note on edbg startup time 2020-09-28 20:18:43 +02:00
42728db45b
cpu/stm32: fix logical bug when getting l0/g0 CPU_CORE 2020-09-28 17:04:54 +02:00
Marian Buschsieweke
c6fe777388
Merge pull request #15100 from maribu/arm7-cast-align
cpu/arm7_common: Fix compilation with -Wcast-align
2020-09-28 16:35:41 +02:00
Benjamin Valentin
d3cdf26c72 boards/samr21-xpro: fix reading EUI-64 from EDBG on cold boot
The samr21 starts up faster than EDBG, so on cold boot reading
the ID will fail.

Fix this by re-trying to get the EUI-64 from EUI.
On warm boot / reset this works on the first try, but on cold boot
it can spin a couple thousand times.
2020-09-28 16:15:52 +02:00
d5407d6e57
Merge pull request #15105 from bergzand/pr/docs/advanced_tricks_multiple_boards
doc: Extend tricks with Make-only board selector
2020-09-28 15:44:35 +02:00
a239bcb015
doc: Extend tricks with Make-only board selector
This extends the 'Advanced build system tricks' section with a make
script to select the board debugger and serial based on the USB serial
number as reported by the device. This solution is different from the
udev-rule solution as it doesn't require administrative permissions.
2020-09-28 14:26:46 +02:00
Francisco
bfb8fc52b1
Merge pull request #15094 from bergzand/pr/suit/secure_fetch
SUIT: fail fetch if the image size doesn't match expected
2020-09-28 14:11:26 +02:00
Martine Lenders
612d723d6c
Merge pull request #15087 from miri64/tapsetup/enh/tun
tapsetup: add support for single, unbridged TUN interface
2020-09-28 13:49:37 +02:00
7c029c7f43
Merge pull request #14907 from OTAkeys/pr/adcxx1c_get_alert
drivers/adcxx1c: add clear alert function
2020-09-28 13:28:15 +02:00
ab0cc57997
suit: Only finish the flashwrite when mock is not active
This can be removed as soon as the SUIT module has a proper storage
abstraction
2020-09-28 13:03:40 +02:00
Martine Lenders
2ed4b32e54
tapsetup: add support for single, unbridged TUN interface 2020-09-28 12:31:22 +02:00
Martine Lenders
73b8342528
tapsetup: make deleting interfaces a function 2020-09-28 12:31:22 +02:00
Martine Lenders
4a133a7d30
Merge pull request #15088 from maribu/sc_gnrc_icmpv6_echo
sys/shell/commands/gnrc_icmpv6_echo: Fix alignment
2020-09-28 11:30:08 +02:00
Marian Buschsieweke
833afc03e1
cpu/arm7_common: Silence -Wcast-align
- Enforced that ISR_STACKSIZE is indeed a multiple of 4
- With this enforced, every cast that triggers a -Wcast-align warning is now
  a false positives, so those were silenced by (intermediately) casting to
  `uintptr_t`.
2020-09-28 11:03:33 +02:00
Marian Buschsieweke
cc2382220f
cpu/arm7_common: Align thread stacks to 32 bit
This didn't change binaries for me. Either the linker script already took care
of it through the section names of the stacks, or I just was lucky. If I was
just luck, this fixes a bug. If not, it makes the hidden alignment explicit in
the C code, so that code review is easier.
2020-09-28 11:00:34 +02:00
hugues
9c41e25fff cpu/stm32/periph/adc_f3: fix for devices which have only one ADC 2020-09-28 10:29:53 +02:00
Marian Buschsieweke
4243c180cb
Merge pull request #15097 from benpicco/boards/mcb2388_doc
boards/mcb2388: enhance documentation
2020-09-28 09:43:11 +02:00
9b08cdca3d
Merge pull request #15098 from benpicco/cpu/fe310_rtc_fix
cpu/fe310: run RTT at 1 Hz if RTC is selected
2020-09-28 09:16:42 +02:00
Jean Pierre Dudey
447cdebd26 cpu/cc26xx_cc13xx: add & link CCFG configuration
> Allows flahsing CCFG configuration using Kconfig,
formely "make menuconfig".
> Supports cc26x0, cc26x2_cc13x2.
> Can be used to enable bootloader backdoor, to use
cc2538-bsl flashing script.
> Not all options are in Kconfig, most important ones,
others can be added in further commits.
> On cc13xx targets the VDDR high option can be enabled
using Kconfig.
> With this, RIOT can flash blank chips and the firmware
will run just fine.

Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2020-09-27 17:58:11 -05:00
Jean Pierre Dudey
978ea409b5 cpu/cc26xx_cc13xx: add CCFG register values
This adds almost all registers necessary to flash create
the CCFG configuration.

Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2020-09-27 17:56:55 -05:00
Jean Pierre Dudey
d0aedf0f95 cpu/cc26xx_cc13xx: add custom ld script
This add a custom ldscript for cc26xx_cc13xx CPUs,
which allows linking CCFG configuration, usage of GPRAM,
etc.

Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
2020-09-27 17:54:14 -05:00
Benjamin Valentin
2647f5f3c2 cpu/fe310: run RTT at 1 Hz if RTC is selected
The RTC on the fe310 is emulated using the RTT.
This only works if the RTT frequency is 1 Hz, so default to that
value in case `periph_rtc` is selected.
2020-09-27 22:45:04 +02:00
Benjamin Valentin
3e87d201c7 boards/mcb2388: enhance documentation
Document the implementation status of the MCUs peripherals.
2020-09-27 22:23:59 +02:00
ad45506924
Merge pull request #15082 from leandrolanzieri/pr/sys/net/remove_routing
sys/net: remove unused routing directory
2020-09-27 15:55:30 +02:00
Juergen Fitschen
62fb4a2ade
Merge pull request #13661 from jue89/feature/evtimer_on_ztimer
sys/evtimer: introduce ZTIMER_MSEC as timer backend
2020-09-27 14:07:04 +02:00
9334897ab9
Merge pull request #15086 from maribu/ibs-after-stackpointer
cpu/cortexm_common: Flush pipeline after triggering PendSV
2020-09-26 21:05:04 +02:00
benpicco
d1afb8983e
Merge pull request #15093 from bergzand/pr/suit/pol_check_before_fetch
suit: Move policy check to before fetch
2020-09-26 19:32:13 +02:00
benpicco
ab15d67e80
Merge pull request #15059 from maribu/core-thread-cast-align
core/thread.c: Silence -Wcast-align flase positives
2020-09-26 16:31:58 +02:00
91df9cae87
suit: Finalize image after digest verification 2020-09-26 14:40:14 +02:00
791155d3dd
suit/coap: fail fetch if the image size doesn't match expected 2020-09-26 13:34:50 +02:00
cdf45f9798
suit: Move policy check to before fetch
This prevents the whole payload fetch if the manifest fails the policy
check
2020-09-26 12:48:53 +02:00
6a2b2aab5d
Merge pull request #14879 from benpicco/cpu/kinetis/rtc_mktimr
cpu/kinetis: RTC use rtc_mktime()
2020-09-25 21:48:16 +02:00
a1473431da
Merge pull request #14878 from benpicco/cpu/fe310/rtc_mktime
cpu/fe310: RTC: use rtc_mktime()
2020-09-25 21:19:04 +02:00
benpicco
70a014fc47
Merge pull request #15089 from aabadie/pr/tests/pkg_utensor_stacksize
tests/pkg_utensor: increase stacksize with LLVM build on ARM
2020-09-25 20:22:30 +02:00
Juergen Fitschen
dfec601dea sys/evtimer: adjusted documentation for evtimer_on_ztimer 2020-09-25 18:55:01 +02:00
benpicco
a923cda323
Merge pull request #14944 from benpicco/drivers/mtd_mci
cpu/lpc23xx: add MTD wrapper for MCI driver
2020-09-25 18:22:48 +02:00
Benjamin Valentin
d092c12a66 cpu/fe310: RTC: use rtc_mktime()
Use RTC helper functions instead of libc functions.
This gives us y2038 safety by the extended epoch and saves
a good chunk of memory:

picolibc mktime():

   text	   data	    bss	    dec	    hex	filename
  15048	    520	   2504	  18072	   4698	tests/periph_rtc/bin/hifive1/tests_periph_rtc.elf

rtc_mktime():

   text	   data	    bss	    dec	    hex	filename
   7632	     40	   2452	  10124	   278c	tests/periph_rtc/bin/hifive1/tests_periph_rtc.elf
2020-09-25 18:22:10 +02:00
benpicco
2bfe7e1ce2
Merge pull request #15090 from aabadie/pr/boards/nucleo-g071rb
boards/nucleo-g071rb: add initial support
2020-09-25 18:21:29 +02:00
316871a4fa
Merge pull request #15068 from MrKevinWeiss/pr/dev_enum
drivers/dev_enums: Remove unused dev_enums.h
2020-09-25 17:35:21 +02:00