27 #include "inc/hw_types.h" 28 #include "driverlib/rom.h" 29 #include "driverlib/rom_map.h" 30 #include "driverlib/usb.h" 31 #include "usblib/usblib.h" 32 #include "usblib/usbcdc.h" 33 #include "usblib/usb-ids.h" 34 #include "usblib/device/usbdevice.h" 35 #include "usblib/device/usbdcdc.h" 66 USBShort(USB_LANG_EN_US)
78 'T', 0,
'e', 0,
'x', 0,
'a', 0,
's', 0,
' ', 0,
'I', 0,
'n', 0,
's', 0,
79 't', 0,
'r', 0,
'u', 0,
'm', 0,
'e', 0,
'n', 0,
't', 0,
's', 0,
91 'V', 0,
'i', 0,
'r', 0,
't', 0,
'u', 0,
'a', 0,
'l', 0,
' ', 0,
92 'C', 0,
'O', 0,
'M', 0,
' ', 0,
'P', 0,
'o', 0,
'r', 0,
't', 0
104 '1', 0,
'2', 0,
'3', 0,
'4', 0,
'5', 0,
'6', 0,
'7', 0,
'8', 0
116 'A', 0,
'C', 0,
'M', 0,
' ', 0,
'C', 0,
'o', 0,
'n', 0,
't', 0,
117 'r', 0,
'o', 0,
'l', 0,
' ', 0,
'I', 0,
'n', 0,
't', 0,
'e', 0,
118 'r', 0,
'f', 0,
'a', 0,
'c', 0,
'e', 0
130 'S', 0,
'e', 0,
'l', 0,
'f', 0,
' ', 0,
'P', 0,
'o', 0,
'w', 0,
131 'e', 0,
'r', 0,
'e', 0,
'd', 0,
' ', 0,
'C', 0,
'o', 0,
'n', 0,
132 'f', 0,
'i', 0,
'g', 0,
'u', 0,
'r', 0,
'a', 0,
't', 0,
'i', 0,
151 #define NUM_STRING_DESCRIPTORS (sizeof(g_ppui8StringDescriptors) / \ 173 USB_CONF_ATTR_SELF_PWR,
176 USBBufferEventCallback,
178 USBBufferEventCallback,
196 USBDCDCRxPacketAvailable,
214 USBDCDCTxPacketAvailable,
239 TxHandler(
void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue,
247 case USB_EVENT_TX_COMPLETE:
287 RxHandler(
void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue,
300 case USB_EVENT_RX_AVAILABLE:
315 case USB_EVENT_DATA_REMAINING:
332 case USB_EVENT_REQUEST_BUFFER:
371 uint32_t ui32MsgValue,
void *pvMsgData)
383 case USB_EVENT_CONNECTED:
407 case USB_EVENT_DISCONNECTED:
421 case USBD_CDC_EVENT_GET_LINE_CODING:
427 case USBD_CDC_EVENT_SET_LINE_CODING:
433 case USBD_CDC_EVENT_SET_CONTROL_LINE_STATE:
439 case USBD_CDC_EVENT_SEND_BREAK:
445 case USBD_CDC_EVENT_CLEAR_BREAK:
451 case USB_EVENT_SUSPEND:
452 case USB_EVENT_RESUME:
uint32_t RxHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
const uint8_t *const g_ppui8StringDescriptors[]
const uint8_t g_pui8SerialNumberString[]
uint8_t g_pui8USBTxBuffer[UART_BUFFER_SIZE]
const uint8_t g_pui8ControlInterfaceString[]
uint32_t ControlHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
const uint8_t g_pui8ManufacturerString[]
const uint8_t g_pui8ConfigString[]
tUSBDCDCDevice g_sCDCDevice
const uint8_t g_pui8LangDescriptor[]
#define NUM_STRING_DESCRIPTORS
const uint8_t g_pui8ProductString[]
static volatile bool g_bUSBConfigured
uint32_t TxHandler(void *pvCBData, uint32_t ui32Event, uint32_t ui32MsgValue, void *pvMsgData)
uint8_t g_pui8USBRxBuffer[UART_BUFFER_SIZE]