summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-11-29 22:59:00 +0700
committerhathach <[email protected]>2018-11-29 22:59:00 +0700
commit522b0c11efa9be870f806b452d0ca734738880c9 (patch)
tree78cf822abe2c6fae8d8bb2abd5b0b77fbef38b85 /src
parent57b85262b21333b3fe59f8abaeddda59c86b808b (diff)
move nvic prio in hal/dcd to bsp for portability
Diffstat (limited to 'src')
-rw-r--r--src/portable/nxp/lpc17xx/dcd_lpc175x_6x.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/portable/nxp/lpc17xx/dcd_lpc175x_6x.c b/src/portable/nxp/lpc17xx/dcd_lpc175x_6x.c
index 517f037d0..af7ceae0c 100644
--- a/src/portable/nxp/lpc17xx/dcd_lpc175x_6x.c
+++ b/src/portable/nxp/lpc17xx/dcd_lpc175x_6x.c
@@ -44,8 +44,6 @@
#include "dcd_lpc175x_6x.h"
#include "LPC17xx.h"
-#include "osal/osal.h"
-
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
@@ -199,14 +197,6 @@ bool dcd_init(uint8_t rhport)
sie_write(SIE_CMDCODE_DEVICE_STATUS, 1, 1); // connect
// USB IRQ priority should be set by application previously
- // If freeRTOS is used, IRQ priority is limit by max syscall ( smaller is higher )
-#if CFG_TUSB_OS == OPT_OS_FREERTOS
- if ( NVIC_GetPriority(USB_IRQn) < configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY )
- {
- NVIC_SetPriority(USB_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );
- }
-#endif
-
NVIC_ClearPendingIRQ(USB_IRQn);
NVIC_EnableIRQ(USB_IRQn);