summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-24 21:22:42 +0700
committerhathach <[email protected]>2019-11-24 21:22:42 +0700
commit24b2cea139238df8daf278abc9777b95ab60bc16 (patch)
tree1836dfe07b2938099cdbf912ff545f5ec114c11c /src/device
parent3d748e6e2eb9561ce27d5239f97aeb1d0d45f1e2 (diff)
parent64b05a1d5f312e754bba79f9b38ac5e9ca281a66 (diff)
Merge branch 'master' into port-samg55
Diffstat (limited to 'src/device')
-rw-r--r--src/device/dcd.h3
-rw-r--r--src/device/usbd.h3
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);