|
у меня вот так, все работает.
Что за чем хост присылает - не помню, может и не разбирался.
// Device descriptor
flash unsigned char DEV_DESC [ DEV_LENGTH ] =
{
// Length of this desc.
DEV_LENGTH, //18
// DEVICE descriptor
DEVICE, //1
// USB revision (BCD)
0x01, 0x01,
// Device class, subclass, protocol
0, 0, 0,
// Max packet size for control pipe
8,
// Vendor ID National
0x00, 0x04,
// Product ID Здесь нужно вставить тип устройства
ProductIDL, ProductIDH,
// Revision ID Здесь нужно вставить версию ПО
RevisionIDL, RevisionIDH,
// Index of manufacturer string
1,
// Index of product string
2,
// Index of serial number string
3,
// Number of configurations
1
};
E-mail: info@telesys.ru