house keeping

This commit is contained in:
hathach 2013-07-04 10:54:51 +07:00
parent d3aed01874
commit 8c0bc38713
1 changed files with 24 additions and 15 deletions

View File

@ -74,6 +74,8 @@ void tusbh_cdc_unmounted_isr(uint8_t dev_addr)
}
void tusbh_cdc_xfer_isr(uint8_t dev_addr, tusb_event_t event, cdc_pipeid_t pipe_id, uint32_t xferred_bytes)
{
if ( pipe_id == CDC_PIPE_DATA_IN )
{
switch(event)
{
@ -94,6 +96,13 @@ void tusbh_cdc_xfer_isr(uint8_t dev_addr, tusb_event_t event, cdc_pipeid_t pipe_
ASSERT(false, (void) 0); // error
break;
}
}else if (pipe_id == CDC_PIPE_DATA_OUT)
{
}else if (pipe_id == CDC_PIPE_NOTIFICATION)
{
}
}
//--------------------------------------------------------------------+