summaryrefslogtreecommitdiff
path: root/tinyusb/hal/hal_lpc43xx.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-11-06 14:20:45 +0700
committerhathach <[email protected]>2013-11-06 14:20:45 +0700
commit58b41a05db5bf564a4d93312d8fdee368604ed55 (patch)
tree5726caec0315f99407035168a81613994025999e /tinyusb/hal/hal_lpc43xx.h
parentb2b53e61fbf7a449f1c3db78df0bb2beddb80984 (diff)
refractor for device able to work on usb1 of lpc43xx. But could not get it work on EA4357
Diffstat (limited to 'tinyusb/hal/hal_lpc43xx.h')
-rw-r--r--tinyusb/hal/hal_lpc43xx.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/tinyusb/hal/hal_lpc43xx.h b/tinyusb/hal/hal_lpc43xx.h
index 5cb2bbbbe..951ec64e0 100644
--- a/tinyusb/hal/hal_lpc43xx.h
+++ b/tinyusb/hal/hal_lpc43xx.h
@@ -54,22 +54,18 @@
#include "LPC43xx.h"
-#define NXP_ROMDRIVER_REG_BASE LPC_USB0_BASE // TODO USB1
-#define NXP_ROMDRIVER_FUNCTION_ADDR 0x1040011C
-
#ifdef __cplusplus
extern "C" {
#endif
-
-static inline void hal_interrupt_enable(uint8_t controller_id)
+static inline void hal_interrupt_enable(uint8_t coreid)
{
- NVIC_EnableIRQ(controller_id ? USB1_IRQn : USB0_IRQn);
+ NVIC_EnableIRQ(coreid ? USB1_IRQn : USB0_IRQn);
}
-static inline void hal_interrupt_disable(uint8_t controller_id)
+static inline void hal_interrupt_disable(uint8_t coreid)
{
- NVIC_DisableIRQ(controller_id ? USB1_IRQn : USB0_IRQn);
+ NVIC_DisableIRQ(coreid ? USB1_IRQn : USB0_IRQn);
}
#ifdef __cplusplus