enable corret endpoint
This commit is contained in:
parent
13ff230615
commit
f8d340a9dd
2 changed files with 10 additions and 4 deletions
|
@ -208,8 +208,8 @@ typedef struct
|
|||
|
||||
#ifdef CONSOLE_ENABLE
|
||||
# define CONSOLE_IN_EPNUM (RAW_OUT_EPNUM + 1)
|
||||
//# define CONSOLE_OUT_EPNUM (RAW_OUT_EPNUM + 2)
|
||||
# define CONSOLE_OUT_EPNUM (RAW_OUT_EPNUM + 1)
|
||||
# define CONSOLE_OUT_EPNUM (RAW_OUT_EPNUM + 2)
|
||||
//# define CONSOLE_OUT_EPNUM (RAW_OUT_EPNUM + 1)
|
||||
#else
|
||||
# define CONSOLE_OUT_EPNUM RAW_OUT_EPNUM
|
||||
#endif
|
||||
|
|
|
@ -327,6 +327,7 @@ static void Console_Task(void)
|
|||
Endpoint_ClearIN();
|
||||
}
|
||||
// CONSOLE_FLUSH_SET(false);
|
||||
console_flush = false;
|
||||
}
|
||||
|
||||
Endpoint_SelectEndpoint(ep);
|
||||
|
@ -398,7 +399,8 @@ void EVENT_USB_Device_WakeUp()
|
|||
|
||||
|
||||
|
||||
#ifdef CONSOLE_ENABLE
|
||||
// #ifdef CONSOLE_ENABLE
|
||||
#if 0
|
||||
|
||||
// called every 1ms
|
||||
void EVENT_USB_Device_StartOfFrame(void)
|
||||
|
@ -1113,7 +1115,7 @@ static void setup_usb(void)
|
|||
USB_Init();
|
||||
|
||||
// for Console_Task
|
||||
USB_Device_EnableSOFEvents();
|
||||
//USB_Device_EnableSOFEvents();
|
||||
print_set_sendchar(sendchar);
|
||||
}
|
||||
|
||||
|
@ -1228,6 +1230,10 @@ int main(void)
|
|||
raw_hid_task();
|
||||
#endif
|
||||
|
||||
#ifdef CONSOLE_ENABLE
|
||||
Console_Task();
|
||||
#endif
|
||||
|
||||
#if !defined(INTERRUPT_CONTROL_ENDPOINT)
|
||||
USB_USBTask();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue