diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-06-04 10:20:53 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-06-04 10:20:53 +0900 |
commit | 7a09ac9a10ece38ec11c9d8588f198eea5c422b1 (patch) | |
tree | 262637b6745bfe0270c31301e393632be6f81241 /example-cdc/usb-cdc.c | |
parent | ca47da23f1f65fe86eef3ced72cbf2d750a17ff7 (diff) |
Now, it works with svc holding lock.
Diffstat (limited to 'example-cdc/usb-cdc.c')
-rw-r--r-- | example-cdc/usb-cdc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/example-cdc/usb-cdc.c b/example-cdc/usb-cdc.c index 695c2f0..b44cb89 100644 --- a/example-cdc/usb-cdc.c +++ b/example-cdc/usb-cdc.c @@ -4,8 +4,7 @@ #include "usb_lld.h" extern chopstx_mutex_t usb_mtx; -extern chopstx_cond_t cnd_usb_connection; -extern chopstx_cond_t cnd_usb_buffer_ready; +extern chopstx_cond_t cnd_usb; #define ENDP0_RXADDR (0x40) #define ENDP0_TXADDR (0x80) @@ -241,7 +240,7 @@ vcom_port_data_setup (uint8_t req, uint8_t req_no, uint16_t value) chopstx_mutex_lock (&usb_mtx); if (connected != connected_saved) - chopstx_cond_signal (&cnd_usb_connection); + chopstx_cond_signal (&cnd_usb); chopstx_mutex_unlock (&usb_mtx); return USB_SUCCESS; @@ -416,7 +415,7 @@ void EP1_IN_Callback (void) { chopstx_mutex_lock (&usb_mtx); - chopstx_cond_signal (&cnd_usb_buffer_ready); + chopstx_cond_signal (&cnd_usb); chopstx_mutex_unlock (&usb_mtx); } |