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

mentor/dcd_musb - Fix issue reading and writing to USBFIFOn register #3017

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fcooperti
Copy link

For a single packet read and write operations must pick either 32-bit, 16-bit or 8-bit read or write operations. Mixing and matching can cause corruption of data.

This becomes a bigger issue when using TinyUSB fifo that has to deal with wrapping since read/write operations may be split between multiple transfers of different sizes.

Therefore, create a function that will determine which operation can be used for transfer the entire buffer of data. Then read and write operations can use a parameter to determine what should be used.

fixes #3010

For a single packet read and write operations must pick either 32-bit, 16-bit or
8-bit read or write operations. Mixing and matching can cause corruption of
data.

This becomes a bigger issue when using TinyUSB fifo that has to deal with
wrapping since read/write operations may be split between multiple transfers
of different sizes.

Therefore, create a function that will determine which operation can be used
for transfer the entire buffer of data. Then read and write operations can
use a parameter to determine what should be used.

Signed-off-by: Franklin Cooper Jr <fcooper@ti.com>
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

Successfully merging this pull request may close these issues.

audio_test - Noisy generated to generated saw tooth tone
1 participant