aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf52840/src/bin/buffered_uart.rs
Commit message (Collapse)AuthorAgeFilesLines
* BufferedUart initializationMichael Gomez2025-04-041-1/+1
| | | | | | | This change modifies UART initialization throughout Embassy to take pins before interrupts. Related to #1304.
* Update nrf-pac.Dario Nieuwenhuis2024-11-151-1/+1
|
* ci: use beta, add secondary nightly ci.Dario Nieuwenhuis2023-12-211-1/+0
|
* Update to embedded-io 0.5 (#1752)Dario Nieuwenhuis2023-08-071-1/+1
|
* nrf/uart: switch to new interrupt binding.Dario Nieuwenhuis2023-03-061-4/+7
|
* nrf/buffered_uarte: make available on stable.Dario Nieuwenhuis2023-03-041-1/+1
|
* nrf/buffered_uarte: remove PeripheralMutex, make it work without rts/cts.Dario Nieuwenhuis2023-03-041-9/+3
| | | | | | | | | | | | | | | | | | | > 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.
* Rename examples/nrf to examples/nrf52840Dominik Boehi2023-01-091-0/+57