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

Alexandre Abadie notifications at github.com
Thu Nov 5 13:40:11 CET 2020


@aabadie commented on this pull request.



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

Comments added like in #15064 

-- 
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/15073#discussion_r518020129
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201105/333354f3/attachment.htm>


More information about the notifications mailing list