lp-core: Add waking hp-core from sleep

Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
Thomas Klaehn 2025-02-12 09:02:25 +01:00
parent ab2f440b82
commit 0d40a0e884

View File

@ -8,7 +8,7 @@
#![no_main]
use embedded_hal::{delay::DelayNs, digital::OutputPin};
use esp_lp_hal::{delay::Delay, gpio::Output, prelude::*};
use esp_lp_hal::{delay::Delay, gpio::Output, prelude::*, wake_hp_core};
use panic_halt as _;
const ADDRESS: u32 = 0x5000_2000;
@ -27,6 +27,7 @@ fn main(mut gpio1: Output<1>) -> ! {
}
gpio1.set_high().unwrap();
wake_hp_core();
Delay.delay_ms(500);
gpio1.set_low().unwrap();