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

Alexandre Abadie notifications at github.com
Wed Nov 4 10:19:50 CET 2020


@aabadie commented on this pull request.



> +    RCC->OCENSETR |= RCC_OCENSETR_HSEON;
+    while (!(RCC->OCRDYR & RCC_OCRDYR_HSERDY)) {}
+}
+
+void stmclk_init_sysclk(void)
+{
+    /* disable any interrupts. Global interrupts could be enabled if this is
+     * called from some kind of bootloader...  */
+    unsigned is = irq_disable();
+    RCC->MC_CIFR = 0;
+
+    /* enable HSI clock for the duration of initialization */
+    stmclk_enable_hsi();
+
+    /* use HSI as system clock while we do any further configuration and
+     * configure the AHB and APB clock dividers as configure by the board */

```suggestion
     * configure the AHB and APB clock dividers as configured by the board */
```

-- 
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-523172383
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201104/fb69bec6/attachment.htm>


More information about the notifications mailing list