Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 140 additions & 62 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ name = "ecsim"
version = "0.1.0"
authors = ["Jeremy Soller <jeremy@system76.com>"]
edition = "2018"
license = "MIT"

[dependencies]
area8051 = { path = "area8051" }
ctrlc = "3.1.3"
liner = { git = "https://gitlab.redox-os.org/redox-os/liner.git" }
redox_liner = { git = "https://gitlab.redox-os.org/redox-os/liner.git" }

[features]
default = []
Expand Down
2 changes: 1 addition & 1 deletion area8051
Submodule area8051 updated from 1644b6 to 2be60c
2 changes: 2 additions & 0 deletions examples/pmc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

/// Example of resetting KBC - communicates with running ecsim over socket

use std::io;
Expand Down
2 changes: 2 additions & 0 deletions examples/support/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

use std::io;
use std::net::UdpSocket;

Expand Down
4 changes: 3 additions & 1 deletion src/cmd/int.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

use area8051::Isa;

use crate::Ec;
Expand All @@ -8,7 +10,7 @@ pub fn int(ec: &mut Ec, args: &[&str]) {
return;
}

let int = match u8::from_str_radix(&args[0], 10) {
let int = match u8::from_str_radix(args[0], 10) {
Ok(ok) => if ok <= 5 {
ok
} else {
Expand Down
6 changes: 4 additions & 2 deletions src/cmd/kbc.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: MIT

use crate::Ec;

const STATUS_CMD: u8 = 1 << 3;
Expand All @@ -15,7 +17,7 @@ pub fn cmd(ec: &mut Ec, args: &[&str]) {
return;
}

let data = match u8::from_str_radix(&args[0], 16) {
let data = match u8::from_str_radix(args[0], 16) {
Ok(ok) => ok,
Err(err) => {
eprintln!("argument '{}' failed to parse as hex: {}", args[0], err);
Expand Down Expand Up @@ -53,7 +55,7 @@ pub fn write(ec: &mut Ec, args: &[&str]) {
return;
}

let data = match u8::from_str_radix(&args[0], 16) {
let data = match u8::from_str_radix(args[0], 16) {
Ok(ok) => ok,
Err(err) => {
eprintln!("argument '{}' failed to parse as hex: {}", args[0], err);
Expand Down
4 changes: 4 additions & 0 deletions src/cmd/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-License-Identifier: MIT

#![allow(clippy::from_str_radix_10)]

pub mod int;
pub mod kbc;
pub mod pmc;
Loading