aboutsummaryrefslogtreecommitdiff
path: root/Projects/XPLAINBridge/XPLAINBridge.c
AgeCommit message (Collapse)Author
2012-05-21Oops - mask out the endpoint address direction when comparing the IN and OUT ↵Dean
endpoint indexes in the AVRISP-MKII clone and XPLAINBridge projects. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2235 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-05-21Fix AVRISP-MKII clone and XPLAINBridge projects not properly configuring the ↵Dean
AVRISP IN endpoint when needed if RESET_TOGGLES_LIBUSB_COMPAT compile time option is used. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2234 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-05-20Alter the XPLAINBridge and AVRISP-MKII clone projects so that the ↵Dean
descriptors from the AVRISP-MKII clone project can be directly used in the XPLAINBridge project. Add support for RESET_TOGGLES_LIBUSB_COMPAT option in the XPLAINBridge project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2231 d5102386-fcda-11dd-9fdb-3debd5008f28
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-07-11Minor demo/project documentation and style fixes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1853 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-08Correct UC3 global interrupt functions.Dean
Replace all calls and references to _delay_ms() in the code with the architecture-agnostic Delay_MS() function. Improve code generation for the Delay_MS() function on the AVR8 architecture when called with a constant input. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1730 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-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-24Changed the signature of the CALLBACK_USB_GetDescriptor() callback function ↵Dean
so that the descriptor pointer is const, to remove the need for extra casting inside the callback (thanks to Jonathan Kollasch). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1452 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-21Update all demos, projects and bootloaders to indent all function ↵Dean
parameters, one per line, for better readability. Add missing const qualifiers to the demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1400 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-15Added ability to set the serial baud rate via the user's terminal in the ↵Dean
XPLAINBridge project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1390 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-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-07-12Add glitch protection to the software UART in the XPLAINBridge project code, ↵Dean
so that very short glitches on the RX line don't cause a frame reception to occur. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1371 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-11Major changes to the XPLAINBridge software UART code for performance and ↵Dean
reliability. New code reduces the number of missed characters and misread characters. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1370 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-02Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific ↵Dean
functions that are more complicated than simple macros. Moved USB_Device_SendRemoteWakeup() to the new Device.c source file and corrected it to unfreeze and restart the USB controller clock before issuing a Remote Wakeup request. Removed the USB_Device_IsRemoteWakeupSent() and USB_Device_IsUSBSuspended() macros, as they are now obsolete. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1358 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-21Moved calls to V2Params_UpdateParamValues() out of the main AVRISP-MKII and ↵Dean
XPLAINBridge project loops and into the AVRISP management function. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1345 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-16Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as ↵Dean
the new 1.7 Doxygen's default stylesheet is much better. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1341 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-12Oops - temp code left in the XPLAINBridge project which prevented it from ↵Dean
entering programmer mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1331 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-12Slight improvements to the reliability of the software UART in the ↵Dean
XPLAINBridge project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1330 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-27Added new VTARGET_REF_VOLTS and VTARGET_SCALE_FACTOR compile time defines to ↵Dean
the AVRISP-MKII programmer project to set the VTARGET reference voltage and scale factor. Fixed XPLAINBridge project not correctly reading the XMEGA's supply voltage when reporting back to the host. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1287 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-26Switch software UART over to timer 1 and remove timer prescaling to try to ↵Dean
prevent integer rounding errors and thus minimize the possible error of the UART code. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1281 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-26Rename software USART driver globals to make the code more in line with the ↵Dean
rest of the XPLAINBridge project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1280 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-26Make software USART used in the XPLAINBridge project directly check and ↵Dean
store into the ring buffers, rather than polling from the main program loop to avoid added latency. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1279 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-26Create a new LightweightRingBuffer.h header file for the XPLAIN project to ↵Dean
abstract out the new ring buffer without a performance penalty. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1278 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-26The RingBuff library code has been replaced in the XPLAINBridge project with ↵Dean
an ultra lightweight buffer to help improve the reliability of the bridge. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1277 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-13The LIBUSB_FILTERDRV_COMPAT compile time option in the XPLAINBridge and ↵Dean
AVRISP-MKII projects has been renamed LIBUSB_DRIVER_COMPAT, as it applies to all software on all platforms using the libUSB driver. Fix Benito makefile which was accidentally changed during testing. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1255 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-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-04-06Add information request/response signal handler to the Bluetooth Host demo.Dean
Ensure that the AVRISP-MKII project's Windows avrdude compatibility define is named properly in all parts of the code. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1195 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-31Added WIN_LIBUSB_COMPAT compile time option to the AVRISP programmer project ↵Dean
to make the code compatible with Windows builds of avrdude at the expense of AVRStudio compatibility. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1190 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-21Double bank CDC endpoints in the XPLAIN Bridge project, re-enable JTAG once ↵Dean
the mode selection pin has been sampled. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1171 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-16Clean up XPLAINBridge code.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1133 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-19Changed XPLAINBridge project to be both a USB to USART bridge and a PDI ↵Dean
programmer, based on the state of a mode select pin. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1050 d5102386-fcda-11dd-9fdb-3debd5008f28