ready for feature based split
This commit is contained in:
@@ -35,9 +35,7 @@ const PWR_FLAG_SBF: u32 = 1 << 1;
|
||||
#[embassy_executor::main]
|
||||
async fn main(spawner: Spawner) {
|
||||
info!("boot");
|
||||
let mut config = Config::default();
|
||||
config.enable_debug_during_sleep = true;
|
||||
let p = embassy_stm32::init(config);
|
||||
let p = embassy_stm32::init(Config::default());
|
||||
let mut led = Output::new(p.PA3, Level::Low, Speed::Low);
|
||||
let _led_ground = Output::new(p.PB0, Level::Low, Speed::Low);
|
||||
info!("init m8");
|
||||
|
||||
@@ -4,3 +4,5 @@
|
||||
// pub use low_power::*;
|
||||
pub mod hw_uart_pc;
|
||||
pub mod config;
|
||||
pub mod sleep;
|
||||
pub mod wakeup;
|
||||
|
||||
3
semestralka_2/src/sleep/mod.rs
Normal file
3
semestralka_2/src/sleep/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
// src/sleep/mod.rs
|
||||
|
||||
pub mod standby;
|
||||
1
semestralka_2/src/sleep/standby.rs
Normal file
1
semestralka_2/src/sleep/standby.rs
Normal file
@@ -0,0 +1 @@
|
||||
// src/sleep/standby.rs
|
||||
3
semestralka_2/src/wakeup/iwdg.rs
Normal file
3
semestralka_2/src/wakeup/iwdg.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
// src/wakeup/iwdg.rs
|
||||
|
||||
|
||||
3
semestralka_2/src/wakeup/mod.rs
Normal file
3
semestralka_2/src/wakeup/mod.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
// src/wakeup/mod.rs
|
||||
|
||||
pub mod iwdg;
|
||||
Reference in New Issue
Block a user