mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-28 12:51:04 +00:00
restart method
This commit is contained in:
parent
5d463c8c1d
commit
341fc871d7
@ -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"))]
|
||||
|
@ -61,3 +61,9 @@ impl ResetReason {
|
||||
rr.into()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn restart() {
|
||||
unsafe {
|
||||
esp_restart();
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user