setup: explicitly use hclk for spi

master
Robert Jördens 2021-07-28 11:50:14 +00:00
parent c85cbb7aa2
commit 53087e0ef4
1 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,8 @@ pub fn setup(
.d2ccip1r
.modify(|_, w| w.spi123sel().pll2_p().spi45sel().pll2_q());
device.RCC.d1ccipr.modify(|_, w| w.qspisel().rcc_hclk3());
let rcc = device.RCC.constrain();
let ccdr = rcc
.use_hse(8.mhz())