summaryrefslogtreecommitdiff
path: root/tinyusb/hal/hal.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-12-10 14:58:25 +0700
committerhathach <[email protected]>2012-12-10 14:58:25 +0700
commit3eb7465e5ee8ea6298fcf134f853174fd9560a4c (patch)
tree5036198df7331ed5430ac1c2b664fd50ec49b1cf /tinyusb/hal/hal.h
parentb52b3b1cef3e8415542922b41db436202af340bf (diff)
abstract usb enable/disable interrupt to hal layer
Diffstat (limited to 'tinyusb/hal/hal.h')
-rw-r--r--tinyusb/hal/hal.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/tinyusb/hal/hal.h b/tinyusb/hal/hal.h
index 4229f6ea1..10fcc6155 100644
--- a/tinyusb/hal/hal.h
+++ b/tinyusb/hal/hal.h
@@ -55,6 +55,7 @@
extern "C" {
#endif
+#include "common/compiler/compiler.h"
#include "common/errors.h"
/** \brief USB hardware init
@@ -66,6 +67,23 @@
*/
TUSB_Error_t hal_init();
+/**
+ * Enable USB Interrupt
+ */
+static inline void hal_interrupt_enable() ATTR_ALWAYS_INLINE;
+
+/**
+ * Disable USB Interrupt
+ */
+static inline void hal_interrupt_disable() ATTR_ALWAYS_INLINE;
+
+#if MCU == MCU_LPC11UXX
+ #include "hal_lpc11uxx.h"
+#elif MCU == MCU_LPC13UXX
+ #include "hal_lpc13uxx.h"
+#elif MCU == MCU_LPC43XX
+
+#endif
#ifdef __cplusplus
}
#endif