embassy/embassy-hal-common/src
Dario Nieuwenhuis f95aafc90e common: allow atomic ringbuf to fill up to N instead of just N-1.
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.
2023-03-02 01:01:19 +01:00
..
atomic_ring_buffer.rs common: allow atomic ringbuf to fill up to N instead of just N-1. 2023-03-02 01:01:19 +01:00
drop.rs Run rustfmt. 2022-06-12 22:22:31 +02:00
fmt.rs Rename embassy-extras to embassy-hal-common 2021-07-29 13:44:51 +02:00
lib.rs rp/uart: use lockfree ringbuffer. 2022-11-25 22:30:47 +01:00
macros.rs nrf: docs. 2023-02-01 01:17:41 +01:00
peripheral.rs PeripheralRef docs improvements. 2023-02-03 06:36:10 +01:00
ratio.rs Run rustfmt. 2022-06-12 22:22:31 +02:00
ring_buffer.rs Provides AsyncWrite with flush 2021-12-10 12:16:08 +11:00