-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32: add lpuart_clock_source config #7326
Conversation
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.
Looks fine aside for a doc question.
@@ -730,6 +730,10 @@ | |||
"help": "Define if a Low Speed External xtal (LSE) is available on the board (0 = No, 1 = Yes). If Yes, the LSE will be used to clock the RTC, LPUART, ... otherwise the Low Speed Internal clock (LSI) will be used", | |||
"value": "1" | |||
}, | |||
"lpuart_clock_source": { | |||
"help": "Define the LPUART clock source. Mask values: USE_LPUART_CLK_LSE, USE_LPUART_CLK_PCLK1, USE_LPUART_CLK_HSI", | |||
"value": "USE_LPUART_CLK_LSE|USE_LPUART_CLK_PCLK1" |
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.
Should this also list USE_LPUART_CLK_HSI?
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 did it on purpose to not change the actual behavior. If the HSI is added here then it has also to be added in the system clock source selection. And it is not the case for all the boards... That's why I didn't add it here...
/morph build |
Build : SUCCESSBuild number : 2466 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2095 |
Test : SUCCESSBuild number : 2242 |
@jeromecoutant Happy with the changes? One note, that there is coding style update. It is ready to get in but will cause some others to be rebased in some cases. If there is any priority, let us know. Otherwise I would recommend to get that style update first and the rest rebased if needed (the biggest change goes in first as otherway around you will end up rebasing it often). |
@jeromecoutant @bcostm Rebase at will! |
Keep same clock configuration as done before this PR (LSE and PCLK1). Use a JSON file to change it.
b1c7307
to
0c417ab
Compare
Rebase done ! |
/morph build |
Build : SUCCESSBuild number : 2476 Triggering tests/morph test |
Test : SUCCESSBuild number : 2253 |
Exporter Build : SUCCESSBuild number : 2114 |
Description
This PR allows to change the LPUART1 source clock using a JSON file. Previously the clock source was fixed to LSE and PCLK1 and it was not possible to use HSI clock. Note that the default clock configuration is the same as before this PR (i.e. LSE and PCLK1).
If you want to use only the HSI clock instead, write the following in the mbed_app.json file:
Should fix Issue #7315
Pull request type