8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a614c1d commit 642affcCopy full SHA for 642affc
ports/esp32/usb.c
@@ -41,7 +41,8 @@
41
static uint8_t usb_rx_buf[CONFIG_TINYUSB_CDC_RX_BUFSIZE];
42
43
static void usb_callback_rx(int itf, cdcacm_event_t *event) {
44
- // TODO: what happens if more chars come in during this function, are they lost?
+ // IDF places tinyusb rx data onto freertos ringbuffer which this function
45
+ // forwards onto the stdin_ringbuf
46
for (;;) {
47
size_t len = 0;
48
esp_err_t ret = tinyusb_cdcacm_read(itf, usb_rx_buf, sizeof(usb_rx_buf), &len);
@@ -58,6 +59,7 @@ static void usb_callback_rx(int itf, cdcacm_event_t *event) {
58
59
ringbuf_put(&stdin_ringbuf, usb_rx_buf[i]);
60
}
61
62
+ xTaskNotifyGive(mp_main_task_handle);
63
64
65
0 commit comments