1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg
bors[bot] 3469fce248
Merge #19335 #19581 #19612 #19643 #19655
19335: ipv6/nib: 6LBR should not send RS on their downstream interface r=fabian18 a=fabian18



19581: cpu/samd5x: enable FDPLL1 at 200MHz r=benpicco a=dylad

### Contribution description

This PR allows to use the second FDPLL (the first one is used to generated the 120MHz frequency used by the core and some peripherals). The second FDPLL is setup to run at 200MHz which is the maximum allowed by this MCU.
In fact, I reused the existing function which setup FDPLL0 so it can be used in a generic way for both PLL (since they are the same IP).

I change the way the computation offset (left shift by 5)  is done because 200MHz << 5 wouldn't fit inside an `uint32_t` and I wanted to avoid using an `uint64_t` here

Two additional commits are present for a small cleanup and a fix.

This is currently unused in our codebase, so it shouldn't impact this platform too much as the `ONDEMAND` bit is set. the FDPLL will not be running out of the box. But `@gschorcht` might need it pretty soon.

### Testing procedure

This PR can be tested on a `same54-xpro` and an oscilloscope using the following the patch:
```
From 76490845ec72387b24116bdd364a61365c186aa1 Mon Sep 17 00:00:00 2001
From: Dylan Laduranty <dylan.laduranty@mesotic.com>
Date: Thu, 11 May 2023 17:42:16 +0200
Subject: [PATCH] removeme! for debug purpose

Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
---
 cpu/samd5x/cpu.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/cpu/samd5x/cpu.c b/cpu/samd5x/cpu.c
index f778991a5b..2866c8c9e5 100644
--- a/cpu/samd5x/cpu.c
+++ b/cpu/samd5x/cpu.c
`@@` -220,7 +220,7 `@@` static void fdpll_init(uint8_t idx, uint32_t f_cpu)
 }
 
 static void gclk_connect(uint8_t id, uint8_t src, uint32_t flags) {
-    GCLK->GENCTRL[id].reg = GCLK_GENCTRL_SRC(src) | GCLK_GENCTRL_GENEN | flags | GCLK_GENCTRL_IDC;
+    GCLK->GENCTRL[id].reg = GCLK_GENCTRL_SRC(src) | GCLK_GENCTRL_GENEN | flags | GCLK_GENCTRL_OE | GCLK_GENCTRL_IDC;
     while (GCLK->SYNCBUSY.reg & GCLK_SYNCBUSY_GENCTRL(id)) {}
 }
 
`@@` -384,6 +384,12 `@@` void cpu_init(void)
     dma_init();
 #endif
 
+    sam0_gclk_enable(SAM0_GCLK_200MHZ);
+    /* output both FDPLL (GCLK0 and GCLK4) to gpios */
+    gpio_init_mux(GPIO_PIN(PB, 14), GPIO_MUX_M);
+    gpio_init_mux(GPIO_PIN(PB, 10), GPIO_MUX_M);
+    /* PB14 -> EXT2    PB10 -> QSPI SCK */
+
     /* initialize stdio prior to periph_init() to allow use of DEBUG() there */
     early_init();
 
-- 
2.35.3
```

It will output both FDPLLs to PB14 and PB10. Their frequency can then be measured using an oscilloscope.


### Issues/PRs references
None.

19612: pkg/ndn-riot: drop unmaintained pkg r=benpicco a=maribu

### Contribution description

Upstream [1] has seen no activity since 2018, so it safe to assume this is dead. It is reasonable to assume that any users - if there ever were any - have moved on.

Fixes https://github.com/RIOT-OS/RIOT/issues/15638

[1]: https://github.com/named-data-iot/ndn-riot


19643: examples/suit_update: some test fixes r=aabadie a=kaspar030



19655: net/ipv6: make use of clz in ipv6_addr_match_prefix() r=benpicco a=benpicco



