ready for feature based split

This commit is contained in:
Priec
2025-12-03 13:36:56 +01:00
parent 9ab8f94f92
commit 9be1d514fb
6 changed files with 13 additions and 3 deletions

View File

@@ -35,9 +35,7 @@ const PWR_FLAG_SBF: u32 = 1 << 1;
#[embassy_executor::main] #[embassy_executor::main]
async fn main(spawner: Spawner) { async fn main(spawner: Spawner) {
info!("boot"); info!("boot");
let mut config = Config::default(); let p = embassy_stm32::init(Config::default());
config.enable_debug_during_sleep = true;
let p = embassy_stm32::init(config);
let mut led = Output::new(p.PA3, Level::Low, Speed::Low); let mut led = Output::new(p.PA3, Level::Low, Speed::Low);
let _led_ground = Output::new(p.PB0, Level::Low, Speed::Low); let _led_ground = Output::new(p.PB0, Level::Low, Speed::Low);
info!("init m8"); info!("init m8");

View File

@@ -4,3 +4,5 @@
// pub use low_power::*; // pub use low_power::*;
pub mod hw_uart_pc; pub mod hw_uart_pc;
pub mod config; pub mod config;
pub mod sleep;
pub mod wakeup;

View File

@@ -0,0 +1,3 @@
// src/sleep/mod.rs
pub mod standby;

View File

@@ -0,0 +1 @@
// src/sleep/standby.rs

View File

@@ -0,0 +1,3 @@
// src/wakeup/iwdg.rs

View File

@@ -0,0 +1,3 @@
// src/wakeup/mod.rs
pub mod iwdg;