Merge pull request from maiaherringfish/stm32h7-fdcansel-fix

adding FDCANSEL logic for STM32H7x
This commit is contained in:
Dario Nieuwenhuis 2024-02-28 00:54:43 +00:00 committed by GitHub
commit 5ced938184
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -557,6 +557,9 @@ pub(crate) unsafe fn init(config: Config) {
RCC.d3ccipr().modify(|w| { RCC.d3ccipr().modify(|w| {
w.set_adcsel(config.adc_clock_source); w.set_adcsel(config.adc_clock_source);
}); });
RCC.d2ccip1r().modify(|w| {
w.set_fdcansel(config.fdcan_clock_source);
});
} }
#[cfg(stm32h5)] #[cfg(stm32h5)]
{ {