summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-11-25 10:42:32 +0700
committerhathach <[email protected]>2019-11-25 10:42:32 +0700
commitc691dc4cb2dd37998e529d7f3f71de9e947aa80d (patch)
tree960b6aa7c13b60afa83c7e7fb93fbe7513d60c21 /src
parent58e8265964ef8260851465b56c1a3d48445ec04d (diff)
update
Diffstat (limited to 'src')
-rw-r--r--src/portable/microchip/samg/dcd_samg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/portable/microchip/samg/dcd_samg.c b/src/portable/microchip/samg/dcd_samg.c
index 793892feb..d3028e605 100644
--- a/src/portable/microchip/samg/dcd_samg.c
+++ b/src/portable/microchip/samg/dcd_samg.c
@@ -29,6 +29,7 @@
#if CFG_TUSB_MCU == OPT_MCU_SAMG
#include "device/dcd.h"
+#include "sam.h"
//--------------------------------------------------------------------+
// MACRO TYPEDEF CONSTANT ENUM DECLARATION
@@ -49,12 +50,14 @@ void dcd_init (uint8_t rhport)
void dcd_int_enable (uint8_t rhport)
{
(void) rhport;
+ NVIC_EnableIRQ(UDP_IRQn);
}
// Disable device interrupt
void dcd_int_disable (uint8_t rhport)
{
(void) rhport;
+ NVIC_DisableIRQ(UDP_IRQn);
}
// Receive Set Address request, mcu port must also include status IN response