diff --git a/.gitignore b/.gitignore index 265b7f5..98097d7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -/target +**/target .gdb_history diff --git a/Cargo.lock b/Cargo.lock index 014b427..f3ace36 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -185,6 +185,13 @@ dependencies = [ "cortex-m", ] +[[package]] +name = "dsp" +version = "0.1.0" +dependencies = [ + "serde", +] + [[package]] name = "embedded-hal" version = "0.2.4" @@ -457,6 +464,7 @@ dependencies = [ "cortex-m-log", "cortex-m-rt", "cortex-m-rtic", + "dsp", "embedded-hal", "enum-iterator", "heapless", diff --git a/Cargo.toml b/Cargo.toml index a57745e..886f041 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -40,6 +40,7 @@ embedded-hal = "0.2.4" nb = "1.0.0" asm-delay = "0.9.0" enum-iterator = "0.6.0" +dsp = { path = "dsp", version = "0.1.0" } [dependencies.mcp23017] git = "https://github.com/mrd0ll4r/mcp23017.git" diff --git a/dsp/Cargo.lock b/dsp/Cargo.lock new file mode 100644 index 0000000..afad0c4 --- /dev/null +++ b/dsp/Cargo.lock @@ -0,0 +1,63 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "dsp" +version = "0.1.0" +dependencies = [ + "serde", +] + +[[package]] +name = "proc-macro2" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "quote" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "serde" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "syn" +version = "1.0.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "443b4178719c5a851e1bde36ce12da21d74a0e60b4d982ec3385a933c812f0f6" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "unicode-xid" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" diff --git a/dsp/Cargo.toml b/dsp/Cargo.toml new file mode 100644 index 0000000..a9b7fe5 --- /dev/null +++ b/dsp/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "dsp" +version = "0.1.0" +authors = ["Robert Jördens "] +edition = "2018" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +serde = { version = "1.0", features = ["derive"], default-features = false } diff --git a/src/iir.rs b/dsp/src/iir.rs similarity index 100% rename from src/iir.rs rename to dsp/src/iir.rs diff --git a/dsp/src/lib.rs b/dsp/src/lib.rs new file mode 100644 index 0000000..3c44bbc --- /dev/null +++ b/dsp/src/lib.rs @@ -0,0 +1,3 @@ +#![no_std] + +pub mod iir; diff --git a/src/main.rs b/src/main.rs index a7d3d73..4c945e5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -54,10 +54,11 @@ static mut DES_RING: ethernet::DesRing = ethernet::DesRing::new(); mod afe; mod eeprom; -mod iir; mod pounder; mod server; +use dsp::iir; + #[cfg(not(feature = "semihosting"))] fn init_log() {}