lp-core: Add waking hp-core from sleep
Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
parent
ab2f440b82
commit
0d40a0e884
@ -8,7 +8,7 @@
|
|||||||
#![no_main]
|
#![no_main]
|
||||||
|
|
||||||
use embedded_hal::{delay::DelayNs, digital::OutputPin};
|
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 _;
|
use panic_halt as _;
|
||||||
|
|
||||||
const ADDRESS: u32 = 0x5000_2000;
|
const ADDRESS: u32 = 0x5000_2000;
|
||||||
@ -27,6 +27,7 @@ fn main(mut gpio1: Output<1>) -> ! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gpio1.set_high().unwrap();
|
gpio1.set_high().unwrap();
|
||||||
|
wake_hp_core();
|
||||||
Delay.delay_ms(500);
|
Delay.delay_ms(500);
|
||||||
|
|
||||||
gpio1.set_low().unwrap();
|
gpio1.set_low().unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user