mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
enhance com debugging
This commit is contained in:
parent
f6349aada3
commit
b83c75bbf0
1 changed files with 3 additions and 2 deletions
|
|
@ -425,8 +425,9 @@ fn main() -> ! {
|
||||||
trace!("starting main loop");
|
trace!("starting main loop");
|
||||||
loop {
|
loop {
|
||||||
let mut msg = xous::receive_message(com_sid).unwrap();
|
let mut msg = xous::receive_message(com_sid).unwrap();
|
||||||
trace!("Message: {:?}", msg);
|
let opcode: Option<Opcode> = FromPrimitive::from_usize(msg.body.id());
|
||||||
match FromPrimitive::from_usize(msg.body.id()) {
|
log::debug!("{:?}", opcode);
|
||||||
|
match opcode {
|
||||||
Some(Opcode::SuspendResume) => xous::msg_scalar_unpack!(msg, token, _, _, _, {
|
Some(Opcode::SuspendResume) => xous::msg_scalar_unpack!(msg, token, _, _, _, {
|
||||||
com.txrx(ComState::LINK_SET_INTMASK.verb);
|
com.txrx(ComState::LINK_SET_INTMASK.verb);
|
||||||
com.txrx(0); // suppress interrupts on suspend
|
com.txrx(0); // suppress interrupts on suspend
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue