summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob McWhirter <bmcwhirt@redhat.com>2021-08-03 14:12:11 -0400
committerBob McWhirter <bmcwhirt@redhat.com>2021-08-03 14:12:11 -0400
commit88c11a653ca6d9db35c2ad27f253aaa9fa9ae921 (patch)
tree7cc3566a730dc74f55b8379290909e5c844c6900
parentd7409d63e8fc2b69430c769c7090681cea901141 (diff)
downloadembassy-88c11a653ca6d9db35c2ad27f253aaa9fa9ae921.zip
Formatting fixes.
-rw-r--r--embassy-stm32/src/rcc/h7/mod.rs31
-rw-r--r--examples/stm32h7/Cargo.toml2
2 files changed, 15 insertions, 18 deletions
diff --git a/embassy-stm32/src/rcc/h7/mod.rs b/embassy-stm32/src/rcc/h7/mod.rs
index ee0ba5a3..70632f28 100644
--- a/embassy-stm32/src/rcc/h7/mod.rs
+++ b/embassy-stm32/src/rcc/h7/mod.rs
@@ -71,81 +71,80 @@ pub struct Config {
}
impl Config {
- pub fn sys_ck<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn sys_ck<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.sys_ck = Some(freq.into());
self
}
- pub fn per_ck<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn per_ck<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.per_ck = Some(freq.into());
self
}
- pub fn pclk1<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pclk1<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pclk1 = Some(freq.into());
self
}
- pub fn pclk2<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pclk2<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pclk2 = Some(freq.into());
self
}
- pub fn pclk3<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pclk3<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pclk3 = Some(freq.into());
self
}
- pub fn pclk4<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pclk4<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pclk4 = Some(freq.into());
self
}
- pub fn pll1_p<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll1_p<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll1.p_ck = Some(freq.into());
self
}
- pub fn pll1_q<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll1_q<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll1.q_ck = Some(freq.into());
self
}
- pub fn pll1_r<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll1_r<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll1.r_ck = Some(freq.into());
self
}
- pub fn pll2_p<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll2_p<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll2.p_ck = Some(freq.into());
self
}
- pub fn pll2_q<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll2_q<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll2.q_ck = Some(freq.into());
self
}
- pub fn pll2_r<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll2_r<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll2.r_ck = Some(freq.into());
self
}
- pub fn pll3_p<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll3_p<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll3.p_ck = Some(freq.into());
self
}
- pub fn pll3_q<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll3_q<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll3.q_ck = Some(freq.into());
self
}
- pub fn pll3_r<T:Into<Hertz>>(mut self, freq: T) -> Self {
+ pub fn pll3_r<T: Into<Hertz>>(mut self, freq: T) -> Self {
self.pll3.r_ck = Some(freq.into());
self
}
-
}
pub struct Rcc<'d> {
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml
index f313960f..0868be75 100644
--- a/examples/stm32h7/Cargo.toml
+++ b/examples/stm32h7/Cargo.toml
@@ -24,8 +24,6 @@ embassy-hal-common = {version = "0.1.0", path = "../../embassy-hal-common" }
embassy-net = { path = "../../embassy-net", default-features = false, features = ["defmt-debug", "defmt", "tcp", "medium-ethernet", "pool-16"] }
stm32-metapac = { path = "../../stm32-metapac", features = ["stm32h743zi"] }
embassy-macros = { path = "../../embassy-macros" }
-#stm32h7 = { version = "0.13", features = ["stm32h743"]}
-#stm32h7xx-hal = { version = "0.9.0", features = ["stm32h743"] }
defmt = "0.2.0"
defmt-rtt = "0.2.0"