1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/examples
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_hello-world example/arduino_hello-wold: add building BOARD default 2022-02-28 22:00:21 +01:00
asymcute_mqttsn boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
benchmark_udp boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
bindist examples/bindist: cleanup and fix formatting in README 2019-01-22 07:37:36 +01:00
blinky examples/blinky: use coreclk() instead of CLOCK_CORECLOCK 2021-12-15 13:14:19 +01:00
ccn-lite-relay examples,tests: Drop redundant dependency 2023-04-19 16:58:10 +02:00
cord_ep boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
cord_epsim boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
cord_lc boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
default examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
dtls-echo boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
dtls-sock examples: update Makefile.ci where tinyDTLS is used 2023-04-26 10:31:09 +02:00
dtls-wolfssl examples/dtls-wolfssl: Update insufficient flash board list 2023-03-08 20:29:15 +00:00
emcute_mqttsn boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
filesystem examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
gcoap boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
gcoap_block_server boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
gcoap_dtls boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
gcoap_fileserver boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
gnrc_border_router boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
gnrc_lorawan examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
gnrc_minimal treewide: fix path to external_board_dirs test in doc 2023-05-13 18:31:05 +02:00
gnrc_networking boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
gnrc_networking_mac examples,tests: Drop redundant dependency 2023-04-19 16:58:10 +02:00
gnrc_networking_subnets boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
hello-world examples: adapt DEVELHELP switch 2017-11-28 19:25:10 +01:00
ipc_pingpong examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
javascript examples: add sipeed-longan-nano to Makefile.ci 2023-01-24 00:39:43 +01:00
lorawan examples/lorawan: extend list of supported radios 2023-04-30 21:56:52 +02:00
lua_basic boards/{bluepill*,blackpill*}: rename and improve doc 2023-01-02 16:23:10 +01:00
lua_REPL examples: Update Makefile.ci 2023-01-12 08:39:41 +01:00
micropython boards/{bluepill*,blackpill*}: rename and improve doc 2023-01-02 16:23:10 +01:00
nanocoap_server boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
nimble_gatt pkg/nimble/autoadv: add support for ext_adv 2022-04-27 08:22:58 +02:00
nimble_heart_rate_sensor pkg/nimble/autoadv: add support for ext_adv 2022-04-27 08:22:58 +02:00
nimble_scanner sys/shell_commands: convert to SHELL_COMMAND() 2022-06-07 09:25:04 +02:00
openthread examples/openthread: adapt to update in package support 2021-11-22 15:22:27 +01:00
paho-mqtt boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
pio_blink examples/pio_blink: Add PIO blink example 2023-05-23 08:49:37 +02:00
posix_select boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
posix_sockets boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
riot_and_cpp treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
rust-gcoap Rust: Update riot-wrappers 2023-04-25 09:20:58 +02:00
rust-hello-world Rust: Update riot-wrappers 2023-04-25 09:20:58 +02:00
saul examples,tests: Drop redundant dependency 2023-04-19 16:58:10 +02:00
senml_saul sys/senml: add SenML modules 2022-02-11 12:38:21 +01:00
skald_eddystone examples/skald_eddystone: explicitly config itvl 2022-05-24 13:02:10 +02:00
skald_ibeacon examples/skald_ibeacon: explicitly configure itvl 2022-05-24 13:02:10 +02:00
sniffer examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
spectrum-scanner examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
suit_update examples/suit_update: fix redundant check in test script 2023-05-22 12:56:49 +02:00
telnet_server boards/olimex-msp430-h1611: new board 2023-05-16 15:03:12 +02:00
thread_duel examples,tests: Update Makefile.cis 2023-02-27 12:31:04 +01:00
timer_periodic_wakeup examples/timer_periodic_wakeup: switch to ztimer 2022-12-01 18:37:01 +01:00
twr_aloha boards/xg23-pk6068a: initial commit 2022-10-26 11:27:22 +02:00
usbus_minimal examples/usbus_minimal/Makefile: remove unneeded SHOULD_RUN_KCONFIG 2020-11-04 09:35:35 +01:00
wakaama boards/{bluepill*,blackpill*}: rename and improve doc 2023-01-02 16:23:10 +01:00
wasm examples/wasm/wasm_sample: revert prebuild WASM 2023-05-17 12:31:13 +02:00
.gitignore examples,tests: ignore core dumps via .gitignore 2022-08-31 15:05:14 +02:00