mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
remove api call for reset_reason
the register doesn't seem to work.
This commit is contained in:
parent
7097164b23
commit
1dd514f4be
4 changed files with 0 additions and 25 deletions
|
|
@ -749,10 +749,6 @@ impl ClockManagerImpl {
|
|||
self.iox.set_gpio_pin_value(self.dcdc2_io.0, self.dcdc2_io.1, bao1x_api::IoxValue::Low);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn reset_reason(&self) -> bao1x_api::ResetReason {
|
||||
bao1x_api::ResetReason::new_with_raw_value(self.sysctrl.r(utra::sysctrl::SFR_RCUSRCFR))
|
||||
}
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
|
|
|
|||
|
|
@ -37,5 +37,4 @@ pub enum ClockOp {
|
|||
GetPclk,
|
||||
GetPer,
|
||||
DeepSleep,
|
||||
ResetReason,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -369,20 +369,4 @@ impl ClockManager {
|
|||
_ => unimplemented!(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn reset_reason(&self) -> bao1x_api::ResetReason {
|
||||
match send_message(
|
||||
self.conn,
|
||||
Message::new_blocking_scalar(
|
||||
SusresOp::PlatformSpecific.to_usize().unwrap(),
|
||||
ClockOp::ResetReason.to_usize().unwrap(),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
),
|
||||
) {
|
||||
Ok(xous::Result::Scalar1(reason)) => bao1x_api::ResetReason::new_with_raw_value(reason as u32),
|
||||
_ => unimplemented!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -410,10 +410,6 @@ fn susres_service() {
|
|||
Some(ClockOp::GetPer) => {
|
||||
xous::return_scalar(msg.sender, clk_mgr.perclk as usize).unwrap()
|
||||
}
|
||||
Some(ClockOp::ResetReason) => {
|
||||
xous::return_scalar(msg.sender, clk_mgr.reset_reason().raw_value() as usize)
|
||||
.unwrap()
|
||||
}
|
||||
_ => panic!("Incorrect PlatformOp"),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue