aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/XPLAINBridge/XPLAINBridge.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed Benito project discarding incoming data from the USB virtual serial ↵Dean Camera2010-11-231-1/+1
| | | | | | port when the USART is busy. Minor documentation improvements.
* Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean Camera2010-11-051-2/+2
| | | | EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards.
* Fixed USBtoSerial and XPLAINBridge demos discarding data from the PC if the ↵Dean Camera2010-11-031-4/+10
| | | | send buffer becomes full.
* Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean Camera2010-10-281-1/+1
| | | | redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists.
* Clean up excessive whitespace at the end of each line using the wspurify ↵Dean Camera2010-10-131-11/+12
| | | | tool made by Laszlo Monda
* Changed the signature of the CALLBACK_USB_GetDescriptor() callback function ↵Dean Camera2010-08-241-1/+1
| | | | so that the descriptor pointer is const, to remove the need for extra casting inside the callback (thanks to Jonathan Kollasch).
* Removed complicated logic for the Endpoint_ConfigureEndpoint() function to ↵Dean Camera2010-08-091-12/+7
| | | | | | 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.
* Fix XPLAINBridge project discarding characters from the USB interface due to ↵Dean Camera2010-08-011-7/+11
| | | | | | | | | | | | | | 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.
* Fixed Serial peripheral driver not turning off the USART before ↵Dean Camera2010-07-311-1/+1
| | | | reconfiguring it, which would cause incorrect operation to occur (thanks to Bob Paddock).
* Altered the CDC Deivice and Host Class drivers' receive byte routines, so ↵Dean Camera2010-07-301-1/+2
| | | | | | 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.
* Update all demos, projects and bootloaders to indent all function ↵Dean Camera2010-07-211-1/+9
| | | | | | parameters, one per line, for better readability. Add missing const qualifiers to the demos.
* Added ability to set the serial baud rate via the user's terminal in the ↵Dean Camera2010-07-151-0/+10
| | | | XPLAINBridge project.
* Fixed possible buffer overrun in the XPLAINBridge project when in serial ↵Dean Camera2010-07-151-1/+1
| | | | bridge mode.
* Alter the ring buffer library headers to have both atomic and non-atomic ↵Dean Camera2010-07-121-6/+7
| | | | | | 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.
* Add glitch protection to the software UART in the XPLAINBridge project code, ↵Dean Camera2010-07-121-1/+1
| | | | so that very short glitches on the RX line don't cause a frame reception to occur.
* Major changes to the XPLAINBridge software UART code for performance and ↵Dean Camera2010-07-111-4/+15
| | | | reliability. New code reduces the number of missed characters and misread characters.
* Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific ↵Dean Camera2010-07-021-2/+2
| | | | | | 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.
* Moved calls to V2Params_UpdateParamValues() out of the main AVRISP-MKII and ↵Dean Camera2010-06-211-8/+5
| | | | XPLAINBridge project loops and into the AVRISP management function.
* Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as ↵Dean Camera2010-06-161-1/+1
| | | | the new 1.7 Doxygen's default stylesheet is much better.
* Oops - temp code left in the XPLAINBridge project which prevented it from ↵Dean Camera2010-06-121-2/+0
| | | | entering programmer mode.
* Slight improvements to the reliability of the software UART in the ↵Dean Camera2010-06-121-1/+3
| | | | XPLAINBridge project.
* Added new VTARGET_REF_VOLTS and VTARGET_SCALE_FACTOR compile time defines to ↵Dean Camera2010-05-271-6/+7
| | | | | | 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.
* Replace ring buffer library in Benito and USBtoSerial projects with the new ↵Dean Camera2010-05-261-2/+6
| | | | lightweight ring buffer header to improve reliability.
* Switch software UART over to timer 1 and remove timer prescaling to try to ↵Dean Camera2010-05-261-1/+1
| | | | prevent integer rounding errors and thus minimize the possible error of the UART code.
* Rename software USART driver globals to make the code more in line with the ↵Dean Camera2010-05-261-1/+1
| | | | rest of the XPLAINBridge project.
* Make software USART used in the XPLAINBridge project directly check and ↵Dean Camera2010-05-261-10/+2
| | | | store into the ring buffers, rather than polling from the main program loop to avoid added latency.
* Create a new LightweightRingBuffer.h header file for the XPLAIN project to ↵Dean Camera2010-05-261-28/+9
| | | | abstract out the new ring buffer without a performance penalty.
* The RingBuff library code has been replaced in the XPLAINBridge project with ↵Dean Camera2010-05-261-14/+28
| | | | an ultra lightweight buffer to help improve the reliability of the bridge.
* The LIBUSB_FILTERDRV_COMPAT compile time option in the XPLAINBridge and ↵Dean Camera2010-05-131-1/+1
| | | | | | 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.
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-240/+240
| | | | correctly converted to the target system's native end of line style.
* USB_Init() no longer calls sei() to enable global interrupts - this must now ↵Dean Camera2010-04-281-0/+1
| | | | be done in the user application once all init code has run.
* Add information request/response signal handler to the Bluetooth Host demo.Dean Camera2010-04-061-1/+1
| | | | Ensure that the AVRISP-MKII project's Windows avrdude compatibility define is named properly in all parts of the code.
* Added WIN_LIBUSB_COMPAT compile time option to the AVRISP programmer project ↵Dean Camera2010-03-311-6/+12
| | | | to make the code compatible with Windows builds of avrdude at the expense of AVRStudio compatibility.
* Double bank CDC endpoints in the XPLAIN Bridge project, re-enable JTAG once ↵Dean Camera2010-03-211-2/+6
| | | | the mode selection pin has been sampled.
* Clean up XPLAINBridge code.Dean Camera2010-02-161-10/+31
|
* Changed XPLAINBridge project to be both a USB to USART bridge and a PDI ↵Dean Camera2010-01-191-29/+99
| | | | programmer, based on the state of a mode select pin.
* Update copyright year to 2010.Dean Camera2009-12-301-2/+2
|
* Fix MIT license language to make its intent clearer.Dean Camera2009-12-281-7/+7
|
* Removed John Steggall's software UART code from the XPLAIN Bridge project ↵Dean Camera2009-12-021-1/+0
| | | | due to reliability issues.
* Enable pullup on the PD5 pin of the AVR in the XPLAINBridge project - this ↵Dean Camera2009-11-261-0/+2
| | | | is connected to the XMEGA's /RESET line, need to enable pullup to prevent spurrious resets.
* Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() ↵Dean Camera2009-11-251-1/+5
| | | | macro for setting a pipe's direction. Fixed CDCHost failing on devices with bidirectional endpoints.
* Added new XPLAIN serial Bridge project (thanks to John Steggall for the ↵Dean Camera2009-11-251-0/+133
software UART code).