mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
cleanup api changes related to opcode call renaming
This commit is contained in:
parent
81a9355ef8
commit
2172046424
2 changed files with 1 additions and 5 deletions
|
|
@ -3,8 +3,6 @@ use core::sync::atomic::{AtomicU32, Ordering};
|
|||
use cramium_api::*;
|
||||
use xous_ipc::Buffer;
|
||||
|
||||
use crate::api::HalOpcode;
|
||||
|
||||
pub struct I2c {
|
||||
conn: xous::CID,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
mod api;
|
||||
mod hw;
|
||||
|
||||
use api::*;
|
||||
use bitfield::*;
|
||||
use cramium_api::*;
|
||||
use cramium_hal::{iox::Iox, udma::GlobalConfig};
|
||||
|
|
@ -312,8 +311,7 @@ fn main() {
|
|||
loop {
|
||||
xous::reply_and_receive_next(sid, &mut msg_opt).unwrap();
|
||||
let msg = msg_opt.as_mut().unwrap();
|
||||
let opcode =
|
||||
num_traits::FromPrimitive::from_usize(msg.body.id()).unwrap_or(api::HalOpcode::InvalidCall);
|
||||
let opcode = num_traits::FromPrimitive::from_usize(msg.body.id()).unwrap_or(HalOpcode::InvalidCall);
|
||||
log::debug!("{:?}", opcode);
|
||||
match opcode {
|
||||
HalOpcode::MapIfram => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue