mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-27 15:55:25 +00:00
fix lock
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user