diff options
Diffstat (limited to 'embassy-rp/src/gpio.rs')
| -rw-r--r-- | embassy-rp/src/gpio.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index f79bf8948..154fc1585 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs | |||
| @@ -5,13 +5,13 @@ use core::future::Future; | |||
| 5 | use core::pin::Pin as FuturePin; | 5 | use core::pin::Pin as FuturePin; |
| 6 | use core::task::{Context, Poll}; | 6 | use core::task::{Context, Poll}; |
| 7 | 7 | ||
| 8 | use embassy_hal_internal::{impl_peripheral, Peri, PeripheralType}; | 8 | use embassy_hal_internal::{Peri, PeripheralType, impl_peripheral}; |
| 9 | use embassy_sync::waitqueue::AtomicWaker; | 9 | use embassy_sync::waitqueue::AtomicWaker; |
| 10 | 10 | ||
| 11 | use crate::interrupt::InterruptExt; | 11 | use crate::interrupt::InterruptExt; |
| 12 | use crate::pac::common::{Reg, RW}; | ||
| 13 | use crate::pac::SIO; | 12 | use crate::pac::SIO; |
| 14 | use crate::{interrupt, pac, peripherals, RegExt}; | 13 | use crate::pac::common::{RW, Reg}; |
| 14 | use crate::{RegExt, interrupt, pac, peripherals}; | ||
| 15 | 15 | ||
| 16 | #[cfg(any(feature = "rp2040", feature = "rp235xa"))] | 16 | #[cfg(any(feature = "rp2040", feature = "rp235xa"))] |
| 17 | pub(crate) const BANK0_PIN_COUNT: usize = 30; | 17 | pub(crate) const BANK0_PIN_COUNT: usize = 30; |
| @@ -300,7 +300,7 @@ impl<'d> InputFuture<'d> { | |||
| 300 | 300 | ||
| 301 | // Each INTR register is divided into 8 groups, one group for each | 301 | // Each INTR register is divided into 8 groups, one group for each |
| 302 | // pin, and each group consists of LEVEL_LOW, LEVEL_HIGH, EDGE_LOW, | 302 | // pin, and each group consists of LEVEL_LOW, LEVEL_HIGH, EDGE_LOW, |
| 303 | // and EGDE_HIGH. | 303 | // and EDGE_HIGH. |
| 304 | pin.int_proc() | 304 | pin.int_proc() |
| 305 | .inte((pin.pin() / 8) as usize) | 305 | .inte((pin.pin() / 8) as usize) |
| 306 | .write_set(|w| match level { | 306 | .write_set(|w| match level { |
