Changed over all deprecated GCC structure tag initializers to the standardized C99...
[pub/USBasp.git] / Demos / Device / CDC / CDC.c
index 29bc003..4c51fc6 100644 (file)
@@ -39,8 +39,8 @@
 /* Scheduler Task List */\r
 TASK_LIST\r
 {\r
-       { Task: USB_USBTask          , TaskStatus: TASK_STOP },\r
-       { Task: CDC_Task             , TaskStatus: TASK_STOP },\r
+       { .Task = USB_USBTask          , .TaskStatus = TASK_STOP },\r
+       { .Task = CDC_Task             , .TaskStatus = TASK_STOP },\r
 };\r
 \r
 /* Globals: */\r
@@ -52,10 +52,10 @@ TASK_LIST
  *  It is possible to completely ignore these value or use other settings as the host is completely unaware of the physical\r
  *  serial link characteristics and instead sends and receives data in endpoint streams.\r
  */\r
-CDC_Line_Coding_t LineCoding = { BaudRateBPS: 9600,\r
-                                 CharFormat:  OneStopBit,\r
-                                 ParityType:  Parity_None,\r
-                                 DataBits:    8            };\r
+CDC_Line_Coding_t LineCoding = { .BaudRateBPS = 9600,\r
+                                 .CharFormat  = OneStopBit,\r
+                                 .ParityType  = Parity_None,\r
+                                 .DataBits    = 8            };\r
 \r
 /** String to print through the virtual serial port when the joystick is pressed upwards. */\r
 char JoystickUpString[]      = "Joystick Up\r\n";\r
@@ -256,11 +256,11 @@ TASK(CDC_Task)
        */\r
        USB_Notification_Header_t Notification = (USB_Notification_Header_t)\r
                {\r
-                       NotificationType: (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),\r
-                       Notification:     NOTIF_SerialState,\r
-                       wValue:           0,\r
-                       wIndex:           0,\r
-                       wLength:          sizeof(uint16_t),\r
+                       .NotificationType = (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE),\r
+                       .Notification     = NOTIF_SerialState,\r
+                       .wValue           = 0,\r
+                       .wIndex           = 0,\r
+                       .wLength          = sizeof(uint16_t),\r
                };\r
                \r
        uint16_t LineStateMask;\r