diff options
| author | Ha Thach <[email protected]> | 2019-11-22 15:16:41 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-11-22 15:16:41 +0700 |
| commit | ca741dfc2a88fdfebe0703e0d484dc5a684e3e99 (patch) | |
| tree | 11f8e391c7b3d2e55d9b84c165133e61060f5d6a /src/device | |
| parent | f0682f62794290f4a17ac365b5c09b59dbc895ef (diff) | |
| parent | a02e723d098c3e2735e84a229968947e485e1b68 (diff) | |
Merge pull request #220 from hathach/develop
Port NXP iMX RT10XX
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 3 | ||||
| -rw-r--r-- | src/device/usbd.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index 6e43ab3e9..dca289e78 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -88,6 +88,9 @@ typedef struct TU_ATTR_ALIGNED(4) // Initialize controller to device mode
void dcd_init (uint8_t rhport);
+// Interrupt Handler
+void dcd_isr (uint8_t rhport);
+
// Enable device interrupt
void dcd_int_enable (uint8_t rhport);
diff --git a/src/device/usbd.h b/src/device/usbd.h index b3665d7f2..9d39af13a 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -47,6 +47,9 @@ bool tud_init (void); // Task function should be called in main/rtos loop
void tud_task (void);
+// Interrupt handler, name alias to DCD
+#define tud_isr dcd_isr
+
// Check if device is connected and configured
bool tud_mounted(void);
|
