Home
last modified time | relevance | path

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

/Zephyr-latest/samples/subsys/usb/cdc_acm/src/
Dmain.c117 int recv_len, rb_len; in interrupt_handler() local
135 rb_len = ring_buf_put(&ringbuf, buffer, recv_len); in interrupt_handler()
136 if (rb_len < recv_len) { in interrupt_handler()
137 LOG_ERR("Drop %u bytes", recv_len - rb_len); in interrupt_handler()
140 LOG_DBG("tty fifo -> ringbuf %d bytes", rb_len); in interrupt_handler()
141 if (rb_len) { in interrupt_handler()
148 int rb_len, send_len; in interrupt_handler() local
150 rb_len = ring_buf_get(&ringbuf, buffer, sizeof(buffer)); in interrupt_handler()
151 if (!rb_len) { in interrupt_handler()
162 send_len = uart_fifo_fill(dev, buffer, rb_len); in interrupt_handler()
[all …]