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

Francisco notifications at github.com
Thu Nov 5 09:13:45 CET 2020


@fjmolinas 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)) {}
+    }

Is there no case for enabling `LSI` or `LSE` not for MSO, can't it be used to clock RTT for example?

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


More information about the notifications mailing list