drivers/usbdev/gadget/f_acm_desc.c
void cdcacm_mkdevdesc(uint8_t *buf)
{
  errno_t ret;

  ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_cdcacm_device_desc, sizeof(g_cdcacm_device_desc));
  if (ret != EOK)
    {
      usb_err("memcpy_s fail!, ret:%d\n", ret);
      return;
    }
}
/* ***************************************************************************
 * Name: cdcacm_mkdevdesc
 *
 * Description:
 *   Construct the device descriptor
 *
 * ***************************************************************************
 */
cdcacm_mkdevdesc
Description:
Construct the device descriptor
cdcacm_mkdevdesc Description : Construct the device descriptor
void cdcacm_mkdevdesc(uint8_t *buf)
{
  errno_t ret;
  ret = memcpy_s(buf, USB_COMP_EP0_BUFSIZ, &g_cdcacm_device_desc, sizeof(g_cdcacm_device_desc));
  if (ret != EOK)
    {
      usb_err("memcpy_s fail!, ret:%d\n", ret);
      return;
    }
}
void cdcacm_mkdevdesc ( uint8_t * buf ) { errno_t ret ; ret = memcpy_s ( buf , USB_COMP_EP0_BUFSIZ , & g_cdcacm_device_desc , sizeof ( g_cdcacm_device_desc ) ) ; if ( ret != EOK ) { usb_err ( " \n " , ret ) ; return ; } }
Name: cdcacm_mkdevdesc
 Description:
   Construct the device descriptor
Name : cdcacm_mkdevdesc Description : Construct the device descriptor