Home
last modified time | relevance | path

Searched refs:s_usb_tx_buf_pos (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-latest/components/esp_system/port/
Dusb_console.c64 static size_t s_usb_tx_buf_pos; variable
328 if (s_usb_tx_buf_pos == 0) { in esp_usb_console_flush_internal()
331 assert(s_usb_tx_buf_pos >= last_write_size); in esp_usb_console_flush_internal()
333 size_t tx_buf_pos_before = s_usb_tx_buf_pos - last_write_size; in esp_usb_console_flush_internal()
334 …size_t sent = cdc_acm_fifo_fill(s_cdc_acm_device, (const uint8_t*) s_usb_tx_buf, s_usb_tx_buf_pos); in esp_usb_console_flush_internal()
338 s_usb_tx_buf_pos = 0; in esp_usb_console_flush_internal()
342 s_usb_tx_buf_pos = tx_buf_pos_before; in esp_usb_console_flush_internal()
349 memmove(s_usb_tx_buf, s_usb_tx_buf + sent, s_usb_tx_buf_pos - sent); in esp_usb_console_flush_internal()
350 s_usb_tx_buf_pos = s_usb_tx_buf_pos - sent; in esp_usb_console_flush_internal()
375 ssize_t tx_buf_available = ACM_BYTES_PER_TX - s_usb_tx_buf_pos; in esp_usb_console_write_buf()
[all …]