usb_descriptors.c
c
#include "usb_descriptors.h"
// 设备描述符
uint8_t const desc_device[] =
{
TUD_DESC_DEVICE(0x0200, TUSB_DESC_DEVICE, 0, 0, 0, 0, 64, 0x04D8, 0x0002, 0x0100, 1, 2, 0x01, 0x02)
};
// 配置描述符
uint8_t const desc_configuration[] =
{
TUD_DESC_CONFIGURATION(0, 1, 0, 0, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 250),
TUD_DESC_CDC_ACM(0, 0, 0, 1, 0, 0),
TUD_DESC_CDC_DATA(1, 0),
};
// 字符串描述符
uint8_t const desc_string[] =
{
TUD_DESC_STRING(0, "TinyUSB CDC Example")
};
|