tinyusb  0.4
Click here to lend your support to tinyusb donation and make a donation at pledgie.com
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
hal_lpc13uxx.h
Go to the documentation of this file.
1 /**************************************************************************/
37 /**************************************************************************/
38 
39 #ifndef _TUSB_HAL_LPC13UXX_H_
40 #define _TUSB_HAL_LPC13UXX_H_
41 
42 #include "LPC13Uxx.h"
43 
44 #ifdef __cplusplus
45  extern "C" {
46 #endif
47 
48 static inline void hal_interrupt_enable(uint8_t coreid)
49 {
50  (void) coreid; // discard compiler's warning
51  NVIC_EnableIRQ(USB_IRQ_IRQn);
52 }
53 
54 static inline void hal_interrupt_disable(uint8_t coreid)
55 {
56  (void) coreid; // discard compiler's warning
57  NVIC_DisableIRQ(USB_IRQ_IRQn);
58 }
59 
60 #ifdef __cplusplus
61  }
62 #endif
63 
64 #endif /* _TUSB_HAL_LPC13UXX_H_ */
65 
static void hal_interrupt_disable(uint8_t coreid) ATTR_ALWAYS_INLINE
Disable USB Interrupt on a specific USB Controller.
static void hal_interrupt_enable(uint8_t coreid) ATTR_ALWAYS_INLINE
Enable USB Interrupt on a specific USB Controller.