device/usbd_cdc_if.c
static int8_t CDC_Init_FS(void)
{
	/* USER CODE BEGIN 3 */
	/* Set Application Buffers */
	USBD_CDC_SetTxBuffer(&hUsbDeviceFS, UserTxBufferFS, 0);
	USBD_CDC_SetRxBuffer(&hUsbDeviceFS, UserRxBufferFS);

	/* init serial processing */
	ser_state = SER_WAIT;
    ser_err = 0;
	
	return (USBD_OK);
	/* USER CODE END 3 */
}
/* Private functions ---------------------------------------------------------*/
/**
  * @brief  Initializes the CDC media low layer over the FS USB IP
  * @retval USBD_OK if all operations are OK else USBD_FAIL
  */
Private functions
@brief  Initializes the CDC media low layer over the FS USB IP
@retval USBD_OK if all operations are OK else USBD_FAIL
Private functions @brief Initializes the CDC media low layer over the FS USB IP @retval USBD_OK if all operations are OK else USBD_FAIL
static int8_t CDC_Init_FS(void)
{
	USBD_CDC_SetTxBuffer(&hUsbDeviceFS, UserTxBufferFS, 0);
	USBD_CDC_SetRxBuffer(&hUsbDeviceFS, UserRxBufferFS);
	ser_state = SER_WAIT;
    ser_err = 0;
	return (USBD_OK);
}
static int8_t CDC_Init_FS ( void ) { USBD_CDC_SetTxBuffer ( & hUsbDeviceFS , UserTxBufferFS , 0 ) ; USBD_CDC_SetRxBuffer ( & hUsbDeviceFS , UserRxBufferFS ) ; ser_state = SER_WAIT ; ser_err = 0 ; return ( USBD_OK ) ; }
Private functions
 @brief  Initializes the CDC media low layer over the FS USB IP
 @retval USBD_OK if all operations are OK else USBD_FAIL
Private functions @brief Initializes the CDC media low layer over the FS USB IP @retval USBD_OK if all operations are OK else USBD_FAIL
/* USER CODE BEGIN 3 */ /* Set Application Buffers */ /* init serial processing */ /* USER CODE END 3 */