aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/rcc/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs
index f38d9078d..b6ecc6c18 100644
--- a/embassy-stm32/src/rcc/mod.rs
+++ b/embassy-stm32/src/rcc/mod.rs
@@ -302,6 +302,7 @@ impl RccInfo {
302 increment_stop_refcount(_cs, self.stop_mode); 302 increment_stop_refcount(_cs, self.stop_mode);
303 } 303 }
304 304
305 #[allow(dead_code)]
305 pub(crate) fn increment_stop_refcount(&self) { 306 pub(crate) fn increment_stop_refcount(&self) {
306 critical_section::with(|cs| self.increment_stop_refcount_with_cs(cs)) 307 critical_section::with(|cs| self.increment_stop_refcount_with_cs(cs))
307 } 308 }
@@ -311,6 +312,7 @@ impl RccInfo {
311 decrement_stop_refcount(_cs, self.stop_mode); 312 decrement_stop_refcount(_cs, self.stop_mode);
312 } 313 }
313 314
315 #[allow(dead_code)]
314 pub(crate) fn decrement_stop_refcount(&self) { 316 pub(crate) fn decrement_stop_refcount(&self) {
315 critical_section::with(|cs| self.decrement_stop_refcount_with_cs(cs)) 317 critical_section::with(|cs| self.decrement_stop_refcount_with_cs(cs))
316 } 318 }
@@ -323,6 +325,7 @@ impl RccInfo {
323 }) 325 })
324 } 326 }
325 327
328 #[allow(dead_code)]
326 pub(crate) fn enable_and_reset_without_stop(&self) { 329 pub(crate) fn enable_and_reset_without_stop(&self) {
327 critical_section::with(|cs| self.enable_and_reset_with_cs(cs)) 330 critical_section::with(|cs| self.enable_and_reset_with_cs(cs))
328 } 331 }
@@ -336,6 +339,7 @@ impl RccInfo {
336 } 339 }
337 340
338 // TODO: should this be `unsafe`? 341 // TODO: should this be `unsafe`?
342 #[allow(dead_code)]
339 pub(crate) fn disable_without_stop(&self) { 343 pub(crate) fn disable_without_stop(&self) {
340 critical_section::with(|cs| self.disable_with_cs(cs)) 344 critical_section::with(|cs| self.disable_with_cs(cs))
341 } 345 }