From 6886ccd2d46ad77798f0ededf510d1ba875537e9 Mon Sep 17 00:00:00 2001 From: Robert Fisk Date: Sun, 3 Jan 2016 13:01:16 +1300 Subject: [PATCH 01/11] Tweak device descriptor strings --- Downstream/.settings/language.settings.xml | 4 ++-- Upstream/.settings/language.settings.xml | 4 ++-- Upstream/Src/usbd_descriptors.c | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Downstream/.settings/language.settings.xml b/Downstream/.settings/language.settings.xml index 7a9fc8b..3f82d32 100644 --- a/Downstream/.settings/language.settings.xml +++ b/Downstream/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/Upstream/.settings/language.settings.xml b/Upstream/.settings/language.settings.xml index 458d877..3b1adc1 100755 --- a/Upstream/.settings/language.settings.xml +++ b/Upstream/.settings/language.settings.xml @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/Upstream/Src/usbd_descriptors.c b/Upstream/Src/usbd_descriptors.c index 8eb2cce..6368639 100755 --- a/Upstream/Src/usbd_descriptors.c +++ b/Upstream/Src/usbd_descriptors.c @@ -61,12 +61,12 @@ */ #define USBD_VID 1155 #define USBD_LANGID_STRING 1033 -#define USBD_MANUFACTURER_STRING "STMicroelectronics" +#define USBD_MANUFACTURER_STRING "The USG is Good, not Bad" #define USBD_PID_FS 22314 -#define USBD_PRODUCT_STRING_FS "STM32 Mass Storage" +#define USBD_PRODUCT_STRING_FS "USG v1.0" #define USBD_SERIALNUMBER_STRING_FS "00000000001A" -#define USBD_CONFIGURATION_STRING_FS "MSC Config" -#define USBD_INTERFACE_STRING_FS "MSC Interface" +#define USBD_CONFIGURATION_STRING_FS "USG multipurpose configuration" +#define USBD_INTERFACE_STRING_FS "USG multipurpose interface" /** * @} From 4615f2c740c4d54dcdc32e66b34e0f2725422605 Mon Sep 17 00:00:00 2001 From: Robert Fisk Date: Mon, 11 Jan 2016 14:07:00 +1300 Subject: [PATCH 02/11] Tweak product strings again --- Upstream/Src/usbd_descriptors.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Upstream/Src/usbd_descriptors.c b/Upstream/Src/usbd_descriptors.c index 6368639..5a06500 100755 --- a/Upstream/Src/usbd_descriptors.c +++ b/Upstream/Src/usbd_descriptors.c @@ -59,14 +59,14 @@ /** @defgroup USBD_DESC_Private_Defines * @{ */ -#define USBD_VID 1155 -#define USBD_LANGID_STRING 1033 -#define USBD_MANUFACTURER_STRING "The USG is Good, not Bad" -#define USBD_PID_FS 22314 -#define USBD_PRODUCT_STRING_FS "USG v1.0" +#define USBD_VID 1155 +#define USBD_LANGID_STRING 1033 +#define USBD_MANUFACTURER_STRING "The USG is Good, not Bad" +#define USBD_PID_FS 22314 +#define USBD_PRODUCT_STRING_FS "USG v1.0" #define USBD_SERIALNUMBER_STRING_FS "00000000001A" -#define USBD_CONFIGURATION_STRING_FS "USG multipurpose configuration" -#define USBD_INTERFACE_STRING_FS "USG multipurpose interface" +#define USBD_CONFIGURATION_STRING_FS "USG multipurpose configuration" +#define USBD_INTERFACE_STRING_FS "USG multipurpose interface" /** * @} @@ -162,10 +162,10 @@ const int8_t STORAGE_Inquirydata_FS[] = { //36 0x00, 0x00, 0x00, - 'S', 'T', 'M', ' ', ' ', ' ', ' ', ' ', /* Manufacturer : 8 bytes */ - 'P', 'r', 'o', 'd', 'u', 'c', 't', ' ', /* Product : 16 Bytes */ - ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', - '0', '.', '0' ,'1', /* Version : 4 Bytes */ + 'T', 'h', 'e', ' ', 'U', 'S', 'G', ' ', /* Manufacturer : 8 bytes */ + 'i', 's', ' ', 'G', 'o', 'o', 'd', ',', /* Product : 16 Bytes */ + 'n', 'o', 't', ' ', 'b', 'a', 'd', '.', + 'v', '1', '.' ,'0', /* Version : 4 Bytes */ }; /** From c3c4d4714524d7de17fa24818156cc4e35953b35 Mon Sep 17 00:00:00 2001 From: Robert Fisk Date: Sat, 16 Jan 2016 01:43:15 +1300 Subject: [PATCH 03/11] Mouse Upstream code half-done. --- Upstream/.cproject | 12 +- Upstream/Inc/upstream_interface_def.h | 1 + .../Class/HID/Inc/usbd_hid.h | 6 +- .../Class/HID/Src/usbd_hid.c | 115 ++++++++++-------- Upstream/Src/upstream_statemachine.c | 6 + 5 files changed, 86 insertions(+), 54 deletions(-) diff --git a/Upstream/.cproject b/Upstream/.cproject index 5f285a8..e0a67c4 100755 --- a/Upstream/.cproject +++ b/Upstream/.cproject @@ -8,6 +8,8 @@ + + @@ -46,7 +48,7 @@