[riot-notifications] [RIOT-OS/RIOT] cpu/rp2040: port RIOT to the Raspberry Pi RP2040 MCU (#16609)

fabian18 notifications at github.com
Mon Jul 5 16:14:04 CEST 2021


@fabian18 commented on this pull request.



> +            RESETS_RESET_spi1_Msk       |
+            RESETS_RESET_spi0_Msk       |
+            RESETS_RESET_rtc_Msk        |
+            RESETS_RESET_adc_Msk);
+    periph_reset_done(rst);
+
+    /* power the reference clock from its default source: the ROSC */
+    clock_ref_configure_source(MHZ(12), MHZ(12), CLOCKS_CLK_REF_CTRL_SRC_rosc_clksrc_ph);
+    /* power the system clock from its default source: the reference clock */
+    clock_sys_configure_source(MHZ(12), MHZ(12), CLOCKS_CLK_SYS_CTRL_SRC_clk_ref);
+    /* start XOSC running at 12 MHz */
+    xosc_start(MHZ(12));
+    /* reset system PLL */
+    pll_reset_sys();
+    /* make the system PLL output a 125 MHz frequency from the 12 MHz XOSC */
+    pll_start_sys(MHZ(12), 1, 125, 6, 2);

PLL configuration values:
`12 MHz` input frequency from the `XTAL`,
divided by  `1`,
scaled with `125` by the `PLL`,
post-divided by `(6 * 2)` ,
makes `125` MHz.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16609#discussion_r663963371
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210705/8da504bb/attachment.htm>


More information about the notifications mailing list