mirror of
https://github.com/LegitCamper/picocalc-os-rs.git
synced 2025-12-27 15:55:25 +00:00
Merge branch 'main' into doom
This commit is contained in:
@@ -94,6 +94,7 @@ async fn watchdog_task(mut watchdog: Watchdog) {
|
||||
ResetReason::Forced => "forced",
|
||||
ResetReason::TimedOut => "timed out",
|
||||
};
|
||||
#[cfg(feature = "debug")]
|
||||
defmt::error!("Watchdog reset reason: {}", reason);
|
||||
}
|
||||
|
||||
@@ -283,12 +284,14 @@ async fn setup_qmi_psram() {
|
||||
Timer::after_millis(250).await;
|
||||
while tries > 1 {
|
||||
let psram_qmi_size = init_psram_qmi(&embassy_rp::pac::QMI, &embassy_rp::pac::XIP_CTRL);
|
||||
#[cfg(feature = "debug")]
|
||||
defmt::info!("size: {}", psram_qmi_size);
|
||||
Timer::after_millis(100).await;
|
||||
if psram_qmi_size > 0 {
|
||||
init_qmi_psram_heap(psram_qmi_size);
|
||||
return;
|
||||
}
|
||||
#[cfg(feature = "debug")]
|
||||
defmt::info!("failed to init qmi psram... trying again");
|
||||
tries -= 1;
|
||||
}
|
||||
|
||||
@@ -526,6 +526,7 @@ pub fn init_psram_qmi(
|
||||
let psram_size = detect_psram_qmi(qmi);
|
||||
|
||||
if psram_size == 0 {
|
||||
#[cfg(feature = "debug")]
|
||||
defmt::error!("qmi psram size 0");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user