aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2025-10-24 06:28:07 +0000
committerGitHub <[email protected]>2025-10-24 06:28:07 +0000
commit4434dc5712f93e5f67852cd07a216cc33ff8f79d (patch)
treecdcafb4459b25081c092777150a732107def3574 /embassy-nrf/src
parent280088946f9da3ea3c1ece4f7e73d585fc681893 (diff)
parent836d491a37094439f8bf3da3ceae075c8dbc221c (diff)
Merge pull request #4780 from de-vri-es/nrf-gpiote-pin-acess
embassy-nrf: allow direct access to the `gpiote::InputChannel` input pin
Diffstat (limited to 'embassy-nrf/src')
-rw-r--r--embassy-nrf/src/gpiote.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs
index a490d5b60..61162b87f 100644
--- a/embassy-nrf/src/gpiote.rs
+++ b/embassy-nrf/src/gpiote.rs
@@ -259,6 +259,11 @@ impl<'d> InputChannel<'d> {
259 .await; 259 .await;
260 } 260 }
261 261
262 /// Get the associated input pin.
263 pub fn pin(&self) -> &Input<'_> {
264 &self.pin
265 }
266
262 /// Returns the IN event, for use with PPI. 267 /// Returns the IN event, for use with PPI.
263 pub fn event_in(&self) -> Event<'d> { 268 pub fn event_in(&self) -> Event<'d> {
264 let g = regs(); 269 let g = regs();