aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32
diff options
context:
space:
mode:
authorChris Storah <[email protected]>2025-07-23 12:38:58 +1000
committerChris Storah <[email protected]>2025-07-23 12:38:58 +1000
commite64c23076d2c003efe60419eab6b86630d7886b4 (patch)
tree96458b028c508e4b22f6094c6213bea0a82e54b7 /embassy-stm32
parent26232778e69bdfddcd1df0747b7414ef936e3ea2 (diff)
Updated version of stm32-data and added c071 and c051 into ci.sh
Diffstat (limited to 'embassy-stm32')
-rw-r--r--embassy-stm32/Cargo.toml4
-rw-r--r--embassy-stm32/src/rcc/c0.rs11
2 files changed, 4 insertions, 11 deletions
diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml
index 248639385..8f3a471af 100644
--- a/embassy-stm32/Cargo.toml
+++ b/embassy-stm32/Cargo.toml
@@ -81,7 +81,7 @@ futures-util = { version = "0.3.30", default-features = false }
81sdio-host = "0.9.0" 81sdio-host = "0.9.0"
82critical-section = "1.1" 82critical-section = "1.1"
83#stm32-metapac = { version = "16" } 83#stm32-metapac = { version = "16" }
84stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-dded8a33a460ae0eb182aee3ccb048beb659982b" } 84stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-9fc86ca7b3a8bc05182bf1ce3045602df1f5dce3" }
85 85
86vcell = "0.1.3" 86vcell = "0.1.3"
87nb = "1.0.0" 87nb = "1.0.0"
@@ -110,7 +110,7 @@ proc-macro2 = "1.0.36"
110quote = "1.0.15" 110quote = "1.0.15"
111 111
112#stm32-metapac = { version = "16", default-features = false, features = ["metadata"]} 112#stm32-metapac = { version = "16", default-features = false, features = ["metadata"]}
113stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-dded8a33a460ae0eb182aee3ccb048beb659982b", default-features = false, features = ["metadata"] } 113stm32-metapac = { git = "https://github.com/embassy-rs/stm32-data-generated", tag = "stm32-data-9fc86ca7b3a8bc05182bf1ce3045602df1f5dce3", default-features = false, features = ["metadata"] }
114 114
115[features] 115[features]
116default = ["rt"] 116default = ["rt"]
diff --git a/embassy-stm32/src/rcc/c0.rs b/embassy-stm32/src/rcc/c0.rs
index d44914719..b9773d1af 100644
--- a/embassy-stm32/src/rcc/c0.rs
+++ b/embassy-stm32/src/rcc/c0.rs
@@ -187,20 +187,13 @@ pub(crate) unsafe fn init(config: Config) {
187 hse: hse, 187 hse: hse,
188 rtc: rtc, 188 rtc: rtc,
189 189
190 #[cfg(any(stm32c071))]
191 hsi48: hsi,
192
193 // TODO 190 // TODO
194 lsi: None, 191 lsi: None,
195 lse: None, 192 lse: None,
193 hsi48: None,
196 ); 194 );
197 195
198 #[cfg(not(any(stm32c071)))] 196 RCC.ccipr().modify(|w| w.set_adc1sel(stm32_metapac::rcc::vals::Adcsel::SYS));
199 let r = RCC.ccipr();
200 #[cfg(any(stm32c071))]
201 let r = RCC.ccipr1();
202
203 r.modify(|w| w.set_adc1sel(stm32_metapac::rcc::vals::Adcsel::SYS));
204} 197}
205 198
206mod max { 199mod max {