[riot-notifications] [RIOT-OS/RIOT] Port of RIOT-OS to stm32mp1 (#14691)

Alexandre Abadie notifications at github.com
Wed Nov 4 10:21:17 CET 2020


@aabadie commented on this pull request.



> +            != RCC_APB3DIVR_APB3DIVRDY) {}
+
+    /* MCU clock source */
+    RCC->MSSCKSELR = RCC_MSSCKSELR_MCUSSRC_0; /* HSI */
+    while ((RCC->MSSCKSELR & RCC_MSSCKSELR_MCUSSRCRDY)
+            != RCC_MSSCKSELR_MCUSSRCRDY) {}
+
+    /* disable all active clocks except HSI -> resets the clk configuration */
+    RCC->OCENCLRR = ~(RCC_OCENSETR_HSION);
+
+    /* if configured, we need to enable the HSE clock now */
+#if (IS_ACTIVE(CLOCK_ENABLE_HSE))
+    stmclk_enable_hse();
+#endif
+
+#if (IS_ACTIVE(CLOCK_ENABLE_PLL))

```suggestion
    if (IS_ACTIVE(CLOCK_ENABLE_PLL)) {
```

-- 
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/14691#pullrequestreview-523173599
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201104/611c9de5/attachment.htm>


More information about the notifications mailing list