Merge pull request #2634 from maiaherringfish/stm32h7-fdcansel-fix
adding FDCANSEL logic for STM32H7x
This commit is contained in:
commit
5ced938184
1 changed files with 3 additions and 0 deletions
|
@ -557,6 +557,9 @@ pub(crate) unsafe fn init(config: Config) {
|
|||
RCC.d3ccipr().modify(|w| {
|
||||
w.set_adcsel(config.adc_clock_source);
|
||||
});
|
||||
RCC.d2ccip1r().modify(|w| {
|
||||
w.set_fdcansel(config.fdcan_clock_source);
|
||||
});
|
||||
}
|
||||
#[cfg(stm32h5)]
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue