From 6ad3acd15e9859ac9bc77c1eb04d67108dcc5a03 Mon Sep 17 00:00:00 2001 From: AJM Date: Sat, 24 Apr 2010 22:23:50 -0400 Subject: finally got TX working without any delay, there is some weird timing involved in what happens when the line state is toggled (host port disconnected) and theres still data waiting to go out, this will hang any while(txCount != 0) calls. similarly, sending data without checking txCount != 0 will hard fault the chip. This is all handled now by usbSendBytes, which returns -1 for unconnected, and 0 for simply 'waiting to send' --- core/usb/descriptors.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/usb/descriptors.h') diff --git a/core/usb/descriptors.h b/core/usb/descriptors.h index f15221a..6e96024 100644 --- a/core/usb/descriptors.h +++ b/core/usb/descriptors.h @@ -191,9 +191,9 @@ typedef struct { extern const USB_Descriptor_Device usbVcomDescriptor_Device; extern const USB_Descriptor_Config usbVcomDescriptor_Config; -extern uint8 usbVcomDescriptor_LangID[USB_DESCRIPTOR_STRING_LEN(1)]; -extern uint8 usbVcomDescriptor_iManufacturer[USB_DESCRIPTOR_STRING_LEN(8)]; -extern uint8 usbVcomDescriptor_iProduct[USB_DESCRIPTOR_STRING_LEN(8)]; +extern const uint8 usbVcomDescriptor_LangID[USB_DESCRIPTOR_STRING_LEN(1)]; +extern const uint8 usbVcomDescriptor_iManufacturer[USB_DESCRIPTOR_STRING_LEN(8)]; +extern const uint8 usbVcomDescriptor_iProduct[USB_DESCRIPTOR_STRING_LEN(8)]; #if defined(__cplusplus) } -- cgit v1.2.3