diff options
| author | hathach <[email protected]> | 2014-04-24 23:57:21 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-04-24 23:57:21 +0700 |
| commit | dbf276ad6f9852f8da7dd9bc8b9e1a74ee17b267 (patch) | |
| tree | 0f83836c0d7fceb35b1b742856f9512e5b504db2 /demos/host/src | |
| parent | 6804fee0fa571907f9311cce4f5e65aaa569dd1a (diff) | |
added all assert check to osal_queue_send and osal_semaphore_post
Diffstat (limited to 'demos/host/src')
| -rw-r--r-- | demos/host/src/cdc_serial_host_app.c | 2 | ||||
| -rw-r--r-- | demos/host/src/keyboard_host_app.c | 2 | ||||
| -rw-r--r-- | demos/host/src/mouse_host_app.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/demos/host/src/cdc_serial_host_app.c b/demos/host/src/cdc_serial_host_app.c index 0176feb5f..eb000f65d 100644 --- a/demos/host/src/cdc_serial_host_app.c +++ b/demos/host/src/cdc_serial_host_app.c @@ -88,7 +88,7 @@ void tusbh_cdc_xfer_isr(uint8_t dev_addr, tusb_event_t event, cdc_pipeid_t pipe_ {
case TUSB_EVENT_XFER_COMPLETE:
received_bytes = xferred_bytes;
- osal_semaphore_post(sem_hdl); // notify main task
+ (void) osal_semaphore_post(sem_hdl); // notify main task
break;
case TUSB_EVENT_XFER_ERROR:
diff --git a/demos/host/src/keyboard_host_app.c b/demos/host/src/keyboard_host_app.c index 2ba0296c0..3903e581c 100644 --- a/demos/host/src/keyboard_host_app.c +++ b/demos/host/src/keyboard_host_app.c @@ -85,7 +85,7 @@ void tusbh_hid_keyboard_isr(uint8_t dev_addr, tusb_event_t event) switch(event)
{
case TUSB_EVENT_XFER_COMPLETE:
- osal_queue_send(queue_kbd_hdl, &usb_keyboard_report);
+ (void) osal_queue_send(queue_kbd_hdl, &usb_keyboard_report);
tusbh_hid_keyboard_get_report(dev_addr, (uint8_t*) &usb_keyboard_report);
break;
diff --git a/demos/host/src/mouse_host_app.c b/demos/host/src/mouse_host_app.c index 1c811b62c..5b809d70c 100644 --- a/demos/host/src/mouse_host_app.c +++ b/demos/host/src/mouse_host_app.c @@ -84,7 +84,7 @@ void tusbh_hid_mouse_isr(uint8_t dev_addr, tusb_event_t event) switch(event)
{
case TUSB_EVENT_XFER_COMPLETE:
- osal_queue_send(queue_mouse_hdl, &usb_mouse_report);
+ (void) osal_queue_send(queue_mouse_hdl, &usb_mouse_report);
(void) tusbh_hid_mouse_get_report(dev_addr, (uint8_t*) &usb_mouse_report);
break;
|
