mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
clean up warnings, as much as they make sense to clean up
This commit is contained in:
parent
35353f38dd
commit
d5aef77bdc
3 changed files with 4 additions and 7 deletions
|
|
@ -1,6 +1,3 @@
|
||||||
use xous::{Message, ScalarMessage};
|
|
||||||
use xous_ipc::String;
|
|
||||||
|
|
||||||
/////////////////////// UART TYPE
|
/////////////////////// UART TYPE
|
||||||
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize)]
|
#[derive(Debug, rkyv::Archive, rkyv::Serialize, rkyv::Deserialize)]
|
||||||
pub enum UartType {
|
pub enum UartType {
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
pub mod api;
|
pub mod api;
|
||||||
use api::*;
|
use api::*;
|
||||||
|
|
||||||
use xous::{send_message, Error, CID, Message, msg_scalar_unpack};
|
use xous::{send_message, CID, Message, msg_scalar_unpack};
|
||||||
use xous_ipc::{String, Buffer};
|
use xous_ipc::Buffer;
|
||||||
use num_traits::{ToPrimitive, FromPrimitive};
|
use num_traits::{ToPrimitive, FromPrimitive};
|
||||||
|
|
||||||
// this hooks the responce of the I2C bus
|
// this hooks the responce of the I2C bus
|
||||||
|
|
@ -162,7 +162,7 @@ impl Llio {
|
||||||
Err(xous::Error::InternalError)
|
Err(xous::Error::InternalError)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn hook_usb_callback(&mut self, cb: fn(u32), id: u32, cid: CID) -> Result<(), xous::Error> {
|
pub fn hook_usb_callback(&mut self, id: u32, cid: CID) -> Result<(), xous::Error> {
|
||||||
if self.usb_sid.is_none() {
|
if self.usb_sid.is_none() {
|
||||||
let sid = xous::create_server().unwrap();
|
let sid = xous::create_server().unwrap();
|
||||||
self.usb_sid = Some(sid);
|
self.usb_sid = Some(sid);
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ use i2c::*;
|
||||||
use log::{error, info};
|
use log::{error, info};
|
||||||
|
|
||||||
use num_traits::FromPrimitive;
|
use num_traits::FromPrimitive;
|
||||||
use xous_ipc::{String, Buffer};
|
use xous_ipc::Buffer;
|
||||||
use xous::{CID, msg_scalar_unpack, msg_blocking_scalar_unpack};
|
use xous::{CID, msg_scalar_unpack, msg_blocking_scalar_unpack};
|
||||||
|
|
||||||
#[cfg(target_os = "none")]
|
#[cfg(target_os = "none")]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue