-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(uart): set LSE as source only if LSE is ready
Fixes #2642. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
- Loading branch information
Showing
1 changed file
with
17 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eb243d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that
if
statement forLSE_IS_Ready
should be closed before we initialize the HAL UART.Arduino_Core_STM32/libraries/SrcWrapper/src/stm32/uart.c
Lines 461 to 482 in eb243d5
Instead of:
I think it should be:
eb243d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If LSE is not available, then the HSI is tested then other clock source.
eb243d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. But if LSE isnt valid, then when do you init the UART? I am missing this part :)
eb243d5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the code after.