[riot-notifications] [RIOT-OS/RIOT] cpu/stm32gx: add MCO configuration and initialization (#15084)

Francisco notifications at github.com
Thu Nov 5 09:26:20 CET 2020


@fjmolinas commented on this pull request.



> +    /* Enable the LSE if required for MCO */
+    if (IS_ACTIVE(CLOCK_ENABLE_LSE)) {
+        stmclk_dbp_unlock();
+        RCC->BDCR |= RCC_BDCR_LSEON;
+        while (!(RCC->BDCR & RCC_BDCR_LSERDY)) {}
+        stmclk_dbp_lock();
+    }
+
+    /* Enable the LSI if required for MCO */
+    if (IS_ACTIVE(CLOCK_ENABLE_LSI)) {
+        RCC->CSR |= RCC_CSR_LSION;
+        while (!(RCC->CSR & RCC_CSR_LSIRDY)) {}
+    }

Same comment as in other PR, is this only bound to MCO?

-- 
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/15084#pullrequestreview-524018936
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201105/47325912/attachment.htm>


More information about the notifications mailing list