aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/buffered_uarte.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat: improve nrf54 support using new nrf-pacUlf Lilleengen2025-10-281-951/+0
| | | | | | | | | | | | | * 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]>
* return error on read when uarte buffer overrunKezi2025-10-141-4/+17
|
* remove panic on uarte overrunKezi2025-10-091-1/+2
|
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-6/+6
|
* nrf/uart,timer: erase instance generics.Dario Nieuwenhuis2025-09-281-94/+135
|
* BufferedUart initializationMichael Gomez2025-04-041-5/+5
| | | | | | | This change modifies UART initialization throughout Embassy to take pins before interrupts. Related to #1304.
* Remove Peripheral trait, rename PeripheralRef->Peri.Dario Nieuwenhuis2025-03-271-96/+90
|
* Desugar some async fnsDániel Buga2024-12-301-7/+4
|
* nrf: port to chiptool-based `nrf-pac`.Dario Nieuwenhuis2024-11-041-87/+70
|
* nrf: add try_write to BufferedUarte.Dario Nieuwenhuis2024-08-211-0/+28
|
* nrf: buffered_uarte: Add overrides for `too_many_arguments` lintPriit Laes2024-08-081-0/+7
| | | | | One possible future fix for this could be refactoring at least ppi arguments into separate struct.
* nrf after cargo checkrafael2024-07-141-2/+2
|
* nrfrafael2024-07-141-0/+18
|
* nrf/buffered_uart: take into account EASYDMA_SIZE. fixes nrf52832Dario Nieuwenhuis2024-06-251-4/+5
|
* nrf: fix wrong order configuring gpios.Dario Nieuwenhuis2024-06-251-0/+3
| | | | | Docs say "PSEL.RXD, PSEL.RTS, PSEL.RTS, and PSEL.TXD must only be configured when the UARTE is disabled." For some reason nrf52 doesn't care but nrf91 does.
* nrf: remove mod sealed.Dario Nieuwenhuis2024-04-051-16/+9
|
* nrf/uart: Add support for rx-only or tx-only BufferedUart.Dario Nieuwenhuis2024-02-211-107/+254
|
* nrf/uart: share waker state between buffered and nonbuffered.Dario Nieuwenhuis2024-02-211-10/+9
|
* nrf/buffered_uart: refactor so rx/tx halves are independent.Dario Nieuwenhuis2024-02-211-218/+229
|
* nrf/buffered_uart: simplify split lifetimes.Dario Nieuwenhuis2024-02-211-12/+12
|
* nrf: Remove useless borrowsPriit Laes2024-02-171-1/+1
|
* Reset rx_started state of nrf buffered_uarte on initftilde2023-12-291-0/+1
| | | | | | This was likely forgotten as part of c46418f12. Without this, when creating a uarte instance, dropping it and then creating another instance, this instance would never receive any bytes.
* Remove nightly and unstable-traits features in preparation for 1.75.Dario Nieuwenhuis2023-11-291-1/+0
|
* nrf/buffered_uarte: fix hang when buffer full due to PPI missing the endrx ↵Dario Nieuwenhuis2023-11-141-21/+58
| | | | | | event. Fixes #2181
* nrf/buffered_uarte: fix missing hwfc enable.Dario Nieuwenhuis2023-11-131-1/+3
|
* Update to embedded-io 0.5 (#1752)Dario Nieuwenhuis2023-08-071-11/+11
|
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-2/+2
| | | | internal use only. (#1700)
* Make interrupt module more standard.Dario Nieuwenhuis2023-06-081-6/+5
| | | | | | | | | | | | - 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-4/+4
|
* Disable ppi group first to avoid BufferedUarte not getting dropped properlyLinus Harberg2023-05-261-0/+2
|
* common/peripheral: do not require mut in PeripheralRef clone_unchecked.Dario Nieuwenhuis2023-04-111-1/+1
|
* nrf/uart: switch to new interrupt binding.Dario Nieuwenhuis2023-03-061-111/+114
|
* nrf/buffered_uarte: add HIL tests.Dario Nieuwenhuis2023-03-041-1/+1
|
* nrf/buffered_uarte: make available on stable.Dario Nieuwenhuis2023-03-041-43/+116
|
* nrf/buffered_uarte: remove PeripheralMutex, make it work without rts/cts.Dario Nieuwenhuis2023-03-041-299/+373
| | | | | | | | | | | | | | | | | | | > dirbaio: so I was checking how zephyr does UARTE RX on nRF > dirbaio: because currently we have the ugly "restart DMA on line idle to flush it" hack > dirbaio: because according to the docs "For each byte received over the RXD line, an RXDRDY event will be generated. This event is likely to occur before the corresponding data has been transferred to Data RAM." > dirbaio: so as I understood it, the only way to guarantee the data is actually transferred to RAM is to stop+restart DMA > dirbaio: well, guess what? > dirbaio: they just count RXDRDY's, and process that amount of data without restarting DMA > dirbaio: with a timer configured as counter https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/serial/uart_nrfx_uarte.c#L650-L692 > dirbaio: 🤔🤷⁉️ > dirbaio: someone saying you can do the "hook up rxdrdy to a counter" trick, someone else saying it's wrong 🤪 https://devzone.nordicsemi.com/f/nordic-q-a/28420/uarte-in-circular-mode So we're going to do just that! - BufferedUarte is lock-free now. No PeripheralMutex. - The "restart DMA on line idle to flush it" hack is GONE. This means - It'll work correctly without RTS/CTS now. - It'll have better throughput when using RTS/CTS.
* nrf: docs.Dario Nieuwenhuis2023-02-011-2/+7
|
* Switch to async-fn-in-traitDario Nieuwenhuis2022-11-251-49/+17
|
* Update Rust nightly.Dario Nieuwenhuis2022-10-261-8/+8
|
* Merge #958bors[bot]2022-09-231-25/+17
|\ | | | | | | | | | | | | | | 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 <[email protected]>
| * Re-add timer.stop()Zoey Riordan2022-09-231-2/+3
| |
| * Fix builds on other nrf pacsZoey Riordan2022-09-211-4/+4
| |
| * Remove unused functionZoey Riordan2022-09-211-10/+0
| |
| * Remove left-in comments and logsZoey Riordan2022-09-211-2/+0
| |
| * Implement proper `Drop` for `BufferedUarte`Zoey Riordan2022-09-211-14/+17
| |
* | Replace futures::future::poll_fn -> core::future::poll_fn.Dario Nieuwenhuis2022-09-221-2/+1
|/
* Avoid double-borrowZoey Riordan2022-08-301-6/+9
|
* Deduplicate IO methodsZoey Riordan2022-08-301-169/+101
|
* Add split() method to BufferedUarte in embassy-nrfZoey Riordan2022-08-301-12/+167
|
* split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-1/+1
|
* nRF documentation warning fixesUlf Lilleengen2022-08-221-0/+9
|