aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-10-29 16:50:29 +0100
committerDario Nieuwenhuis <[email protected]>2025-10-29 17:46:18 +0100
commit903e9ce52a43d1eda8eabf100f3c6ab0abaabc48 (patch)
tree6aac275563378937c442b2c7433dc1d37c6eafb1 /embassy-nrf
parent2a363a352a3f38a8cae1ea4d284215a1c9279c16 (diff)
nrf/gpiote: remove logs
Diffstat (limited to 'embassy-nrf')
-rw-r--r--embassy-nrf/src/gpiote.rs13
1 files changed, 0 insertions, 13 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs
index 060950132..54afb9823 100644
--- a/embassy-nrf/src/gpiote.rs
+++ b/embassy-nrf/src/gpiote.rs
@@ -150,7 +150,6 @@ fn GPIOTE1() {
150#[cfg(feature = "rt")] 150#[cfg(feature = "rt")]
151#[interrupt] 151#[interrupt]
152fn GPIOTE() { 152fn GPIOTE() {
153 info!("GPIOTE!");
154 unsafe { handle_gpiote_interrupt(pac::GPIOTE) }; 153 unsafe { handle_gpiote_interrupt(pac::GPIOTE) };
155} 154}
156 155
@@ -158,7 +157,6 @@ fn GPIOTE() {
158#[cfg(feature = "rt")] 157#[cfg(feature = "rt")]
159#[interrupt] 158#[interrupt]
160fn GPIOTE20_0() { 159fn GPIOTE20_0() {
161 info!("GPIOTE20_0!");
162 unsafe { handle_gpiote_interrupt(pac::GPIOTE20) }; 160 unsafe { handle_gpiote_interrupt(pac::GPIOTE20) };
163} 161}
164 162
@@ -166,7 +164,6 @@ fn GPIOTE20_0() {
166#[cfg(feature = "rt")] 164#[cfg(feature = "rt")]
167#[interrupt] 165#[interrupt]
168fn GPIOTE30_0() { 166fn GPIOTE30_0() {
169 info!("GPIOTE30_0!");
170 unsafe { handle_gpiote_interrupt(pac::GPIOTE30) }; 167 unsafe { handle_gpiote_interrupt(pac::GPIOTE30) };
171} 168}
172 169
@@ -174,7 +171,6 @@ fn GPIOTE30_0() {
174#[cfg(feature = "rt")] 171#[cfg(feature = "rt")]
175#[interrupt] 172#[interrupt]
176fn GPIOTE20_1() { 173fn GPIOTE20_1() {
177 info!("GPIOTE20_1!");
178 unsafe { handle_gpiote_interrupt(pac::GPIOTE20) }; 174 unsafe { handle_gpiote_interrupt(pac::GPIOTE20) };
179} 175}
180 176
@@ -182,7 +178,6 @@ fn GPIOTE20_1() {
182#[cfg(feature = "rt")] 178#[cfg(feature = "rt")]
183#[interrupt] 179#[interrupt]
184fn GPIOTE30_1() { 180fn GPIOTE30_1() {
185 info!("GPIOTE30_1!");
186 unsafe { handle_gpiote_interrupt(pac::GPIOTE30) }; 181 unsafe { handle_gpiote_interrupt(pac::GPIOTE30) };
187} 182}
188 183
@@ -190,7 +185,6 @@ unsafe fn handle_gpiote_interrupt(g: pac::gpiote::Gpiote) {
190 for c in 0..CHANNEL_COUNT { 185 for c in 0..CHANNEL_COUNT {
191 let i = c % CHANNELS_PER_PORT; 186 let i = c % CHANNELS_PER_PORT;
192 if g.events_in(i).read() != 0 { 187 if g.events_in(i).read() != 0 {
193 info!("Clear IRQ {} waker {}", INTNUM, c);
194 g.intenclr(INTNUM).write(|w| w.0 = 1 << i); 188 g.intenclr(INTNUM).write(|w| w.0 = 1 << i);
195 CHANNEL_WAKERS[c].wake(); 189 CHANNEL_WAKERS[c].wake();
196 } 190 }
@@ -245,14 +239,9 @@ unsafe fn handle_gpiote_interrupt(g: pac::gpiote::Gpiote) {
245 239
246 #[cfg(not(feature = "_nrf51"))] 240 #[cfg(not(feature = "_nrf51"))]
247 for (port, &p) in ports.iter().enumerate() { 241 for (port, &p) in ports.iter().enumerate() {
248 info!("Interrupt port {}", port);
249 let bits = p.latch().read().0; 242 let bits = p.latch().read().0;
250 for pin in BitIter(bits) { 243 for pin in BitIter(bits) {
251 p.pin_cnf(pin as usize).modify(|w| w.set_sense(Sense::DISABLED)); 244 p.pin_cnf(pin as usize).modify(|w| w.set_sense(Sense::DISABLED));
252
253 let w = port * 32 + pin as usize;
254
255 info!("Interrupt pin {}, waker {}", pin as usize, w);
256 PORT_WAKERS[port * 32 + pin as usize].wake(); 245 PORT_WAKERS[port * 32 + pin as usize].wake();
257 } 246 }
258 p.latch().write(|w| w.0 = bits); 247 p.latch().write(|w| w.0 = bits);
@@ -370,7 +359,6 @@ impl<'d> InputChannel<'d> {
370 g.intenset(INTNUM).write(|w| w.0 = 1 << num); 359 g.intenset(INTNUM).write(|w| w.0 = 1 << num);
371 360
372 poll_fn(|cx| { 361 poll_fn(|cx| {
373 info!("Waiting for channel waker {}", num);
374 CHANNEL_WAKERS[waker].register(cx.waker()); 362 CHANNEL_WAKERS[waker].register(cx.waker());
375 363
376 if g.events_in(num).read() != 0 { 364 if g.events_in(num).read() != 0 {
@@ -545,7 +533,6 @@ impl<'a> Future for PortInputFuture<'a> {
545 type Output = (); 533 type Output = ();
546 534
547 fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { 535 fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
548 info!("register waker on {}", self.pin.port() as usize);
549 PORT_WAKERS[self.pin.pin_port() as usize].register(cx.waker()); 536 PORT_WAKERS[self.pin.pin_port() as usize].register(cx.waker());
550 537
551 if self.pin.conf().read().sense() == Sense::DISABLED { 538 if self.pin.conf().read().sense() == Sense::DISABLED {