aboutsummaryrefslogtreecommitdiff
path: root/example-cdc/stream.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-05-12 18:14:47 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-05-12 18:14:47 +0900
commitfabd271196710655a508b8b2727945ddc581d2ae (patch)
tree48124132a4ba4adcb5d806a68a24a023db701948 /example-cdc/stream.h
parent5730641ffdd26c5033ef9d5aaae29b68dee7c2e0 (diff)
Update example-cdc
Diffstat (limited to 'example-cdc/stream.h')
-rw-r--r--example-cdc/stream.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/example-cdc/stream.h b/example-cdc/stream.h
index 15cbe63..dbbfb5f 100644
--- a/example-cdc/stream.h
+++ b/example-cdc/stream.h
@@ -9,8 +9,10 @@
struct stream {
chopstx_mutex_t mtx;
chopstx_cond_t cnd;
+ int sending;
+ unsigned int recv_len;
+ uint8_t recv_buf[BUFSIZE]; /* Not yet used. */
uint8_t buf_send[BUFSIZE]; /* Not yet used. */
- uint8_t buf_recv[BUFSIZE]; /* Not yet used. */
uint8_t cnt_send_head; /* Not yet used. */
uint8_t cnt_send_tail; /* Not yet used. */
uint8_t cnt_recv_head; /* Not yet used. */