Oops - fix broken SPI driver due to missing bit inversion on a port mask.
[pub/USBasp.git] / Demos / Device / Incomplete / TestAndMeasurement / Descriptors.h
index d0f17b1..dc3505f 100644 (file)
                #include <LUFA/Drivers/USB/USB.h>\r
 \r
        /* Macros: */\r
+               /** Endpoint number of the TMC notification IN endpoint. */\r
+               #define TMC_NOTIFICATION_EPNUM  2       \r
+\r
                /** Endpoint number of the TMC device-to-host data IN endpoint. */\r
-               #define TMC_IN_EPNUM          3 \r
+               #define TMC_IN_EPNUM            3       \r
 \r
                /** Endpoint number of the TMC host-to-device data OUT endpoint. */\r
-               #define TMC_OUT_EPNUM         4 \r
+               #define TMC_OUT_EPNUM           4       \r
 \r
                /** Size in bytes of the TMC data endpoints. */\r
-               #define TMC_IO_EPSIZE         64\r
+               #define TMC_IO_EPSIZE           64\r
+\r
+               /** Size in bytes of the TMC notification endpoint. */\r
+               #define TMC_NOTIFICATION_EPSIZE 8\r
 \r
        /* Type Defines: */\r
                /** Type define for the device configuration descriptor structure. This must be defined in the\r
                        USB_Descriptor_Interface_t            Interface;\r
                        USB_Descriptor_Endpoint_t             DataOutEndpoint;\r
                        USB_Descriptor_Endpoint_t             DataInEndpoint;\r
+                       USB_Descriptor_Endpoint_t             NotificationEndpoint;\r
                } USB_Descriptor_Configuration_t;\r
 \r
        /* Function Prototypes: */\r
                uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,\r
                                                    const uint8_t wIndex,\r
-                                                   void** const DescriptorAddress) ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);\r
+                                                   const void** const DescriptorAddress)\r
+                                                   ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3);\r
 \r
 #endif\r
+