51 extern void tusb_isr(uint8_t coreid);
87 #if TUSB_CFG_MCU == MCU_LPC11UXX
89 #elif TUSB_CFG_MCU == MCU_LPC13UXX
91 #elif TUSB_CFG_MCU == MCU_LPC43XX
93 #elif TUSB_CFG_MCU == MCU_LPC175X_6X
96 #error MCU is not defined or supported yet
105 static inline
bool hal_debugger_is_attached(
void)
108 #if !defined(_TEST_) && !(TUSB_CFG_MCU==MCU_LPC11UXX)
109 return ( (CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk) == CoreDebug_DHCSR_C_DEBUGEN_Msk );
110 #elif TUSB_CFG_DEBUG == 3
117 static inline void hal_debugger_breakpoint(
void) ATTR_ALWAYS_INLINE;
118 static inline
void hal_debugger_breakpoint(
void)
121 if (hal_debugger_is_attached())
#define ATTR_PURE
Many functions have no effects except the return value and their return value depends only on the par...
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.
tusb_error_t
Error Code returned.
void tusb_isr(uint8_t coreid)
USB interrupt handler.
#define ATTR_ALWAYS_INLINE
Generally, functions are not inlined unless optimization is specified. For functions declared inline...
tusb_error_t hal_init(void)
Initialize USB controller hardware.