working uart but not waking after sleep

This commit is contained in:
Priec
2025-12-03 21:41:45 +01:00
parent 3ebbd97760
commit c7a74df023
22 changed files with 2513 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
// src/sleep/standby.rs
pub fn enter_shutdown() -> ! {
unsafe extern "C" {
fn HAL_PWREx_EnterSHUTDOWNMode();
}
unsafe {
HAL_PWREx_EnterSHUTDOWNMode();
}
cortex_m::asm::udf(); //panic
}