tinyusb
hal_lpc175x_6x.h
Go to the documentation of this file.
1 /**************************************************************************/
37 /**************************************************************************/
38 
39 #ifndef _TUSB_HAL_LPC175X_6X_H_
40 #define _TUSB_HAL_LPC175X_6X_H_
41 
42 #include "LPC17xx.h"
43 #include "lpc17xx_pinsel.h"
44 
45 #ifdef __cplusplus
46  extern "C" {
47 #endif
48 
49 //--------------------------------------------------------------------+
50 //
51 //--------------------------------------------------------------------+
52 static inline void hal_interrupt_enable(uint8_t coreid)
53 {
54  (void) coreid; // discard compiler's warning
55  NVIC_EnableIRQ(USB_IRQn);
56 }
57 
58 static inline void hal_interrupt_disable(uint8_t coreid)
59 {
60  (void) coreid; // discard compiler's warning
61  NVIC_DisableIRQ(USB_IRQn);
62 }
63 
64 #ifdef __cplusplus
65  }
66 #endif
67 
68 #endif /* _TUSB_HAL_LPC175X_6X_H_ */
69 
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.