forked from mfulz_github/qmk_firmware
enable corret endpoint
This commit is contained in:
parent
13ff230615
commit
f8d340a9dd
|
@ -208,8 +208,8 @@ typedef struct
|
||||||
|
|
||||||
#ifdef CONSOLE_ENABLE
|
#ifdef CONSOLE_ENABLE
|
||||||
# define CONSOLE_IN_EPNUM (RAW_OUT_EPNUM + 1)
|
# define CONSOLE_IN_EPNUM (RAW_OUT_EPNUM + 1)
|
||||||
//# define CONSOLE_OUT_EPNUM (RAW_OUT_EPNUM + 2)
|
# define CONSOLE_OUT_EPNUM (RAW_OUT_EPNUM + 2)
|
||||||
# define CONSOLE_OUT_EPNUM (RAW_OUT_EPNUM + 1)
|
//# define CONSOLE_OUT_EPNUM (RAW_OUT_EPNUM + 1)
|
||||||
#else
|
#else
|
||||||
# define CONSOLE_OUT_EPNUM RAW_OUT_EPNUM
|
# define CONSOLE_OUT_EPNUM RAW_OUT_EPNUM
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue