|
|
@ -327,6 +327,7 @@ static void Console_Task(void)
|
|
|
|
Endpoint_ClearIN();
|
|
|
|
Endpoint_ClearIN();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// CONSOLE_FLUSH_SET(false);
|
|
|
|
// CONSOLE_FLUSH_SET(false);
|
|
|
|
|
|
|
|
console_flush = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Endpoint_SelectEndpoint(ep);
|
|
|
|
Endpoint_SelectEndpoint(ep);
|
|
|
@ -398,7 +399,8 @@ void EVENT_USB_Device_WakeUp()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef CONSOLE_ENABLE
|
|
|
|
// #ifdef CONSOLE_ENABLE
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
|
|
|
|
|
|
|
// called every 1ms
|
|
|
|
// called every 1ms
|
|
|
|
void EVENT_USB_Device_StartOfFrame(void)
|
|
|
|
void EVENT_USB_Device_StartOfFrame(void)
|
|
|
@ -1113,7 +1115,7 @@ static void setup_usb(void)
|
|
|
|
USB_Init();
|
|
|
|
USB_Init();
|
|
|
|
|
|
|
|
|
|
|
|
// for Console_Task
|
|
|
|
// for Console_Task
|
|
|
|
USB_Device_EnableSOFEvents();
|
|
|
|
//USB_Device_EnableSOFEvents();
|
|
|
|
print_set_sendchar(sendchar);
|
|
|
|
print_set_sendchar(sendchar);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1228,6 +1230,10 @@ int main(void)
|
|
|
|
raw_hid_task();
|
|
|
|
raw_hid_task();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef CONSOLE_ENABLE
|
|
|
|
|
|
|
|
Console_Task();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
|
|
|
|
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
|
|
|
|
USB_USBTask();
|
|
|
|
USB_USBTask();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|