embassy/embassy-nrf/src
bors[bot] b76631bebe
Merge #1069
1069: GPIOTE InputChannel with mutable reference. r=Dirbaio a=Ardelean-Calin

Adding these changes enables us to define a channel using a mutable reference to `GPIOTE_CH(n)`, similar to how we can do with other drivers. So instead of using:
```rust
let p = embassy_nrf::init(config);
let freq_in = InputChannel::new(
    p.GPIOTE_CH0,
    Input::new(&mut p.P0_19, embassy_nrf::gpio::Pull::Up),
    embassy_nrf::gpiote::InputChannelPolarity::HiToLo,
);
```
we can use:
```rust
let p = embassy_nrf::init(config);
let freq_in = InputChannel::new(
    &mut p.GPIOTE_CH0,
    Input::new(&mut p.P0_19, embassy_nrf::gpio::Pull::Up),
    embassy_nrf::gpiote::InputChannelPolarity::HiToLo,
);
```
therefore not giving ownership to GPIOTE_CH0.

Co-authored-by: Ardelean Călin Petru <ardelean.calin@outlook.com>
Co-authored-by: Ardelean Calin <ardelean.calin@proton.me>
2022-11-23 12:17:02 +00:00
..
chips Merge #1056 2022-11-22 21:50:42 +00:00
ppi nrf/ppi: fix unsoundness due to task/event ptrs being public. 2022-08-24 01:54:27 +02:00
buffered_uarte.rs Update Rust nightly. 2022-10-26 16:47:29 +02:00
fmt.rs fmt: Add dunmy use to avoid "unused variable" errors when no log is enabled. 2021-06-07 03:21:37 +02:00
gpio.rs Update embedded-hal versions and explicitly pin 2022-09-29 11:27:46 +02:00
gpiote.rs Review comments. Corrected unused fields. 2022-11-23 14:16:18 +02:00
lib.rs Merge #1056 2022-11-22 21:50:42 +00:00
nvmc.rs nRF documentation warning fixes 2022-08-22 16:37:35 +02:00
pdm.rs add support for pdm microphones in nrf driver 2022-10-13 18:37:53 +02:00
pwm.rs nrf: replace PhantomData usages with PeripheralRef. 2022-07-23 15:13:47 +02:00
qdec.rs Replace futures::future::poll_fn -> core::future::poll_fn. 2022-09-22 16:42:49 +02:00
qspi.rs Replace futures::future::poll_fn -> core::future::poll_fn. 2022-09-22 16:42:49 +02:00
rng.rs Replace futures::future::poll_fn -> core::future::poll_fn. 2022-09-22 16:42:49 +02:00
saadc.rs Replace futures::future::poll_fn -> core::future::poll_fn. 2022-09-22 16:42:49 +02:00
spim.rs Update embedded-hal versions and explicitly pin 2022-09-29 11:27:46 +02:00
spis.rs Fix pin refs 2022-11-22 02:13:03 +01:00
temp.rs Replace futures::future::poll_fn -> core::future::poll_fn. 2022-09-22 16:42:49 +02:00
time_driver.rs Address review feedback 2022-10-24 11:10:59 +03:00
timer.rs Replace futures::future::poll_fn -> core::future::poll_fn. 2022-09-22 16:42:49 +02:00
twim.rs Update embedded-hal versions and explicitly pin 2022-09-29 11:27:46 +02:00
twis.rs Rename write to respond_to_read 2022-11-22 22:10:04 +01:00
uarte.rs Removes some of the code duplication for UarteWithIdle 2022-10-09 13:07:25 +11:00
usb.rs Update usb 2022-10-26 10:39:29 +02:00
util.rs Fix inverted boolean condition 2022-03-08 16:29:42 +01:00
wdt.rs nrf91: support running in both S and NS mode. 2021-10-26 17:40:07 +02:00