remove more /2 errors now that peri clock is correct

This commit is contained in:
bunnie 2025-12-16 01:06:46 +08:00
parent 534e99216a
commit 934d6e1082

View file

@ -58,8 +58,8 @@ impl SwapHal {
channel, channel,
// has to be half the clock frequency reaching the block, but run it as fast // has to be half the clock frequency reaching the block, but run it as fast
// as we can run perclk // as we can run perclk
perclk_freq / 4,
perclk_freq / 2, perclk_freq / 2,
perclk_freq,
SpimClkPol::LeadingEdgeRise, SpimClkPol::LeadingEdgeRise,
SpimClkPha::CaptureOnLeading, SpimClkPha::CaptureOnLeading,
SpimCs::Cs0, SpimCs::Cs0,
@ -77,8 +77,8 @@ impl SwapHal {
let mut ram_spim = unsafe { let mut ram_spim = unsafe {
Spim::new_with_ifram( Spim::new_with_ifram(
channel, channel,
perclk_freq / 4,
perclk_freq / 2, perclk_freq / 2,
perclk_freq,
SpimClkPol::LeadingEdgeRise, SpimClkPol::LeadingEdgeRise,
SpimClkPha::CaptureOnLeading, SpimClkPha::CaptureOnLeading,
SpimCs::Cs1, SpimCs::Cs1,