aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/gpiote.rs
Commit message (Collapse)AuthorAgeFilesLines
* fix: use correct pin count for the nrf54 chip familyoddlama2025-12-161-9/+6
|
* feat: add nRF54LM20A supportHaobo Gu2025-12-081-2/+6
| | | | Signed-off-by: Haobo Gu <[email protected]>
* embassy-nrf: add gpiote::InputChannel::wait_for_high/low()Maarten de Vries2025-10-301-6/+62
| | | | | Also catch GPIOTE events directly when wait() is called, even before polling the future.
* Merge pull request #4801 from embassy-rs/nrf54-fixesUlf Lilleengen2025-10-301-2/+0
|\ | | | | | | nrf54 improvements and fixes
| * fix: allow compiling without gpiote for nrf54Ulf Lilleengen2025-10-291-2/+0
| |
* | nrf/gpiote: remove logsDario Nieuwenhuis2025-10-291-13/+0
|/
* fix: only set detectmode in secure modeUlf Lilleengen2025-10-281-1/+1
|
* chore: make it clear which gpiotec for a channelUlf Lilleengen2025-10-281-13/+13
|
* feat: improve nrf54 support using new nrf-pacUlf Lilleengen2025-10-281-88/+343
| | | | | | | | | | | | | * Update nrf-pac to version that modifies nrf52 register layout to match nrf54 to reduce the amount of cfg needed for nrf54 support. * Make the following peripherals available on nrf54: twim, twis, spim, spis, uart, buffered uarte, dppi, gpiote, pwm, saadc * Add examples tested on the nrf54 dk Some code is based on or copied from other pull requests, modified to match the new nrf-pac layout. Co-authored-by: Dmitry Tarnyagin <[email protected]>
* nrf: use DETECTMODE_SEC in GPIOTE in secure modeMatthew Tran2025-10-241-0/+3
| | | | DETECTMODE only applies to pins assigned to non-secure.
* embassy-nrf: allow direct access to the `gpiote::InputChannel` input pinMaarten de Vries2025-10-231-0/+5
|
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-2/+2
|
* nrf: add persist() method for gpiote and timerMatthew Tran2025-09-211-0/+18
|
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-31/+18
|
* Use inline const for initializing arrays. (#3567)Dario Nieuwenhuis2024-11-241-3/+2
|
* nrf: port to chiptool-based `nrf-pac`.Dario Nieuwenhuis2024-11-041-70/+75
|
* Adding _nrf91 featurenerwalt2024-07-151-1/+0
| | | | Combining _nrf9160 and _nrf9120 in many places to reduce cfgs
* Connecting GPIOTE interruptsnerwalt2024-07-151-5/+5
|
* Putting never used/constucted items behind feature flagnerwalt2024-07-151-2/+3
|
* Adding support for 9120nerwalt2024-06-281-4/+4
|
* nrf/gpiote: fix port1 on nrf5340Dario Nieuwenhuis2024-06-251-8/+8
|
* nrf: remove mod sealed.Dario Nieuwenhuis2024-04-051-8/+6
|
* Fix warnings in recent nightly.Dario Nieuwenhuis2024-03-201-0/+2
|
* nrf/gpiote: add support for nrf51.Dario Nieuwenhuis2024-02-041-13/+45
|
* nrf/gpio: remove generics.Dario Nieuwenhuis2024-01-221-22/+31
|
* Change GPIO inherent methods back to `&self`.Dario Nieuwenhuis2024-01-101-3/+3
| | | | | | | With the embedded-hal rc3 update I changed them to require `&mut self`, but in retrospect I think `&self` is better, for extra flexibility. This PR reverts the changes from the rc3 update to inherent methods.
* Update embedded-hal to 1.0.0-rc.3Dario Nieuwenhuis2023-12-141-5/+5
|
* Remove nightly and unstable-traits features in preparation for 1.75.Dario Nieuwenhuis2023-11-291-49/+39
|
* Fix gpiote when waking up from systemoffDion Dokter2023-09-141-1/+0
|
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-1/+1
| | | | internal use only. (#1700)
* Removed unnecessary lifetime namingCameron2023-07-051-4/+4
|
* Add `rt` feature to HALs, cfg out interrupt handling when not set.Dario Nieuwenhuis2023-06-081-0/+3
|
* Make interrupt module more standard.Dario Nieuwenhuis2023-06-081-7/+7
| | | | | | | | | | | | - Move typelevel interrupts to a special-purpose mod: `embassy_xx::interrupt::typelevel`. - Reexport the PAC interrupt enum in `embassy_xx::interrupt`. This has a few advantages: - The `embassy_xx::interrupt` module is now more "standard". - It works with `cortex-m` functions for manipulating interrupts, for example. - It works with RTIC. - the interrupt enum allows holding value that can be "any interrupt at runtime", this can't be done with typelevel irqs. - When "const-generics on enums" is stable, we can remove the typelevel interrupts without disruptive changes to `embassy_xx::interrupt`.
* cortex-m: remove owned interrupts.Dario Nieuwenhuis2023-06-011-30/+26
|
* Add `#[must_use]` to all futuresGrant Miller2023-02-241-0/+1
|
* nrf: docs.Dario Nieuwenhuis2023-02-011-7/+46
|
* Switch to async-fn-in-traitDario Nieuwenhuis2022-11-251-42/+20
|
* Review comments. Corrected unused fields.Ardelean Calin2022-11-231-19/+19
|
* Corrected order of use statements.Ardelean Calin2022-11-221-1/+1
|
* Changed pin to private as it is for OutputChannelArdelean Calin2022-11-221-6/+6
|
* Switched to PeripheralRef for channel.Ardelean Calin2022-11-221-23/+20
|
* Update gpiote.rsArdelean Călin Petru2022-11-221-0/+6
| | | | | | | | | | | | | | | | | | | 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 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 freq_in = InputChannel::new( &mut p.GPIOTE_CH0, Input::new(&mut p.P0_19, embassy_nrf::gpio::Pull::Up), embassy_nrf::gpiote::InputChannelPolarity::HiToLo, ); ```
* Update embedded-hal versions and explicitly pinUlf Lilleengen2022-09-291-1/+1
|
* Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis2022-09-221-2/+1
|
* Do not use cfg_if for embedded-hal-async feature gates.Dario Nieuwenhuis2022-08-311-45/+46
| | | | Old code used `cfg_if!` because rustc still parses code inside disabled cfg's, and Rust stable at that time couldn't parse the new GAT where-clause location. This is not the case anymore.
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-1/+1
|
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-291-1/+1
|
* nrf: replace PhantomData usages with PeripheralRef.Dario Nieuwenhuis2022-07-231-26/+16
|
* Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-2/+2
|
* Rename unsafe_impl_unborrow to impl_unborrowDario Nieuwenhuis2022-07-231-2/+2
|