diff options
| author | Ha Thach <[email protected]> | 2020-04-13 10:18:17 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-13 10:18:17 +0700 |
| commit | 7a93894b99237650d9358f4cdbc505b3a705a41d (patch) | |
| tree | e1efa890fa3ceb93e15244ba6e6df3e61c701910 /src/device | |
| parent | 13a3081d308828ae6e4b9a40bb8ac7bf5b0e424c (diff) | |
| parent | 04a06ec40147f1f44cfee0567667cc97bbe900ee (diff) | |
Merge pull request #325 from hathach/refactor-irqhandler
move irqhandler to application
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/dcd.h | 2 | ||||
| -rw-r--r-- | src/device/usbd.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h index c053229ec..f4e6edb95 100644 --- a/src/device/dcd.h +++ b/src/device/dcd.h @@ -89,7 +89,7 @@ typedef struct TU_ATTR_ALIGNED(4) void dcd_init (uint8_t rhport); // Interrupt Handler -void dcd_isr (uint8_t rhport); +void dcd_irq_handler(uint8_t rhport) TU_ATTR_USED; // Enable device interrupt void dcd_int_enable (uint8_t rhport); diff --git a/src/device/usbd.h b/src/device/usbd.h index 817af20e3..6b31d8113 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -48,7 +48,7 @@ bool tud_init (void); void tud_task (void); // Interrupt handler, name alias to DCD -#define tud_isr dcd_isr +#define tud_irq_handler dcd_irq_handler // Check if device is connected and configured bool tud_mounted(void); |
