mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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 cramium_api::*;
|
||||||
use xous_ipc::Buffer;
|
use xous_ipc::Buffer;
|
||||||
|
|
||||||
use crate::api::HalOpcode;
|
|
||||||
|
|
||||||
pub struct I2c {
|
pub struct I2c {
|
||||||
conn: xous::CID,
|
conn: xous::CID,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
mod api;
|
mod api;
|
||||||
mod hw;
|
mod hw;
|
||||||
|
|
||||||
use api::*;
|
|
||||||
use bitfield::*;
|
use bitfield::*;
|
||||||
use cramium_api::*;
|
use cramium_api::*;
|
||||||
use cramium_hal::{iox::Iox, udma::GlobalConfig};
|
use cramium_hal::{iox::Iox, udma::GlobalConfig};
|
||||||
|
|
@ -312,8 +311,7 @@ fn main() {
|
||||||
loop {
|
loop {
|
||||||
xous::reply_and_receive_next(sid, &mut msg_opt).unwrap();
|
xous::reply_and_receive_next(sid, &mut msg_opt).unwrap();
|
||||||
let msg = msg_opt.as_mut().unwrap();
|
let msg = msg_opt.as_mut().unwrap();
|
||||||
let opcode =
|
let opcode = num_traits::FromPrimitive::from_usize(msg.body.id()).unwrap_or(HalOpcode::InvalidCall);
|
||||||
num_traits::FromPrimitive::from_usize(msg.body.id()).unwrap_or(api::HalOpcode::InvalidCall);
|
|
||||||
log::debug!("{:?}", opcode);
|
log::debug!("{:?}", opcode);
|
||||||
match opcode {
|
match opcode {
|
||||||
HalOpcode::MapIfram => {
|
HalOpcode::MapIfram => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue