aboutsummaryrefslogtreecommitdiff
path: root/example-cdc
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2016-05-23 13:48:24 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2016-05-23 13:48:24 +0900
commitb6603f677159b72a8165a5475dad525947889881 (patch)
tree0ebf65e409053730b9546a00d5debd3f1a7eb521 /example-cdc
parentee92bb15b361b3daee816a4e930be0032be2d9e7 (diff)
Update example-fs-bb48
Diffstat (limited to 'example-cdc')
-rw-r--r--example-cdc/sample.c2
-rw-r--r--example-cdc/usb-cdc.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/example-cdc/sample.c b/example-cdc/sample.c
index d29d13c..3de26c7 100644
--- a/example-cdc/sample.c
+++ b/example-cdc/sample.c
@@ -119,7 +119,7 @@ main (int argc, const char *argv[])
u = 1;
tty_wait_connection (tty);
- chopstx_usec_wait (500*1000);
+ chopstx_usec_wait (50*1000);
/* Send ZLP at the beginning. */
tty_send (tty, s, 0);
diff --git a/example-cdc/usb-cdc.c b/example-cdc/usb-cdc.c
index cdec2f0..7199ab6 100644
--- a/example-cdc/usb-cdc.c
+++ b/example-cdc/usb-cdc.c
@@ -378,8 +378,7 @@ vcom_setup_endpoints_for_interface (uint16_t interface, int stop)
{
usb_lld_setup_endpoint (ENDP1, EP_BULK, 0, 0, ENDP1_TXADDR, 0);
usb_lld_setup_endpoint (ENDP3, EP_BULK, 0, ENDP3_RXADDR, 0, 64);
- /* Start with no data receiving */
- usb_lld_stall_rx (ENDP3);
+ /* Start with no data receiving (ENDP3 not enabled)*/
}
else
{