This commit is contained in:
2025-11-03 15:26:22 -07:00
parent cc463a34be
commit 74ec86da8f
2 changed files with 11 additions and 9 deletions

View File

@@ -334,12 +334,14 @@ async fn kernel_task(
setup_mcu(mcu).await; setup_mcu(mcu).await;
defmt::info!("setting up psram");
Timer::after_millis(100).await;
// setup_psram(psram).await; // setup_psram(psram).await;
#[cfg(feature = "pimoroni2w")] #[cfg(feature = "pimoroni2w")]
setup_qmi_psram().await; setup_qmi_psram().await;
#[cfg(feature = "pimoroni2w")]
Timer::after_millis(500).await;
Timer::after_millis(100).await;
setup_display(display, spawner).await; setup_display(display, spawner).await;
setup_sd(sd).await; setup_sd(sd).await;

View File

@@ -549,13 +549,13 @@ pub fn init_psram_qmi(
let min_deselect: u32 = ((18 * 1_000_000 + (clock_period_fs - 1)) / clock_period_fs let min_deselect: u32 = ((18 * 1_000_000 + (clock_period_fs - 1)) / clock_period_fs
- u64::from(divisor + 1) / 2) as u32; - u64::from(divisor + 1) / 2) as u32;
#[cfg(feature = "defmt")] // #[cfg(feature = "defmt")]
defmt::info!( // defmt::info!(
"clock_period_fs={} max_select={} min_deselect={}", // "clock_period_fs={} max_select={} min_deselect={}",
clock_period_fs, // clock_period_fs,
max_select, // max_select,
min_deselect // min_deselect
); // );
qmi.direct_csr().write(|w| { qmi.direct_csr().write(|w| {
w.set_clkdiv(10); w.set_clkdiv(10);