aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/wdt.rs
diff options
context:
space:
mode:
authornerwalt <[email protected]>2024-07-15 13:21:30 -0600
committernerwalt <[email protected]>2024-07-15 13:21:30 -0600
commit8a6cb98e45c45743bc8c8a2b678067d3e1660232 (patch)
tree2cbbb8741539d7b180325f5c78095906ff93ca20 /embassy-nrf/src/wdt.rs
parent4340d74e19bb99e2afdfb97232e8556aca7584b4 (diff)
Adding _nrf91 feature
Combining _nrf9160 and _nrf9120 in many places to reduce cfgs
Diffstat (limited to 'embassy-nrf/src/wdt.rs')
-rw-r--r--embassy-nrf/src/wdt.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-nrf/src/wdt.rs b/embassy-nrf/src/wdt.rs
index 5b3e1e930..5a261ce8f 100644
--- a/embassy-nrf/src/wdt.rs
+++ b/embassy-nrf/src/wdt.rs
@@ -30,9 +30,9 @@ impl Config {
30 pub fn try_new(_wdt: &peripherals::WDT) -> Option<Self> { 30 pub fn try_new(_wdt: &peripherals::WDT) -> Option<Self> {
31 let r = unsafe { &*WDT::ptr() }; 31 let r = unsafe { &*WDT::ptr() };
32 32
33 #[cfg(not(any(feature = "_nrf9160", feature = "_nrf9120")))] 33 #[cfg(not(feature = "_nrf91"))]
34 let runstatus = r.runstatus.read().runstatus().bit(); 34 let runstatus = r.runstatus.read().runstatus().bit();
35 #[cfg(any(feature = "_nrf9160", feature = "_nrf9120"))] 35 #[cfg(feature = "_nrf91")]
36 let runstatus = r.runstatus.read().runstatuswdt().bit(); 36 let runstatus = r.runstatus.read().runstatuswdt().bit();
37 37
38 if runstatus { 38 if runstatus {
@@ -83,9 +83,9 @@ impl Watchdog {
83 let crv = config.timeout_ticks.max(MIN_TICKS); 83 let crv = config.timeout_ticks.max(MIN_TICKS);
84 let rren = (1u32 << N) - 1; 84 let rren = (1u32 << N) - 1;
85 85
86 #[cfg(not(any(feature = "_nrf9160", feature = "_nrf9120")))] 86 #[cfg(not(feature = "_nrf91"))]
87 let runstatus = r.runstatus.read().runstatus().bit(); 87 let runstatus = r.runstatus.read().runstatus().bit();
88 #[cfg(any(feature = "_nrf9160", feature = "_nrf9120"))] 88 #[cfg(feature = "_nrf91")]
89 let runstatus = r.runstatus.read().runstatuswdt().bit(); 89 let runstatus = r.runstatus.read().runstatuswdt().bit();
90 90
91 if runstatus { 91 if runstatus {