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

Antonio Galea notifications at github.com
Fri May 28 11:43:40 CEST 2021

### Contribution description

I've modified USBUS CDC ACM STDIO to support blocking on pending characters from USB. The behaviour is controlled by CONFIG_USBUS_CDC_ACM_STDIO_BLOCKING variable, and can be configured via Kconfig.

### Testing procedure

I have tested it against my own [PoC](https://github.com/ant9000/test_usb_uart). With the default RIOT config, characters from USB are lost as soon as the STDIO buffer (defined by CONFIG_USBUS_CDC_ACM_STDIO_BUF_SIZE) is overrun.
If I enable the new blocking mode, the sender application slows down and adapts to the receiver speed.

### Issues/PRs references

This PR implements feature #16500 .

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * Blocking mode for USBUS CDC ACM STDIO (see #16500)

-- File Changes --

    M sys/usb/usbus/cdc/acm/Kconfig (6)
    M sys/usb/usbus/cdc/acm/cdc_acm_stdio.c (29)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210528/2e4f3753/attachment.htm>

More information about the notifications mailing list