Co-authored-by: Fabian Hüßler <fabian.huessler@st.ovgu.de>
Co-authored-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
Co-authored-by: Kaspar Schleiser <kaspar@schleiser.de>
Co-authored-by: Benjamin Valentin <benjamin.valentin@ml-pa.com>
2023-05-23 16:23:19 +00:00
..
arduino_adafruit_sensor pkg/arduino_adafruit_sensor: add Adafruit Unified Sensor Driver 2022-12-15 18:36:05 +01:00
arduino_api pkg: remove -std=c++11 2022-01-13 17:50:59 +01:00
arduino_sdi_12 pkg/arduino_sdi_12: bump version, fix patches 2022-10-25 10:26:43 +02:00
c25519 pkg/pkg.mk: silence info if QUIETER 2022-06-01 10:54:01 +02:00
cayenne-lpp pkg/*/Kconfig: Add simple kconfig pkgs 2021-04-08 16:34:36 +02:00
ccn-lite pkg/ccn-lite: Fix use after free bug 2022-11-11 22:16:47 +01:00
cifra pkg/cifra: fix build error with redefined assert 2021-12-23 11:04:42 +01:00
cmsis pkg: add support for CMSIS via a package 2023-05-14 21:08:27 +02:00
cn-cbor pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
corejson pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
cryptoauthlib pkg/cryptoauthlib: Fix compilation with -Wformat-nonliteral 2023-02-27 12:31:03 +01:00
driver_atwinc15x0 pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
driver_bme680 treewide: replace occurrences of tests/driver_ with new path 2023-05-06 15:38:21 +02:00
driver_sx126x sys/ztimer/kconfig: enable xtimer compat only with timer backend 2021-12-02 09:38:06 +01:00
edhoc-c pkg/edhoc-c: add QQ 2022-06-01 10:48:34 +02:00
elk pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
emlearn pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
esp32_sdk pkg/esp32_sdk: patches for compilation with gcc 12.2 2023-04-05 13:46:25 +02:00
esp32_sdk_lib_bt_esp32 pkg/esp32_sdk_lib_bt_esp32: add BLE library for ESP32 2022-08-24 09:03:38 +02:00
esp32_sdk_lib_bt_esp32c3 pkg/esp32_sdk_lib_bt_esp32c3: add BLE library for ESP32-C3 2022-08-24 18:02:21 +02:00
esp32_sdk_lib_phy pkg/esp32_sdk_lib_phy: bump version 2022-06-05 11:53:31 +02:00
esp32_sdk_lib_wifi pkg/esp32_sdk_lib_wifi: bump version 2022-06-05 11:53:31 +02:00
esp8266_sdk pkg/esp8266_sdk: fix version string generation 2023-01-10 20:22:40 +01:00
etl pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
fatfs pkg/fatfs: bump to r0.15 2023-03-05 00:46:06 +01:00
fff core/irq: Add C++ wrapper 2023-01-13 13:58:07 +01:00
fido2_tests sys/fido2: remove unnecessary module import from Makefile.dep 2022-01-31 16:49:38 +01:00
flashdb pkg: add FlashDB 2023-02-27 18:12:13 +01:00
flatbuffers pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
gecko_sdk pkg/gecko_sdk: disable cast-align globally 2023-05-15 12:20:06 +02:00
gemmlowp pkg: add Kconfig support for flatbuffers/ruy/tflite-micro 2022-04-27 10:53:50 +02:00
hacl pkg/hacl: documentation link update 2022-04-25 16:05:28 +02:00
heatshrink sys/doc.txt: add sys_compression doxygen group 2023-02-27 15:09:08 +01:00
jerryscript Merge pull request #18562 from MrKevinWeiss/pr/removemips 2022-09-30 10:47:09 +02:00
jsmn pkg/*/Kconfig: Add simple kconfig pkgs 2021-04-08 16:34:36 +02:00
libb2 pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
libbase58 pkg/libbase58: add Kconfig support 2023-05-19 15:40:44 +02:00
libcose treewide: replace remaining occurrences of tests/pkg_* 2023-05-06 07:55:03 +02:00
libfixmath tests/pkg_libfixmath_unittests: adapt test to upstream changes 2023-01-20 17:42:54 +01:00
libhydrogen pkg/libhydrogen: silence gcc 11.2.0 false posive stringop-overflow 2022-09-27 09:36:23 +02:00
libschc libschc: initial import 2023-02-22 09:10:03 +01:00
libsocketcan pkg/socketcan: add to resolve i386 support on Ubuntu 2022-04-20 11:49:33 +02:00
littlefs Merge pull request #18672 from benpicco/vfs-abs_path 2022-09-30 16:42:57 +02:00
littlefs2 pkg/littlefs2: bump version to 2.5.1 2022-11-10 16:17:24 -05:00
lora-serialization pkg/*/Kconfig: Add simple kconfig pkgs 2021-04-08 16:34:36 +02:00
lorabasics pkg/lorabasics: fix unused parameters warning 2022-08-18 01:05:31 +02:00
lua core/lib: Add macros/utils.h header 2023-01-07 09:47:44 +01:00
lv_drivers pkg/lv_drivers: replace LittlevGL to LVGL 2023-05-08 15:00:52 +02:00
lvgl build-system: Allow out of tree BUILD_DIR 2023-05-16 22:23:03 +02:00
lwext4 pkg/lwext4: add lwEXT4 2023-02-25 14:01:20 +01:00
lwip drivers/mrf24j40: add support for IEEE 802.15.4 Radio HAL 2023-01-19 15:31:06 +01:00
lz4 sys/doc.txt: add sys_compression doxygen group 2023-02-27 15:09:08 +01:00
mbedtls treewide: replace remaining occurrences of tests/pkg_* 2023-05-06 07:55:03 +02:00
micro-ecc pkg/*/Kconfig: Add simple kconfig pkgs 2021-04-08 16:34:36 +02:00
microcoap pkg/*/Kconfig: Add simple kconfig pkgs 2021-04-08 16:34:36 +02:00
micropython cpu/mips: Remove all mips 2022-09-27 13:42:37 +02:00
minmea pkg/minmea: bump version 2023-01-20 15:25:25 +01:00
monocypher pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
mynewt-core Merge pull request #18029 from haukepetersen/verbump_nimble_nrfx2022 2022-06-10 04:11:26 +02:00
nanocbor pkg/nanocbor: bump version 2022-08-31 16:29:03 +02:00
nanopb pkg/nanopb: bump version to 0.4.7 2023-01-20 14:37:09 +01:00
nanors pkg/nanors: bump version 2023-03-13 11:49:39 +01:00
nimble pkg/nimble/autoadv: fix flag comparisons 2023-02-02 15:45:00 +01:00
nmsis_sdk pkg/nmsis_sdk: add NMSIS SDK for Nuclei-based MCUs 2023-01-24 00:52:02 +01:00
nrfx pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
openthread pkg/openthread: set event callback before netdev init 2023-05-04 18:26:33 +02:00
openwsn treewide: replace remaining occurrences of tests/pkg_* 2023-05-06 07:55:03 +02:00
paho-mqtt Merge #18962 #18999 #19034 2022-12-11 12:03:28 +00:00
qcbor pkg/qcbor: update doc about path to test application 2023-05-06 07:55:02 +02:00
qdsa pkg/qdsa: add -Wno-cast-align 2021-12-03 10:12:37 +01:00
qr-code-generator pkg: Move versions to dedicated line 2022-09-26 17:45:54 +02:00
relic pkg/relic: bump to current master (e3f82e36 from 08.11.21) 2021-11-08 23:18:30 +01:00
ruy pkg: add Kconfig support for flatbuffers/ruy/tflite-micro 2022-04-27 10:53:50 +02:00
semtech-loramac pkg/semtech-loramac/doc: sx1261 and sx1262 are also supported 2023-04-30 21:56:52 +02:00
spiffs vfs: drop unused abs_path parameter 2022-09-29 22:01:37 +02:00
talking_leds pkg: remove -std=c++11 2022-01-13 17:50:59 +01:00
tflite-micro pkg/tflite-micro: fix compilation with GCC >= 12.x 2022-11-11 09:01:02 +01:00
tiny-asn1 pkg/tiny-asn1: Update tiny-asn1 package 2021-10-02 21:27:40 +02:00
tinycbor pkg/tinycbor: bump version 2022-02-02 14:44:50 +01:00
tinycrypt pkg/tinycryp: supress llvm warning 2021-09-07 09:35:00 +02:00
tinydtls Merge #19346 #19512 #19513 #19514 2023-04-26 15:40:08 +00:00
tinyusb treewide: replace remaining occurrences of tests/pkg_* 2023-05-06 07:55:03 +02:00
tinyvcdiff codespell: fix remaining issues 2022-09-16 14:00:35 +02:00
tlsf doc: fix unbalaced grouping 2022-09-14 15:05:25 +02:00
tweetnacl pkg/*/Kconfig: Add simple kconfig pkgs 2021-04-08 16:34:36 +02:00
u8g2 pkg/u8g2: bump version 2023-02-27 16:00:21 +01:00
ubasic cpu/mips: Remove all mips 2022-09-27 13:42:37 +02:00
ucglib treewide: make all modules use Kconfig ZTIMER_USEC indirection 2022-03-17 14:33:07 +01:00
umorse pkg: silent make commands with RIOT_CI_BUILD=1 2021-03-12 16:05:18 +01:00
utensor pkg/utensor: fix uninitialized variable 2022-11-09 22:47:08 +01:00
uwb-core makefiles/cflags.inc.mk: Add -Wno-missing-field-initializers to CXXFLAGS 2022-10-27 14:28:06 +02:00
uwb-dw1000 pkg/uwb-dw1000: read ch5 pg_delay stored in OTP 2022-04-25 13:32:59 +02:00
uzlib sys/doc.txt: add sys_compression doxygen group 2023-02-27 15:09:08 +01:00
wakaama Merge pull request #18096 from Teufelchen1/feat/port_parsing 2022-09-19 13:40:53 +02:00
wamr pkg/wamr: Update to WAMR-1.1.1 2022-11-29 13:28:46 +01:00
wolfssl pkg: fix remaining broken paths to tests 2023-05-13 19:08:39 +02:00
yxml pkg/yxml: add git mirror url 2021-10-01 14:44:10 +02:00
doc.txt build-system: Allow out of tree BUILD_DIR 2023-05-16 22:23:03 +02:00
Kconfig pkg/libbase58: add Kconfig support 2023-05-19 15:40:44 +02:00
local.mk pkg/pkg.mk: better distinguish between source and build directory 2020-06-26 09:25:43 +02:00
Makefile.git pkg/Makefile.git: adapt example to new organization 2020-06-26 09:25:44 +02:00
Makefile.http pkg: add PKG_LICENSE to templates 2020-01-06 00:37:47 +01:00
pkg.mk pkg/pkg.mk: silence info if QUIETER 2022-06-01 10:54:01 +02:00