[riot-notifications] [RIOT-OS/RIOT] cpu/stm32l4: configure and initialize MCO (#15064)
Francisco
notifications at github.com
Thu Nov 5 11:55:58 CET 2020
@fjmolinas commented on this pull request.
> + /* Enable the LSE is 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 is required for MCO */
+ if (IS_ACTIVE(CLOCK_ENABLE_LSI)) {
+#if defined(CPU_FAM_STM32WB)
+ RCC->CSR |= RCC_CSR_LSI1ON;
+ while (!(RCC->CSR & RCC_CSR_LSI1RDY)) {}
+#else
+ RCC->CSR |= RCC_CSR_LSION;
+ while (!(RCC->CSR & RCC_CSR_LSIRDY)) {}
+#endif
+ }
Same for the other PR's
--
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/15064#discussion_r517962064
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201105/203ab602/attachment.htm>
More information about the notifications
mailing list