mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
3469fce248
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> |
||
---|---|---|
.. | ||
arduino_hello-world | ||
asymcute_mqttsn | ||
benchmark_udp | ||
bindist | ||
blinky | ||
ccn-lite-relay | ||
cord_ep | ||
cord_epsim | ||
cord_lc | ||
default | ||
dtls-echo | ||
dtls-sock | ||
dtls-wolfssl | ||
emcute_mqttsn | ||
filesystem | ||
gcoap | ||
gcoap_block_server | ||
gcoap_dtls | ||
gcoap_fileserver | ||
gnrc_border_router | ||
gnrc_lorawan | ||
gnrc_minimal | ||
gnrc_networking | ||
gnrc_networking_mac | ||
gnrc_networking_subnets | ||
hello-world | ||
ipc_pingpong | ||
javascript | ||
lorawan | ||
lua_basic | ||
lua_REPL | ||
micropython | ||
nanocoap_server | ||
nimble_gatt | ||
nimble_heart_rate_sensor | ||
nimble_scanner | ||
openthread | ||
paho-mqtt | ||
pio_blink | ||
posix_select | ||
posix_sockets | ||
riot_and_cpp | ||
rust-gcoap | ||
rust-hello-world | ||
saul | ||
senml_saul | ||
skald_eddystone | ||
skald_ibeacon | ||
sniffer | ||
spectrum-scanner | ||
suit_update | ||
telnet_server | ||
thread_duel | ||
timer_periodic_wakeup | ||
twr_aloha | ||
usbus_minimal | ||
wakaama | ||
wasm | ||
.gitignore |