improvements to semestralka 2

This commit is contained in:
Priec
2025-12-03 20:20:34 +01:00
parent 68d13ebbbc
commit 3ebbd97760
4 changed files with 30 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ use dma_gpio::config::{
use dma_gpio::hw_uart_pc::{driver::uart_task, usart1};
use dma_gpio::wakeup::iwdg::{clear_wakeup_flags, init_watchdog};
use dma_gpio::sleep::shutdown::enter_shutdown;
use dma_gpio::sleep::standby::enter_standby_with_sram2_retention;
use dma_gpio::sleep::standby;
use {defmt_rtt as _, panic_probe as _};
bind_interrupts!(struct Irqs {
@@ -70,7 +70,9 @@ async fn main(spawner: Spawner) {
loop {
info!("entering shutdown");
enter_standby_with_sram2_retention();
// enter_shutdown();
info!("shutdown");
standby::enter_standby_with_sram2_full();
cortex_m::asm::wfi();
yield_now().await;
}