Xmega Application Note | |||||
00001 /* This file has been prepared for Doxygen automatic documentation generation.*/ 00048 #include "config.h" 00049 #include "usb_task.h" 00050 #include "cdc_task.h" 00051 #include "usb_descriptors.h" 00052 00053 00061 int main(void) 00062 { 00063 /* Initialize the LED */ 00064 Led_init(); 00065 00066 /* Clear the prescaler on the device to enable a xxMHz clock, */ 00067 Clear_prescaler(); 00068 00069 /* Initialize all the USB related settings. */ 00070 usb_task_init(); 00071 00072 /* Initialize the CDC related settings. */ 00073 cdc_task_init(); 00074 00075 /* An eternal loop to handle the USB and CDC tasks. */ 00076 while(1){ 00077 usb_task(); 00078 cdc_task(); 00079 }; 00080 00081 00082 00083 } 00084 00085
Generated on Mon Jan 18 09:26:08 2010 for AVR1907 Xplain USB Gateway by ![]() |