aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/ClassDriver/CDCHost/CDCHost.c
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Host/ClassDriver/CDCHost/CDCHost.c')
-rw-r--r--Demos/Host/ClassDriver/CDCHost/CDCHost.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.c b/Demos/Host/ClassDriver/CDCHost/CDCHost.c
index 941cf7cc4..96b4b43ff 100644
--- a/Demos/Host/ClassDriver/CDCHost/CDCHost.c
+++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.c
@@ -42,9 +42,17 @@
*/
USB_ClassInfo_CDC_Host_t VirtualSerial_CDC_Interface =
{
- .DataINPipeNumber = 1,
- .DataOUTPipeNumber = 2,
- .NotificationPipeNumber = 3,
+ .Config =
+ {
+ .DataINPipeNumber = 1,
+ .DataOUTPipeNumber = 2,
+ .NotificationPipeNumber = 3,
+ },
+
+ .State =
+ {
+ // Leave all state values to their defaults
+ }
};
/** Main program entry point. This routine configures the hardware required by the application, then