Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32 ring-buffer enhancement discussion #3590

Open
elagil opened this issue Nov 28, 2024 · 0 comments
Open

STM32 ring-buffer enhancement discussion #3590

elagil opened this issue Nov 28, 2024 · 0 comments

Comments

@elagil
Copy link
Contributor

elagil commented Nov 28, 2024

This is a follow-up to the discussion in #3336 by @liarokapisv

Feel free to add further people to the discussion.

Remaining issues/ideas with the current ring-buffer implementation include

  • clear() on overrun causes issues with higher-level drivers that handle data in groups of samples. For example, a SAI driver may handle data in groups of two samples (left/right). The ring-buffer has no concept of grouping, so on clear() it will cause random read/write index offsets - in the case of the SAI example, causing left/right switching.
  • Usefulness of write_immediate() is not clear, should it be removed?
  • The ring buffer may pause automatically on overrun. The ring buffer shall then be explicitly restarted by a user when new data is available.
@elagil elagil changed the title STM32 ring-buffer STM32 ring-buffer enhancement discussion Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant