added FDCANSEL logic for H7
This commit is contained in:
parent
62c5df7e5b
commit
b7e0964a07
1 changed files with 3 additions and 0 deletions
|
@ -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)]
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue