USB: integrate vendor and product ID configuration in the wizard
[bertos.git] / bertos / drv / usbmouse.c
index a562f58287feaa0da985811d9dd81298cbc92448..dd1708b026615cc10283e987d6f8f47cfa7b0472 100644 (file)
@@ -58,8 +58,8 @@
 /*
  * HID device configuration (usb-mouse)
  */
-#define USB_HID_VENDOR_ID      0xffff /* custom */
-#define USB_HID_PRODUCT_ID     0x0000
+#define USB_HID_VENDOR_ID      USB_MOUSE_VENDOR_ID
+#define USB_HID_PRODUCT_ID     USB_MOUSE_PRODUCT_ID
 
 #define USB_HID_INTERFACES     1
 #define USB_HID_ENDPOINTS      1
@@ -172,17 +172,17 @@ static const UsbDescHeader *usb_hid_config[] =
        NULL,
 };
 
-static DEFINE_USB_STRING(language_str, "\x09\x04"); // Language ID: en_US
-static DEFINE_USB_STRING(manufacturer_str,
+static const DEFINE_USB_STRING(language_str, "\x09\x04"); // Language ID: en_US
+static const DEFINE_USB_STRING(manufacturer_str,
                USB_STRING("B", "e", "R", "T", "O", "S"));
-static DEFINE_USB_STRING(product_str,
+static const DEFINE_USB_STRING(product_str,
                USB_STRING("U", "S", "B", " ", "M", "o", "u", "s", "e"));
 
 static const UsbStringDesc *usb_hid_strings[] =
 {
-       (UsbStringDesc *)&language_str,
-       (UsbStringDesc *)&manufacturer_str,
-       (UsbStringDesc *)&product_str,
+       (const UsbStringDesc *)&language_str,
+       (const UsbStringDesc *)&manufacturer_str,
+       (const UsbStringDesc *)&product_str,
        NULL,
 };