Skip to content

Commit 4bff7ce

Browse files
authored
Merge pull request #4779 from 0e4ef622/nrf53-gpiote-fix
nrf: use DETECTMODE_SEC in GPIOTE in secure mode
2 parents 4434dc5 + 75ad068 commit 4bff7ce

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

embassy-nrf/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- changed: apply trimming values from FICR.TRIMCNF on nrf53/54l
1313
- changed: do not panic on BufferedUarte overrun
1414
- added: allow direct access to the input pin of `gpiote::InputChannel`
15+
- bugfix: use DETECTMODE_SEC in GPIOTE in secure mode
1516

1617
## 0.8.0 - 2025-09-30
1718

embassy-nrf/src/gpiote.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ pub(crate) fn init(irq_prio: crate::interrupt::Priority) {
7777

7878
for &p in ports {
7979
// Enable latched detection
80+
#[cfg(feature = "_s")]
81+
p.detectmode_sec().write(|w| w.set_detectmode(Detectmode::LDETECT));
82+
#[cfg(not(feature = "_s"))]
8083
p.detectmode().write(|w| w.set_detectmode(Detectmode::LDETECT));
8184
// Clear latch
8285
p.latch().write(|w| w.0 = 0xFFFFFFFF)

0 commit comments

Comments
 (0)