Skip to content
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

Do not set PLLSAI dividers in LTDC code #3094

Open
ProfFan opened this issue Jun 18, 2024 · 0 comments
Open

Do not set PLLSAI dividers in LTDC code #3094

ProfFan opened this issue Jun 18, 2024 · 0 comments

Comments

@ProfFan
Copy link
Contributor

ProfFan commented Jun 18, 2024

For example:

stm32_metapac::RCC
.dckcfgr1()
.modify(|w| w.set_pllsaidivr(stm32_metapac::rcc::vals::Pllsaidivr::DIV2));
// It is set to RCC_PLLSAIDIVR_2 in ST's BSP example for the STM32469I-DISCO.
#[cfg(not(any(stm32f7, stm32u5)))]
stm32_metapac::RCC
.dckcfgr()
.modify(|w| w.set_pllsaidivr(stm32_metapac::rcc::vals::Pllsaidivr::DIV2));
});
rcc::enable_and_reset::<T>();
//new_pin!(clk, AfType::output(OutputType::PushPull, Speed::VeryHigh));

These depend on how we configure the RCC. Instead the documentation should say what clocks are required to be configured at RCC start, and how to set RDiv manually to get desired LTDC clock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant