aboutsummaryrefslogtreecommitdiff
path: root/core/usb
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 receive 0 bytes bug, where full buffers block the usb port and ↵AJM
never get re-enabled.
2010-05-20added carraige feed to newline send on the test function usbSendHelloAJM
2010-05-20fixed the FIFO bug, tx/rx now seems stable and ready for integration.AJM
2010-05-20theres still a remaining bug whereby fast consecutive read/writes to serial ↵AJM
might crash the fifo, but other than that it seems to work. see usbSendHello for an example. include usb.h in your application, and call setupUSB() to turn everything on.
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.
2010-05-20added the usb_config file for general setup settings and filled out any ↵AJM
undefined macros in the usb descriptor files
2010-05-20added the string descriptors to the descriptor set so that when you plug in ↵AJM
the device it can actually report "LeafLabs Maple R3"
2010-05-20Added the virtual com port descriptors based on the LUFA/MYUsb model (which ↵AJM
was great). Still need to flesh out quite a few macros that were referenced but never defined.
2010-05-20added the skeleton dir for the usb application lib, since were still ↵AJM
dependent on st for low level access, the entire usb stack lives in the core application level (not in libmaple). the next project should be to include some low level usb stack in the libmaple