mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
clean up hosted mode warnings
This commit is contained in:
parent
313f12acbb
commit
e62256b3df
6 changed files with 13 additions and 10 deletions
|
|
@ -6,6 +6,7 @@ use core::fmt::{Error, Write};
|
||||||
#[cfg(baremetal)]
|
#[cfg(baremetal)]
|
||||||
use utralib::generated::*;
|
use utralib::generated::*;
|
||||||
|
|
||||||
|
#[allow(dead_code)] // this is unused in hosted mode, kill the warning
|
||||||
static mut INITIALIZED: bool = false;
|
static mut INITIALIZED: bool = false;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
||||||
|
|
@ -816,7 +816,7 @@ impl SystemServices {
|
||||||
"\n\r KERNEL({},{}): Activating process {} thread {}",
|
"\n\r KERNEL({},{}): Activating process {} thread {}",
|
||||||
previous_pid, previous_tid, new_pid, new_tid
|
previous_pid, previous_tid, new_pid, new_tid
|
||||||
);
|
);
|
||||||
ArchProcess::with_current(|current| current.print_thread());
|
//ArchProcess::with_current(|current| current.print_thread());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save state if the PID has changed. This will activate the new memory
|
// Save state if the PID has changed. This will activate the new memory
|
||||||
|
|
|
||||||
|
|
@ -178,9 +178,8 @@ mod implementation {
|
||||||
use crate::WorkRequest;
|
use crate::WorkRequest;
|
||||||
use com_rs_ref as com_rs;
|
use com_rs_ref as com_rs;
|
||||||
use com_rs::*;
|
use com_rs::*;
|
||||||
use log::{error, info};
|
use log::error;
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
use heapless::Vec;
|
use heapless::Vec;
|
||||||
use heapless::consts::*;
|
use heapless::consts::*;
|
||||||
|
|
||||||
|
|
@ -201,7 +200,7 @@ mod implementation {
|
||||||
0xDEAD as u16
|
0xDEAD as u16
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn wait_txrx(&mut self, tx: u16, timeout: Option<u32>) -> u16 {
|
pub fn wait_txrx(&mut self, _tx: u16, _timeout: Option<u32>) -> u16 {
|
||||||
0xDEAD as u16
|
0xDEAD as u16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ use xous::buffer;
|
||||||
use rkyv::{archived_value, Write};
|
use rkyv::{archived_value, Write};
|
||||||
|
|
||||||
/// Compute the dvorak key mapping of row/col to key tuples
|
/// Compute the dvorak key mapping of row/col to key tuples
|
||||||
|
#[allow(dead_code)]
|
||||||
fn map_dvorak(code: RowCol) -> ScanCode {
|
fn map_dvorak(code: RowCol) -> ScanCode {
|
||||||
let rc = (code.r, code.c);
|
let rc = (code.r, code.c);
|
||||||
|
|
||||||
|
|
@ -93,6 +94,7 @@ fn map_dvorak(code: RowCol) -> ScanCode {
|
||||||
|
|
||||||
|
|
||||||
/// Compute the dvorak key mapping of row/col to key tuples
|
/// Compute the dvorak key mapping of row/col to key tuples
|
||||||
|
#[allow(dead_code)]
|
||||||
fn map_qwerty(code: RowCol) -> ScanCode {
|
fn map_qwerty(code: RowCol) -> ScanCode {
|
||||||
let rc = (code.r, code.c);
|
let rc = (code.r, code.c);
|
||||||
|
|
||||||
|
|
@ -743,9 +745,10 @@ mod implementation {
|
||||||
use heapless::Vec;
|
use heapless::Vec;
|
||||||
use heapless::consts::*;
|
use heapless::consts::*;
|
||||||
use crate::api::*;
|
use crate::api::*;
|
||||||
use crate::{map_dvorak, map_qwerty};
|
//use crate::{map_dvorak, map_qwerty};
|
||||||
use log::{error, info};
|
//use log::{error, info};
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct Keyboard {
|
pub struct Keyboard {
|
||||||
map: KeyMap,
|
map: KeyMap,
|
||||||
rate: u32,
|
rate: u32,
|
||||||
|
|
|
||||||
|
|
@ -110,8 +110,7 @@ mod implementation {
|
||||||
// a stub to try to avoid breaking hosted mode for as long as possible.
|
// a stub to try to avoid breaking hosted mode for as long as possible.
|
||||||
#[cfg(not(target_os = "none"))]
|
#[cfg(not(target_os = "none"))]
|
||||||
mod implementation {
|
mod implementation {
|
||||||
use crate::api::*;
|
use log::info;
|
||||||
use log::{error, info};
|
|
||||||
|
|
||||||
pub struct Trng {
|
pub struct Trng {
|
||||||
seed: u32,
|
seed: u32,
|
||||||
|
|
@ -131,6 +130,7 @@ mod implementation {
|
||||||
lfsr
|
lfsr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn wait_full(&self) { }
|
pub fn wait_full(&self) { }
|
||||||
|
|
||||||
pub fn get_trng(&mut self, _count: usize) -> [u32; 2] {
|
pub fn get_trng(&mut self, _count: usize) -> [u32; 2] {
|
||||||
|
|
|
||||||
|
|
@ -192,8 +192,8 @@ fn run(debug: bool) -> Result<(), DynError> {
|
||||||
let init = [
|
let init = [
|
||||||
//"shell",
|
//"shell",
|
||||||
"gam",
|
"gam",
|
||||||
"ime-frontend",
|
//"ime-frontend",
|
||||||
"ime-plugin-shell",
|
//"ime-plugin-shell",
|
||||||
//"benchmark",
|
//"benchmark",
|
||||||
//"benchmark-target",
|
//"benchmark-target",
|
||||||
"log-server",
|
"log-server",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue