aboutsummaryrefslogtreecommitdiff
path: root/embassy-hal-common/src/atomic_ring_buffer.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-556/+0
| | | | internal use only. (#1700)
* Fix tests.Dario Nieuwenhuis2023-05-291-2/+0
|
* Fix some typosDirk Stolle2023-05-081-2/+2
|
* hal-common/atomic_ring_buffer: add push_bufs() push_slices()Patrick Oppenlander2023-03-021-0/+147
| | | | | This allows a writer to access all of the free space in the buffer, even when it's wrapping around.
* common: allow atomic ringbuf to fill up to N instead of just N-1.Dario Nieuwenhuis2023-03-021-29/+69
| | | | | | This allows the ringbuf to be filled up to `N` instead of just `N-1`, using some fun tricks on the indices. The advantage is better performance: Before, the first write would fill N-1 bytes, The second would write just the 1 byte left before wrapping, then N-2. Then 2, then N-3, and so on. This would result in more smaller chunks, so worse perf. This problem is gone now.
* rp: Fix BufferedUart drop codeTimo Kröger2023-01-041-0/+4
| | | | Only unregister the interrupt handler when both parts are inactive
* hal-common/atomic_ring_buffer: Add push_slice, pop_slice.Dario Nieuwenhuis2022-12-191-0/+16
|
* hal-common/atomic_ring_buffer: fix crashes when len=0Dario Nieuwenhuis2022-12-191-2/+22
|
* rp/uart: use lockfree ringbuffer.Dario Nieuwenhuis2022-11-251-0/+331
This gets rid of another PeripheralMutex usage.