diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-30 20:11:18 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2016-05-30 20:11:18 +0900 |
commit | e8eaeced7741488bc83735ef81478d98b877470e (patch) | |
tree | 8ab682906876756aa91dd5944e14acafbbec3eb6 /example-cdc/usb-cdc.c | |
parent | 1ae3caf7fc8d9d1073684bf2da91b552065a41a7 (diff) |
Update USB for stm32f103
Diffstat (limited to 'example-cdc/usb-cdc.c')
-rw-r--r-- | example-cdc/usb-cdc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example-cdc/usb-cdc.c b/example-cdc/usb-cdc.c index b3e7598..073dae8 100644 --- a/example-cdc/usb-cdc.c +++ b/example-cdc/usb-cdc.c @@ -516,10 +516,13 @@ tty_echo_char (struct tty *t, int c) void -usb_cb_tx_done (uint8_t ep_num) +usb_cb_tx_done (uint8_t ep_num, uint32_t len, int success) { struct tty *t = tty_get (-1, ep_num); + (void)len; + (void)success; /* Always, successful. */ + if (ep_num == ENDP1) { chopstx_mutex_lock (&t->mtx); |