[riot-notifications] [RIOT-OS/RIOT] Blocking mode for USBUS CDC ACM STDIO (see #16500) (#16508)

Karl Fessel notifications at github.com
Wed Aug 11 16:35:26 CEST 2021


you would need a new mutex (not the one inside the isr_pipe) (instead of a new timer)
lock it if you are not able to write to the buffer and unlock it if when data is read from the buffer (you can unlock it every time as the unlock performs  a check if it was locked) and you just lock it if you cloud not write (as the test write to isr_pipe is safe).

atm i am not sure where the `_cdc_acm_rx_pipe` is run  i would assume it run in the usb event  thread?
therefor all other threads are free to run and the usb event  thread is blocked (like it is in this with the timer)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16508#issuecomment-896881713
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210811/e4a3b469/attachment.htm>


More information about the notifications mailing list