aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-08-22 16:48:08 -0500
committerxoviat <[email protected]>2023-08-22 16:48:08 -0500
commit048bdf6968773a642c60ddcac46958d3a54af7c3 (patch)
treee2329fc645bbe145caf155e3bcfb0f537d16fbac
parent8878ce046c2665eb641f33bc484ca68083d7d353 (diff)
stm32/rtc: allow dead code
-rw-r--r--embassy-stm32/src/rtc/v2.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/rtc/v2.rs b/embassy-stm32/src/rtc/v2.rs
index e9b83123c..53d0161d6 100644
--- a/embassy-stm32/src/rtc/v2.rs
+++ b/embassy-stm32/src/rtc/v2.rs
@@ -72,6 +72,7 @@ impl core::ops::Sub for RtcInstant {
72 } 72 }
73} 73}
74 74
75#[allow(dead_code)]
75#[derive(Clone, Copy)] 76#[derive(Clone, Copy)]
76pub(crate) enum WakeupPrescaler { 77pub(crate) enum WakeupPrescaler {
77 Div2, 78 Div2,
@@ -120,6 +121,7 @@ impl From<WakeupPrescaler> for u32 {
120 } 121 }
121} 122}
122 123
124#[allow(dead_code)]
123impl WakeupPrescaler { 125impl WakeupPrescaler {
124 pub fn compute_min(val: u32) -> Self { 126 pub fn compute_min(val: u32) -> Self {
125 *[ 127 *[