|
|
@ -539,11 +539,18 @@ int main(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SetupHardware();
|
|
|
|
SetupHardware();
|
|
|
|
sei();
|
|
|
|
sei();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* wait for USB startup & debug output */
|
|
|
|
|
|
|
|
while (USB_DeviceState != DEVICE_STATE_Configured) {
|
|
|
|
#if defined(INTERRUPT_CONTROL_ENDPOINT)
|
|
|
|
#if defined(INTERRUPT_CONTROL_ENDPOINT)
|
|
|
|
while (USB_DeviceState != DEVICE_STATE_Configured) ;
|
|
|
|
;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
USB_USBTask();
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
print("USB configured.\n");
|
|
|
|
print("USB configured.\n");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* init modules */
|
|
|
|
keyboard_init();
|
|
|
|
keyboard_init();
|
|
|
|
host_set_driver(&lufa_driver);
|
|
|
|
host_set_driver(&lufa_driver);
|
|
|
|
#ifdef SLEEP_LED_ENABLE
|
|
|
|
#ifdef SLEEP_LED_ENABLE
|
|
|
|