added all assert check to osal_queue_send and osal_semaphore_post

This commit is contained in:
hathach
2014-04-24 23:57:21 +07:00
parent 6804fee0fa
commit dbf276ad6f
8 changed files with 32 additions and 27 deletions

View File

@@ -431,7 +431,7 @@ void usbd_xfer_isr(endpoint_handle_t edpt_hdl, tusb_event_t event, uint32_t xfer
{
if (edpt_hdl.class_code == 0 ) // Control Transfer
{
osal_semaphore_post( usbd_control_xfer_sem_hdl );
ASSERT( TUSB_ERROR_NONE == osal_semaphore_post( usbd_control_xfer_sem_hdl ), VOID_RETURN);
}else
{
usbd_task_event_t task_event =