how tinyusb developers had thought about using tud_audio_fb_set() #2499
Unanswered
mastupristi
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Currently |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project I need to calculate the feedback value in a regular way. For this reason I have a software timer from FreeRTOS, which performs the calculation every 10ms. The feedback thus computed I use in the
tud_audio_fb_set()
call, which eventually if the endpiont is free calls thexfer
.However,
tud_task()
also internally calls thexfer
on the same EP. This can cause a race condition, and trigger the assert https://github.com/hathach/tinyusb/blob/master/src/device/usbd.c#L1236In such cases how should one proceed?
How tinyusb developers had thought about using
tud_audio_fb_set()
?Is it right that
tud_audio_fb_set()
also calls the transfer in addition to setting the feedback value in the internal structures?regards
Max
Beta Was this translation helpful? Give feedback.
All reactions