aboutsummaryrefslogtreecommitdiff
path: root/core/usb/usb_callbacks.c
AgeCommit message (Collapse)Author
2010-05-20moved the usb directory to its proper home in ./libmapleAJM
also, removed some old usb file, bootVect.h, which setup the static table for the runtime usb lib that no longer exists and was provided by the bootloader rev 1
2010-05-20added a delay to the resrt slide to allow enough time for graceul closures ↵AJM
of the serial port
2010-05-20fixed the FIFO bug, tx/rx now seems stable and ready for integration.AJM
2010-05-20FINALLY figured out the tx/rx bugs, so the whole stack is officially ↵AJM
working. for future reference its ESSENTIAL that you set the EPNUM flag of the global device struct appropriately regardless of whether or not you enable or configure more endpoints.
2010-05-20finally got TX working without any delay, there is some weird timing ↵AJM
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'
2010-05-20c++ ified all of the usb_core files, added the auto-reset feature to the ↵AJM
virtual com port, got the descriptors in functional although not pretty order that can be fixed using the attribute packing
2010-05-20added virtual com port echoing as the test configuration for the usb serial codeAJM
2010-05-20finished the entire low level usb app for virtual com minus the precise ↵AJM
handling of get/send data callbacks and toggle line state. completely undebugged for now.