diff options
| author | Kamil Tomaszewski <[email protected]> | 2019-10-08 09:58:56 +0200 |
|---|---|---|
| committer | Kamil Tomaszewski <[email protected]> | 2019-10-08 09:58:56 +0200 |
| commit | 0cea82568c318f1fb0cc2ade0e23811c4a13e724 (patch) | |
| tree | 49b8a88015e43a13ab2cd03cc8b9d204edfe9bb3 /src | |
| parent | 992360422113d15266552c5e488d87e0db60345e (diff) | |
Disable/enable only USB interrupt
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/sony/cxd56/dcd_cxd56.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/portable/sony/cxd56/dcd_cxd56.c b/src/portable/sony/cxd56/dcd_cxd56.c index 38f3b5c75..638b2f979 100644 --- a/src/portable/sony/cxd56/dcd_cxd56.c +++ b/src/portable/sony/cxd56/dcd_cxd56.c @@ -30,6 +30,7 @@ #include <errno.h> #include <nuttx/usb/usbdev.h> +#include <nuttx/arch.h> #include "device/dcd.h" @@ -168,7 +169,7 @@ void dcd_int_enable(uint8_t rhport) { (void) rhport; - __asm volatile ("cpsie i" : : : "memory"); + up_enable_irq(CXD56_IRQ_USB_INT); } // Disable device interrupt @@ -176,7 +177,7 @@ void dcd_int_disable(uint8_t rhport) { (void) rhport; - __asm volatile ("cpsid i" : : : "memory"); + up_disable_irq(CXD56_IRQ_USB_INT); } // Receive Set Address request, mcu port must also include status IN response |
