打开log 防止初始化完成之前进入usb中断
This commit is contained in:
@@ -52,7 +52,7 @@ extern char const* const tu_str_xfer_result[];
|
||||
void tu_print_mem(void const *buf, uint32_t count, uint8_t indent);
|
||||
|
||||
#ifdef CFG_TUSB_DEBUG_PRINTF
|
||||
extern int CFG_TUSB_DEBUG_PRINTF(const char *format, ...);
|
||||
extern void CFG_TUSB_DEBUG_PRINTF(const char *format, ...);
|
||||
#define tu_printf CFG_TUSB_DEBUG_PRINTF
|
||||
#else
|
||||
#define tu_printf printf
|
||||
|
||||
@@ -533,7 +533,7 @@ bool tud_rhport_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
|
||||
|
||||
// Init device controller driver
|
||||
TU_ASSERT(dcd_init(rhport, rh_init));
|
||||
dcd_int_enable(rhport);
|
||||
// dcd_int_enable(rhport);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user