Add notification endpoint to the incomplete TMC demo.
[pub/lufa.git] / Demos / Device / Incomplete / TestAndMeasurement / TestAndMeasurement.c
index 040cb34..e174aa9 100644 (file)
@@ -120,7 +120,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)
 {\r
        LEDs_SetAllLEDs(LEDMASK_USB_READY);\r
 \r
-       /* Setup TMC In and Out Endpoints */\r
+       /* Setup TMC In, Out and Notification Endpoints */\r
        if (!(Endpoint_ConfigureEndpoint(TMC_IN_EPNUM, EP_TYPE_BULK,\r
                                             ENDPOINT_DIR_IN, TMC_IO_EPSIZE,\r
                                         ENDPOINT_BANK_SINGLE)))\r
@@ -134,6 +134,13 @@ void EVENT_USB_Device_ConfigurationChanged(void)
        {\r
                LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
        }\r
+\r
+       if (!(Endpoint_ConfigureEndpoint(TMC_NOTIFICATION_EPNUM, EP_TYPE_INTERRUPT,\r
+                                            ENDPOINT_DIR_IN, TMC_NOTIFICATION_EPSIZE,\r
+                                        ENDPOINT_BANK_SINGLE)))\r
+       {\r
+               LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
+       }\r
 }\r
 \r
 /** Event handler for the USB_UnhandledControlRequest event. This is used to catch standard and class specific\r