FIX: MS feature descriptors now work when attaching device on Windows 8, 10

However:   there are some registry entries needed to be deleted when the device is NOT connected.
I'd created some batch files to run as administrator,  which deletes and queries the registry.
This commit is contained in:
iceman1001 2017-10-13 10:39:33 +02:00
commit e47114bd65
2 changed files with 7 additions and 82 deletions

View file

@ -59,35 +59,5 @@ extern void AT91F_USB_SendZlp(AT91PS_UDP pUdp);
extern void AT91F_USB_SendStall(AT91PS_UDP pUdp);
extern void AT91F_CDC_Enumerate();
typedef const struct __attribute__((__packed__)) {
const uint32_t dwLength;
const uint16_t bcdVersion;
const uint16_t wIndex;
const uint16_t wCount;
const uint32_t dwSize;
const uint32_t dwPropertyDataType;
const uint16_t wPropertyNameLength;
const wchar_t bPropertyName[20];
const uint32_t dwPropertyDataLength;
const wchar_t bPropertyData[39];
const uint32_t dwSize2;
const uint32_t dwPropertyDataType2;
const uint16_t wPropertyNameLength2;
const wchar_t bPropertyName2[6];
const uint32_t dwPropertyDataLength2;
const wchar_t bPropertyData2[19];
const uint32_t dwSize3;
const uint32_t dwPropertyDataType3;
const uint16_t wPropertyNameLength3;
const wchar_t bPropertyName3[6];
const uint32_t dwPropertyDataLength3;
const wchar_t bPropertyData3[38];
} g_sOSProperties;
extern const g_sOSProperties g_pOSProperties;
#endif // _USB_CDC_H_