34 #define __INCLUDE_FROM_USB_DRIVER
35 #include "../../Core/USBMode.h"
37 #if defined(USB_CAN_BE_DEVICE)
39 #define __INCLUDE_FROM_CDC_DRIVER
40 #define __INCLUDE_FROM_CDC_DEVICE_C
116 memset(&CDCInterfaceInfo->
State, 0x00,
sizeof(CDCInterfaceInfo->
State));
166 #if !defined(NO_CLASS_DRIVER_AUTOFLUSH)
172 const char*
const String)
184 const char*
const Buffer,
275 int16_t ReceivedByte = -1;
316 #if (defined(FDEV_SETUP_STREAM) && (!defined(__IAR_SYSTEMS_ICC__) || (_DLIB_FILE_DESCRIPTOR == 1)))
320 *Stream = (FILE)FDEV_SETUP_STREAM(CDC_Device_putchar, CDC_Device_getchar, _FDEV_SETUP_RW);
321 fdev_set_udata(Stream, CDCInterfaceInfo);
327 *Stream = (FILE)FDEV_SETUP_STREAM(CDC_Device_putchar, CDC_Device_getchar_Blocking, _FDEV_SETUP_RW);
328 fdev_set_udata(Stream, CDCInterfaceInfo);
331 static int CDC_Device_putchar(
char c,
337 static int CDC_Device_getchar(FILE* Stream)
341 if (ReceivedByte < 0)
347 static int CDC_Device_getchar_Blocking(FILE* Stream)
349 int16_t ReceivedByte;