aboutsummaryrefslogtreecommitdiff
path: root/Projects/USBtoSerial/USBtoSerial.c
AgeCommit message (Collapse)Author
2012-04-14Reintegrate the FullEPAddresses development branch into trunk.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2155 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file contributor copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2026 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file header copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2025 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-23Run wspurify script on /trunk/ and /branches/ C source files, to remove any ↵dean
trailing whitespace at the end of each line. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2007 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-09-07Fixed incorrect buffer size check in the USBtoSerial project (thanks to Yuri ↵Dean
A Nikiforov). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1922 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-10Add static keyword to all project globals whose scope should be restricted ↵Dean
to the same module as they are declared in. Tighten up the HID class bootloader code slightly, document that it currently exceeds 2KB of bootloader space for all models other than the Series 2 USB AVRs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1661 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Oops - fix up some calls to the old function names, include Serial ↵Dean
Peripheral driver in the RNDISEthernetHost project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1648 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Add new HID_DESCRIPTOR_VENDOR() macro, change over all projects and Device ↵Dean
ClassDriver demos to use it. Fix reversed byte ordering of multi-byte HID data. Added support to the HID parser for extended USAGE items that contain the usage page as well as the usage index. Removed the HID_IOF_NON_VOLATILE and HID_IOF_VOLATILE flags from HID INPUT items where the flag is invalid. Changed over HID OUTPUT items to use HID_IOF_NON_VOLATILE. Change over MagStripe project to use HID_DESCRIPTOR_KEYBOARD() for its HID report. Change over MouseHostDevice demo to use HID_DESCRIPTOR_MOUSE() for its HID report. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1644 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-31Rename RingBuffer header functions and typedefs from RingBuff_* to ↵Dean
RingBuffer_* so that it matches the header name. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1620 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-26Make a new general RingBuffer.h misc library driver, instead of the ↵Dean
per-application LightweightRingBuff.h ring buffers. Change over projects to use the new driver. Add ORDERED_EP_CONFIG to the device Projects (only) that use only a single class driver, or where the endpoint ordering is fixed, to save on compiled binary size. Added new GCC_FORCE_POINTER_ACCESS() macro to correct GCC's mishandling of struct pointers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1614 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-12Fixed possible lost data in the XPLAINBridge, USBtoSerial and Benito ↵Dean
projects when the host exceeds the packet timeout period on received packets as set by USB_STREAM_TIMEOUT_MS (thanks to Justin Rajewski). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1603 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-23Fixed Benito project discarding incoming data from the USB virtual serial ↵Dean
port when the USART is busy. Minor documentation improvements. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1590 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-05Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean
EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1556 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-03Fixed USBtoSerial and XPLAINBridge demos discarding data from the PC if the ↵Dean
send buffer becomes full. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1554 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-22Moved calls to Device mode Class Driver events to after the request has been ↵Dean
acknowledged, so that long event handlers do do skew the timing of the control requests. Fixed USBtoSerial and Benito project SetLineEncoding calls failing if the USART is busy, due to the RX ISR delaying the control request handler. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1447 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-09Removed complicated logic for the Endpoint_ConfigureEndpoint() function to ↵Dean
use inlined or function called versions depending of if the given bank size is a compile time constant, as the compiler does a better job of optimizing with basic code. Changed over all device demos to use a clearer algorithm for the configuring of the application's endpoints. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1438 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-01Fix XPLAINBridge project discarding characters from the USB interface due to ↵Dean
a double read from the endpoint. Make XPLAINBridge and USBtoSerial projects more reliable by forcing a flush if the UART-to-USB buffer becomes nearly full. Reduce locking in the LightweightRingBuffer.h header files by only locking on the update of the buffer count, and require insertions and removals from each buffer to occur in only one execution thread. Fix CDC_*_ReceiveByte() returning 0 when the interface is not configured, instead of the new -1 error value. Fix CDC_Host_ReceiveByte() not re-freezing the pipe if no packet has been received. Remove redundant Pipe token set commands in the CDC and RNDIS host class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1431 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-31Fixed Serial peripheral driver not turning off the USART before ↵Dean
reconfiguring it, which would cause incorrect operation to occur (thanks to Bob Paddock). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1428 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-30Altered the CDC Deivice and Host Class drivers' receive byte routines, so ↵Dean
that no data is indicated by a negative return value. Added auto flushing of OUT data to the CDC Host Class driver's USBTask function to automatically flush the send pipe buffer. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1422 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-30Oops - need to turn off USART via control register B before reconfiguring, ↵Dean
fix ordering of USART control register modifications in the Benito and USBtoSerial projects. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1421 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-29Fixed Benito and USBtoSerial projects not turning off the USART before ↵Dean
reconfiguring it, which could cause incorrect operation to occur (thanks to Bob Paddock). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1419 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-15Fixed possible buffer overrun in the XPLAINBridge project when in serial ↵Dean
bridge mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1388 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-12Reduce prescaler of the flush timer in the USBtoSerial demo, so that buffer ↵Dean
overruns will not occur regardless of hardware and baud rate settings. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1373 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-12Alter the ring buffer library headers to have both atomic and non-atomic ↵Dean
insertion/removal routines. Modify the existing projects so that buffer operations performed in an ISR use the shorted non-atomic versions, as they are already performed in a blocking ISR. Alter USBtoSerial demo so that it does not enter a blocking loop to send data from the USB to the USART, as this can cause dropped bytes in the reception code if large amounts of data are sent in both directions at the same time. Added a flush timer to the USBtoSerial code for the USART to USB interface, so that multiple bytes can be sent in the same USB packet. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1372 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-26Replace ring buffer library in Benito and USBtoSerial projects with the new ↵Dean
lightweight ring buffer header to improve reliability. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1286 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-08Add svn:eol-style property to source files, so that the line endings are ↵Dean
correctly converted to the target system's native end of line style. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1248 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-02Change AVRISP project's timeout to be interrupt based again, but make the ↵Dean
interrupt itself interruptable and use a seperate assembly file to hand-optimize the ISR code. Removed the cast to uint16_t on the set baud rate in the USBtoSerial project, so that the higher >1M baud rates can be selected (thanks to Steffan). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1227 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-28USB_Init() no longer calls sei() to enable global interrupts - this must now ↵Dean
be done in the user application once all init code has run. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1219 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-16Increased throughput of the USBtoSerial demo on systems that send multiple ↵Dean
bytes per packet (thanks to Opendous Inc.). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1167 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-28Fix MIT license language to make its intent clearer.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1019 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-11-06Add double banking property to LUFA powered projects in the Projects ↵Dean
directory. Add guards to macro parameters to ensure that formulas passed as parameters don't mess up the internal macro structure. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@883 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-26Use clearer buffer names in the USBtoSerial project to prevent confusion.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@870 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-10-18Moved USBtoSerial demo the Projects directory, as it is simply an expanded ↵Dean
CDC demo. Added const qualifier to Endpoint/Pipe stream write routines. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@868 d5102386-fcda-11dd-9fdb-3debd5008f28