diff options
| author | Ulf Lilleengen <[email protected]> | 2025-10-28 13:42:12 +0100 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2025-10-28 13:42:12 +0100 |
| commit | 9d272f8c48ed55c552f847f3e93955888c562040 (patch) | |
| tree | b0b4086228eb03f1f3868501523b6ceb3209dcff /embassy-nrf | |
| parent | e64fc05a91cc78f54c7a2440324d21dee54c0b04 (diff) | |
fix: only set detectmode in secure mode
Diffstat (limited to 'embassy-nrf')
| -rw-r--r-- | embassy-nrf/src/gpiote.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index 626ae892f..060950132 100644 --- a/embassy-nrf/src/gpiote.rs +++ b/embassy-nrf/src/gpiote.rs | |||
| @@ -83,7 +83,7 @@ pub(crate) fn init(irq_prio: crate::interrupt::Priority) { | |||
| 83 | // Enable latched detection | 83 | // Enable latched detection |
| 84 | #[cfg(all(feature = "_s", not(feature = "_nrf54l")))] | 84 | #[cfg(all(feature = "_s", not(feature = "_nrf54l")))] |
| 85 | p.detectmode_sec().write(|w| w.set_detectmode(Detectmode::LDETECT)); | 85 | p.detectmode_sec().write(|w| w.set_detectmode(Detectmode::LDETECT)); |
| 86 | #[cfg(any(not(feature = "_s"), feature = "_nrf54l"))] | 86 | #[cfg(any(not(feature = "_s"), all(feature = "_s", feature = "_nrf54l")))] |
| 87 | p.detectmode().write(|w| w.set_detectmode(Detectmode::LDETECT)); | 87 | p.detectmode().write(|w| w.set_detectmode(Detectmode::LDETECT)); |
| 88 | // Clear latch | 88 | // Clear latch |
| 89 | p.latch().write(|w| w.0 = 0xFFFFFFFF) | 89 | p.latch().write(|w| w.0 = 0xFFFFFFFF) |
