diff --git a/Cargo.lock b/Cargo.lock index ea10540..f50adc6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -294,7 +294,7 @@ dependencies = [ "serde 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)", "serde-json-core 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "smoltcp 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "stm32h7 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "stm32h7 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -304,7 +304,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "stm32h7" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bare-metal 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -383,7 +383,7 @@ dependencies = [ "checksum serde_derive 1.0.104 (registry+https://github.com/rust-lang/crates.io-index)" = "128f9e303a5a29922045a830221b8f78ec74a5f544944f3d5984f8ec3895ef64" "checksum smoltcp 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0fe46639fd2ec79eadf8fe719f237a7a0bd4dac5d957f1ca5bbdbc1c3c39e53a" "checksum stable_deref_trait 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "dba1a27d3efae4351c8051072d619e3ade2820635c3958d826bfea39d59b54c8" -"checksum stm32h7 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6fd678579307324f1890552fe644331ce0a46607f2466aac8609f782d9b26524" +"checksum stm32h7 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e5b0045066e082648e8a7ab1dd45c92efa8d7bec2beedf72ac7b62563911f82a" "checksum syn 1.0.14 (registry+https://github.com/rust-lang/crates.io-index)" = "af6f3550d8dff9ef7dc34d384ac6f107e5d31c8f57d9f28e0081503f547ac8f5" "checksum typenum 1.11.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6d2783fe2d6b8c1101136184eb41be8b1ad379e4657050b8aaff0c79ee7575f9" "checksum unicode-xid 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "826e7639553986605ec5979c7dd957c7895e93eabed50ab2ffa7f6128a75097c" diff --git a/Cargo.toml b/Cargo.toml index 5852a7d..c62c914 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ panic-halt = "0.2" serde = { version = "1.0", features = ["derive"], default-features = false } heapless = "0.5" serde-json-core = "0.1" -stm32h7 = { version = "0.9", features = ["stm32h743", "rt"] } +stm32h7 = { version = "0.10", features = ["stm32h743", "rt"] } cortex-m-rtfm = "0.5" smoltcp = { version = "0.6", features = ["ethernet", "proto-ipv4", "socket-tcp"], default-features = false } diff --git a/src/board.rs b/src/board.rs index 993ebe7..a7e1a71 100644 --- a/src/board.rs +++ b/src/board.rs @@ -466,7 +466,7 @@ fn dma1_setup( dma1.st[0].par.write(|w| unsafe { w.bits(pa0 as u32) }); dma1.st[0].m0ar.write(|w| unsafe { w.bits(ma as u32) }); - dma1.st[0].ndtr.write(|w| unsafe { w.ndt().bits(1) }); + dma1.st[0].ndtr.write(|w| w.ndt().bits(1)); dmamux1.ccr[0].modify(|_, w| w.dmareq_id().tim2_up()); dma1.st[0].cr.modify(|_, w| unsafe { w.pl() @@ -500,7 +500,7 @@ fn dma1_setup( dma1.st[1].par.write(|w| unsafe { w.bits(pa1 as u32) }); dma1.st[1].m0ar.write(|w| unsafe { w.bits(ma as u32) }); - dma1.st[1].ndtr.write(|w| unsafe { w.ndt().bits(1) }); + dma1.st[1].ndtr.write(|w| w.ndt().bits(1)); dmamux1.ccr[1].modify(|_, w| w.dmareq_id().tim2_up()); dma1.st[1].cr.modify(|_, w| unsafe { w.pl()