Updating dependencies

This commit is contained in:
Ryan Summers 2021-02-03 14:06:09 +01:00
parent 913990d531
commit 9e1a6ec4d5
4 changed files with 24 additions and 19 deletions

14
Cargo.lock generated
View File

@ -1028,6 +1028,16 @@ dependencies = [
"managed", "managed",
] ]
[[package]]
name = "smoltcp-nal"
version = "0.1.0"
source = "git+https://github.com/vertigo-designs/smoltcp-nal.git?branch=main#6a656dd78c5f7543475e95c0eaf81def95fc5a10"
dependencies = [
"embedded-nal",
"heapless",
"smoltcp",
]
[[package]] [[package]]
name = "stabilizer" name = "stabilizer"
version = "0.4.1" version = "0.4.1"
@ -1050,7 +1060,7 @@ dependencies = [
"panic-semihosting", "panic-semihosting",
"paste", "paste",
"serde", "serde",
"smoltcp", "smoltcp-nal",
"stm32h7xx-hal", "stm32h7xx-hal",
] ]
@ -1075,7 +1085,7 @@ dependencies = [
[[package]] [[package]]
name = "stm32h7xx-hal" name = "stm32h7xx-hal"
version = "0.8.0" version = "0.8.0"
source = "git+https://github.com/quartiq/stm32h7xx-hal?branch=rs/smoltcp-update#87a650664beab422b33f1e3d842f8d585ab5fdab" source = "git+https://github.com/stm32-rs/stm32h7xx-hal?branch=dma#2b8a04caac566a8560f400ddd6503508f78bea77"
dependencies = [ dependencies = [
"bare-metal 1.0.0", "bare-metal 1.0.0",
"cast", "cast",

View File

@ -52,15 +52,14 @@ branch = "feature/mqtt-interface"
[dependencies.mcp23017] [dependencies.mcp23017]
git = "https://github.com/mrd0ll4r/mcp23017.git" git = "https://github.com/mrd0ll4r/mcp23017.git"
[dependencies.smoltcp] [dependencies.smoltcp-nal]
version = "0.7" git = "https://github.com/vertigo-designs/smoltcp-nal.git"
features = ["ethernet", "proto-ipv4", "socket-tcp", "proto-ipv6"] branch = "main"
default-features = false
[dependencies.stm32h7xx-hal] [dependencies.stm32h7xx-hal]
features = ["stm32h743v", "rt", "unproven", "ethernet", "quadspi"] features = ["stm32h743v", "rt", "unproven", "ethernet", "quadspi"]
git = "https://github.com/quartiq/stm32h7xx-hal" git = "https://github.com/stm32-rs/stm32h7xx-hal"
branch = "rs/smoltcp-update" branch = "dma"
[features] [features]
semihosting = ["panic-semihosting", "cortex-m-log/semihosting"] semihosting = ["panic-semihosting", "cortex-m-log/semihosting"]

View File

@ -27,13 +27,11 @@ const IIR_CASCADE_LENGTH: usize = 1;
#[derive(Debug, Deserialize, StringSet)] #[derive(Debug, Deserialize, StringSet)]
pub struct Settings { pub struct Settings {
iir: [[iir::IIR; IIR_CASCADE_LENGTH]; 2],
} }
impl Settings { impl Settings {
pub fn new() -> Self { pub fn new() -> Self {
Self { Self {
iir: [[iir::IIR::default(); IIR_CASCADE_LENGTH]; 2],
} }
} }
} }
@ -168,9 +166,9 @@ const APP: () = {
} }
#[task(priority = 1, resources=[mqtt_interface, afes, iir_ch])] #[task(priority = 1, resources=[mqtt_interface, afes, iir_ch])]
fn settings_update(mut c: settings_update::Context) { fn settings_update(c: settings_update::Context) {
let settings = &c.resources.mqtt_interface.settings; let _settings = &c.resources.mqtt_interface.settings;
c.resources.iir_ch.lock(|iir| *iir = settings.iir); //c.resources.iir_ch.lock(|iir| *iir = settings.iir);
// TODO: Update AFEs // TODO: Update AFEs
} }

View File

@ -25,15 +25,13 @@ const SCALE: f32 = i16::MAX as _;
// The number of cascaded IIR biquads per channel. Select 1 or 2! // The number of cascaded IIR biquads per channel. Select 1 or 2!
const IIR_CASCADE_LENGTH: usize = 1; const IIR_CASCADE_LENGTH: usize = 1;
#[derive(Debug, Deserialize, StringSet)] #[derive(Deserialize, StringSet)]
pub struct Settings { pub struct Settings {
iir: [[iir::IIR; IIR_CASCADE_LENGTH]; 2],
} }
impl Settings { impl Settings {
pub fn new() -> Self { pub fn new() -> Self {
Self { Self {
iir: [[iir::IIR::default(); IIR_CASCADE_LENGTH]; 2],
} }
} }
} }
@ -228,9 +226,9 @@ const APP: () = {
} }
#[task(priority = 1, resources=[mqtt_interface, afes, iir_ch])] #[task(priority = 1, resources=[mqtt_interface, afes, iir_ch])]
fn settings_update(mut c: settings_update::Context) { fn settings_update(c: settings_update::Context) {
let settings = &c.resources.mqtt_interface.settings; let _settings = &c.resources.mqtt_interface.settings;
c.resources.iir_ch.lock(|iir| *iir = settings.iir); //c.resources.iir_ch.lock(|iir| *iir = settings.iir);
// TODO: Update AFEs // TODO: Update AFEs
} }