diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-07-05 03:24:36 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-05 03:24:36 +0200 |
| commit | ed83b93b6dd34cf09d1f772ec32ebd036e8798a7 (patch) | |
| tree | 76ec36764d49225112056f8e3ef38d40ad5f7cde /embassy-nrf/src | |
| parent | fd38e789572c044e7d26d26379fa00f2adefdb03 (diff) | |
| parent | ecc151d4e28394ed2dcec466e86ea1880095f9aa (diff) | |
Merge pull request #276 from embassy-rs/deny-warnings
Deny warnings in CI
Diffstat (limited to 'embassy-nrf/src')
| -rw-r--r-- | embassy-nrf/src/gpiote.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs index 2ef26e36a..54d3dd012 100644 --- a/embassy-nrf/src/gpiote.rs +++ b/embassy-nrf/src/gpiote.rs | |||
| @@ -10,7 +10,7 @@ use embedded_hal::digital::v2::{InputPin, StatefulOutputPin}; | |||
| 10 | use futures::future::poll_fn; | 10 | use futures::future::poll_fn; |
| 11 | 11 | ||
| 12 | use crate::gpio::sealed::Pin as _; | 12 | use crate::gpio::sealed::Pin as _; |
| 13 | use crate::gpio::{AnyPin, Input, Output, Pin as GpioPin, Port}; | 13 | use crate::gpio::{AnyPin, Input, Output, Pin as GpioPin}; |
| 14 | use crate::pac; | 14 | use crate::pac; |
| 15 | use crate::ppi::{Event, Task}; | 15 | use crate::ppi::{Event, Task}; |
| 16 | use crate::{interrupt, peripherals}; | 16 | use crate::{interrupt, peripherals}; |
| @@ -140,8 +140,8 @@ impl<'d, C: Channel, T: GpioPin> InputChannel<'d, C, T> { | |||
| 140 | }; | 140 | }; |
| 141 | #[cfg(any(feature = "nrf52833", feature = "nrf52840"))] | 141 | #[cfg(any(feature = "nrf52833", feature = "nrf52840"))] |
| 142 | w.port().bit(match pin.pin.port() { | 142 | w.port().bit(match pin.pin.port() { |
| 143 | Port::Port0 => false, | 143 | crate::gpio::Port::Port0 => false, |
| 144 | Port::Port1 => true, | 144 | crate::gpio::Port::Port1 => true, |
| 145 | }); | 145 | }); |
| 146 | unsafe { w.psel().bits(pin.pin.pin()) } | 146 | unsafe { w.psel().bits(pin.pin.pin()) } |
| 147 | }); | 147 | }); |
| @@ -223,8 +223,8 @@ impl<'d, C: Channel, T: GpioPin> OutputChannel<'d, C, T> { | |||
| 223 | }; | 223 | }; |
| 224 | #[cfg(any(feature = "nrf52833", feature = "nrf52840"))] | 224 | #[cfg(any(feature = "nrf52833", feature = "nrf52840"))] |
| 225 | w.port().bit(match pin.pin.port() { | 225 | w.port().bit(match pin.pin.port() { |
| 226 | Port::Port0 => false, | 226 | crate::gpio::Port::Port0 => false, |
| 227 | Port::Port1 => true, | 227 | crate::gpio::Port::Port1 => true, |
| 228 | }); | 228 | }); |
| 229 | unsafe { w.psel().bits(pin.pin.pin()) } | 229 | unsafe { w.psel().bits(pin.pin.pin()) } |
| 230 | }); | 230 | }); |
