
Arduino
2
Вклад в тег
// USB Controller initialization in device mode
// Note: This function also initializes the PLL
usb_init_device(&usb_config);
// Global enable interrupts
#asm("sei")
// Wait for the USB device to be enumerated by the host
//while (!usb_enumerated);
// Wait 1.5 seconds for the operating system to
// load any drivers needed by the USB device
delay_ms(1500);
while (!usb_enumerated);