improvements to semestralka 2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user