summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-04-06 17:35:11 +0700
committerhathach <[email protected]>2020-04-06 17:35:11 +0700
commit4179334aca5b4085912f895ac2e5e8586efefd67 (patch)
tree2658e8be598ca9002322cbd153222ab79c915ed6 /src
parenta61d34e09ce2675e3c25042d5c91a47df84b7c73 (diff)
call tud_irq_handler() for all nrf5x board
Diffstat (limited to 'src')
-rw-r--r--src/device/dcd.h2
-rw-r--r--src/portable/nordic/nrf5x/dcd_nrf5x.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index 7e976e0ed..dbdc19dd3 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_irq_handler (uint8_t rhport) TU_ATTR_USED;
+void dcd_irq_handler(uint8_t rhport) TU_ATTR_USED;
// Enable device interrupt
void dcd_int_enable (uint8_t rhport);
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c
index 2ce288d6c..e54f475ec 100644
--- a/src/portable/nordic/nrf5x/dcd_nrf5x.c
+++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c
@@ -359,8 +359,10 @@ void bus_reset(void)
_dcd.xfer[0][TUSB_DIR_OUT].mps = MAX_PACKET_SIZE;
}
-void USBD_IRQHandler(void)
+void dcd_irq_handler(uint8_t rhport)
{
+ (void) rhport;
+
uint32_t const inten = NRF_USBD->INTEN;
uint32_t int_status = 0;