summaryrefslogtreecommitdiff
path: root/embassy-nrf
AgeCommit message (Collapse)Author
2022-10-09Removes some of the code duplication for UarteWithIdlehuntc
This commit removes some of the code duplication for UarteWithIdle at the expense of requiring a split. As the example illustrates though, this expense seems worth the benefit in terms of maintenance, and the avoidance of copying over methods. My main motivation for this commit was actually due to the `event_endtx` method not having been copied across.
2022-10-07all Cargo.toml: Add license to all crate Cargo.toml fileschrysn
Closes: https://github.com/embassy-rs/embassy/issues/1002
2022-09-29Update embedded-hal versions and explicitly pinUlf Lilleengen
2022-09-27usb: make HALs depend only on embassy-usb-driver.Dario Nieuwenhuis
2022-09-26usb: split driver trait to separate crate.Dario Nieuwenhuis
2022-09-23Merge #958bors[bot]
958: Implement proper `Drop` for `BufferedUarte` r=lulf a=ZoeyR The drop method in `BufferedUarte` was prone to hanging indefinitely and also didn't actually disable the peripheral. I mostly copied over the drop method from `Uarte` with some modifications since `BufferedUarte` could have a transmit lasting indefinitely. Co-authored-by: Zoey Riordan <zoey@dos.cafe>
2022-09-23Re-add timer.stop()Zoey Riordan
2022-09-22Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis
2022-09-22Update Rust nightly.Dario Nieuwenhuis
Removes feature(generic_associated_types)
2022-09-21Fix builds on other nrf pacsZoey Riordan
2022-09-21Remove unused functionZoey Riordan
2022-09-21Remove left-in comments and logsZoey Riordan
2022-09-21Implement proper `Drop` for `BufferedUarte`Zoey Riordan
2022-09-02time: add more tick rates, use 1mhz as default.Dario Nieuwenhuis
2022-08-31Merge #936bors[bot]
936: Add split() method to BufferedUarte in embassy-nrf r=ZoeyR a=ZoeyR I haven't completed testing this yet. I'm creating this PR early so that I can get corrected if I went way off course. This PR adds a `split()` method to `BufferedUarte` as discussed on matrix. Co-authored-by: Zoey Riordan <zoey@dos.cafe>
2022-08-31Merge #938bors[bot]
938: Do not use cfg_if for embedded-hal-async feature gates. r=Dirbaio a=Dirbaio 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. bors r+ Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-08-31Do not use cfg_if for embedded-hal-async feature gates.Dario Nieuwenhuis
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.
2022-08-31Avoid context switch and wait for stophuntc
Should be more efficient given the sub 100 cycles to wait.
2022-08-30Avoid double-borrowZoey Riordan
2022-08-30Deduplicate IO methodsZoey Riordan
2022-08-30Add split() method to BufferedUarte in embassy-nrfZoey Riordan
2022-08-30Permits the future to be cancelledhuntc
Includes documentation
2022-08-30Additional docohuntc
2022-08-26Ensure that the sampling is stoppedhuntc
Ensures that nRF saadc sampling is stopped and is awaited prior to exiting the two sampling methods. Not doing so causes a potential power drain and the potential for dropped buffer writes when having finished continuous sampling.
2022-08-24nrf/ppi: fix unsoundness due to task/event ptrs being public.Dario Nieuwenhuis
2022-08-24nrf/ppi: feature-gate dppi stuff.Dario Nieuwenhuis
2022-08-22split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis
2022-08-22nRF documentation warning fixesUlf Lilleengen
2022-08-18Split embassy-time from embassy-executor.Dario Nieuwenhuis
2022-08-17Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis
2022-08-17Update to critical-section 1.0, atomic-polyfill 1.0Dario Nieuwenhuis
2022-08-02Merge #890bors[bot]
890: Implement UsbSupply for a reference of SignalledSupply r=Dirbaio a=matoushybl Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
2022-08-02Implement UsbSupply for a reference of SignalledSupplyMatous Hybl
2022-08-01Remove commented out logging codeTil Blechschmidt
2022-08-01Extend QSPI config with freq, delay, spi mode, and address modeTil Blechschmidt
2022-07-29Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis
2022-07-24Merge #876bors[bot]
876: Add defmt support to embassy-embedded-hal errors r=Dirbaio a=matoushybl `defmt::unwrap!()` should now work with shared buses. I tested it only with I2C as I don't have SPI in the target project. Co-authored-by: Matous Hybl <hyblmatous@gmail.com>
2022-07-24Add defmt support to embassy-embedded-hal errorsMatous Hybl
2022-07-23nrf: replace PhantomData usages with PeripheralRef.Dario Nieuwenhuis
2022-07-23Remove PeripheralRef::into_inner()Dario Nieuwenhuis
2022-07-23Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis
2022-07-23Update embassy-stm32Dario Nieuwenhuis
2022-07-23fix nrf dppiDario Nieuwenhuis
2022-07-23Rename unsafe_impl_unborrow to impl_unborrowDario Nieuwenhuis
2022-07-23Update embassy-rpGrant Miller
2022-07-23WIP: Make unborrow safe to useGrant Miller
2022-07-22Merge #871 #872bors[bot]
871: nrf/saadc: add type-erased AnyInput. r=Dirbaio a=Dirbaio 872: nrf/usb: prevent user code from constructing a PowerUsb directly. r=Dirbaio a=Dirbaio PowerUsb must be constructed through `new()` so that it sets up the IRQ. It must have at least one private field, otherwise user code can construct it directly with `PowerUsb{}`. Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-07-21nrf/usb: prevent user code from constructing a PowerUsb directly.Dario Nieuwenhuis
PowerUsb must be constructed through `new()` so that it sets up the IRQ. It must have at least one private field, otherwise user code can construct it directly with `PowerUsb{}`.
2022-07-21nrf/saadc: add type-erased AnyInput.Dario Nieuwenhuis
2022-07-13Move all gpio logic to Flexchemicstry