Enable FPU for RP235X Core1

This commit is contained in:
Keisuke Tottori 2024-09-27 17:19:35 +09:00 committed by Dario Nieuwenhuis
parent 9555259c57
commit cdcd9de051

View File

@ -169,6 +169,13 @@ where
interrupt::SIO_IRQ_FIFO.enable() interrupt::SIO_IRQ_FIFO.enable()
}; };
// Enable FPU
#[cfg(feature = "_rp235x")]
unsafe {
let p = cortex_m::Peripherals::steal();
p.SCB.cpacr.modify(|cpacr| cpacr | (3 << 20) | (3 << 22));
}
entry() entry()
} }