diff options
| author | hathach <[email protected]> | 2014-03-25 13:00:37 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-25 13:00:37 +0700 |
| commit | 15d0139bc5d17bb8cda5bf98c3ae5631b62f1e84 (patch) | |
| tree | 9703c2ccbfb20111720534fd1528ed8bc7875bba /tinyusb/tusb.c | |
| parent | 41610af72a7878ced819ac2d8044088c9a3f76cf (diff) | |
doxygen documenting
Diffstat (limited to 'tinyusb/tusb.c')
| -rw-r--r-- | tinyusb/tusb.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tinyusb/tusb.c b/tinyusb/tusb.c index 8a0d1be59..15aa1fae9 100644 --- a/tinyusb/tusb.c +++ b/tinyusb/tusb.c @@ -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
}
|
