Skip to main content
Marco1
Associate III
March 22, 2016
Question

CDC_Transmit_FS () with you stm32cube (LAST VERSION)

  • March 22, 2016
  • 0 replies
  • 369 views
Posted on March 22, 2016 at 16:48

Are you kidding?

What sense has this function made in this way ?

uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len)

{

  uint8_t result = USBD_OK;

  /* USER CODE BEGIN 7 */ 

  USBD_CDC_SetTxBuffer(hUsbDevice_0, Buf, Len);     

  while(result != USBD_OK);                                              <<<<<<<<<<<< i think useless

  do {

    result = USBD_CDC_TransmitPacket(hUsbDevice_0);

  }

  while(result != USBD_OK);

  /* USER CODE END 7 */ 

  return result;                                                <<<<<<<<<<< wath else can i return with  >>while(result != USBD_OK);<<

}

    This topic has been closed for replies.