shutdown added

This commit is contained in:
Priec
2025-12-03 17:57:10 +01:00
parent 33543099c2
commit 434e2b3d21
4 changed files with 32 additions and 11 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
}