doxygen documenting

This commit is contained in:
hathach
2014-03-25 13:00:37 +07:00
parent 41610af72a
commit 15d0139bc5
30 changed files with 184 additions and 243 deletions

View File

@@ -63,15 +63,19 @@ tusb_error_t tusb_init(void)
return TUSB_ERROR_NONE;
}
// called from hal layer
void tusb_isr(uint8_t controller_id)
/** \ingroup group_application_api
* \brief USB interrupt handler
* \param[in] coreid Controller ID where the interrupt happened
* \note This function must be called by HAL layer or Application for the stack to manage USB events/transfers.
*/
void tusb_isr(uint8_t coreid)
{
#if MODE_HOST_SUPPORTED
hcd_isr(controller_id);
hcd_isr(coreid);
#endif
#if MODE_DEVICE_SUPPORTED
dcd_isr(controller_id);
dcd_isr(coreid);
#endif
}