Break device mode class driver interfaces into seperate config and state structs...
[pub/USBasp.git] / Demos / Host / ClassDriver / CDCHost / CDCHost.c
index e50a28f..941cf7c 100644 (file)
  *  passed to all CDC Class driver functions, so that multiple instances of the same class\r
  *  within a device can be differentiated from one another.\r
  */\r
-USB_ClassInfo_CDC_t VirtualSerial_CDC_Interface;\r
-\r
+USB_ClassInfo_CDC_Host_t VirtualSerial_CDC_Interface =\r
+       {\r
+               .DataINPipeNumber       = 1,\r
+               .DataOUTPipeNumber      = 2,\r
+               .NotificationPipeNumber = 3,\r
+       };\r
+       \r
 /** Main program entry point. This routine configures the hardware required by the application, then\r
  *  starts the scheduler to run the application tasks.\r
  */\r
@@ -56,6 +61,7 @@ int main(void)
 \r
        for (;;)\r
        {\r
+               CDC_Host_USBTask(&VirtualSerial_CDC_Interface);\r
                USB_USBTask();\r
        }\r
 }\r