restart method

This commit is contained in:
ivmarkov 2022-09-22 10:31:44 +03:00
parent 5d463c8c1d
commit 341fc871d7
2 changed files with 7 additions and 1 deletions

View File

@ -50,7 +50,7 @@ pub mod peripheral;
pub mod peripherals;
pub mod prelude;
#[cfg(not(feature = "riscv-ulp-hal"))]
pub mod reset_reason;
pub mod reset;
#[cfg(not(feature = "riscv-ulp-hal"))]
pub mod rmt;
#[cfg(not(feature = "riscv-ulp-hal"))]

View File

@ -61,3 +61,9 @@ impl ResetReason {
rr.into()
}
}
pub fn restart() {
unsafe {
esp_restart();
}
}