Dean Camera
bd85422d2b
Added the --suppress-bootloader-mem option to the makefile dfu target, to ensure that writes to the bootloader section of the AVR's flash memory are ignored (thanks to Axel Rohde).
...
Fixed incorrect command name for EEPROM memory programming in the makefile dfu-ee target.
Makefile whitespace fixes.
2010-09-24 06:45:11 +00:00
Dean Camera
6d2f091cec
Make project makefiles correctly clean intermeditary build files from assembly and C++ sources (thanks to Daniel Czigany).
2010-09-15 03:00:29 +00:00
Dean Camera
b3c6599bb7
Remove remaining void* descriptor casts in the projects and demos that were not removed when the GetDescriptor callback function's signature was altered.
2010-08-29 13:21:14 +00:00
Dean Camera
263178fbb6
Add better description of the Ultra-Lightweight Ring Buffer header files.
2010-08-29 07:49:36 +00:00
Dean Camera
092f82e06f
Changed the signature of the CALLBACK_USB_GetDescriptor() callback function so that the descriptor pointer is const, to remove the need for extra casting inside the callback (thanks to Jonathan Kollasch).
2010-08-24 13:02:38 +00:00
Dean Camera
508e905d8d
Removed complicated logic for the Endpoint_ConfigureEndpoint() function to 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.
2010-08-09 10:20:10 +00:00
Dean Camera
5f3a1b2629
Fix invocations of avr-size in all makefiles broken on unpatched *nix systems, due to the recent update to the latest WinAVR makefile template.
2010-08-08 08:30:42 +00:00
Dean Camera
48c5cdced4
Hide the PROGMEM attribute from Doxygen, as it appears to confuse the parser in some situations.
2010-08-02 08:53:23 +00:00
Dean Camera
ff09cf9c73
Fix XPLAINBridge project discarding characters from the USB interface due to 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.
2010-08-01 14:03:13 +00:00
Dean Camera
9597b33c33
Fixed Serial peripheral driver not turning off the USART before reconfiguring it, which would cause incorrect operation to occur (thanks to Bob Paddock).
2010-07-31 06:55:47 +00:00
Dean Camera
0f45b9c8e0
More spell checking of all source files -- correct missed errors, switch to EN-GB spelling dictionary.
2010-07-30 09:48:35 +00:00
Dean Camera
24e621a8d8
Altered the CDC Deivice and Host Class drivers' receive byte routines, so 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.
2010-07-30 03:52:11 +00:00
Dean Camera
28401f7bb7
Spell check all source files once again to find any typos.
2010-07-29 16:20:45 +00:00
Dean Camera
6bda628718
Update all demos, projects and bootloaders to indent all function parameters, one per line, for better readability.
...
Add missing const qualifiers to the demos.
2010-07-21 16:19:32 +00:00
Dean Camera
6b5e684c77
Update makefiles to use the latest WinAVR/Atmel toolchain makefile template.
...
Add new module source variables to the library core makefile, so that module sources can be added to a project's makefile on a per-module rather than per-file basis.
2010-07-19 14:00:44 +00:00
Dean Camera
42ac34b484
Change over all makefiles to use C99 standards mode, rather than C99 + GNU Extensions.
2010-07-18 07:31:57 +00:00
Dean Camera
9299735c75
Disable strict aliasing explicitly in the project makefiles, as this is apparently enabled by default in newer AVR-GCC builds, and aliasing is used heavily for type-punning through the LUFA and third party library's codebase.
2010-07-15 17:13:33 +00:00
Dean Camera
f4710f6f86
Removed the automated checking of event names in the demo, project and bootloader makefiles due to inconsistancies between the behaviour of the command line tools used to perform the check on each platform.
...
Removed the internal endpoint and pipe memory allocation macros, as this is already performed directly in the code. Simplify the endpoint and pipe reset procedure.
2010-07-15 16:45:26 +00:00
Dean Camera
dfe50ff349
Added ability to set the serial baud rate via the user's terminal in the XPLAINBridge project.
2010-07-15 11:01:31 +00:00
Dean Camera
e2e1fe5aad
Fixed possible buffer overrun in the XPLAINBridge project when in serial bridge mode.
2010-07-15 04:45:31 +00:00
Dean Camera
d83cc9ac80
Change AVRISP-MKII and XPLAINBridge descriptors to indicate that the device is bus-powered only. Add compile time options to reduce the compiled size of the firmware.
2010-07-13 14:17:18 +00:00
Dean Camera
3904c1a606
Add remaining AVRStudio project files to the library projects.
2010-07-13 04:39:54 +00:00
Dean Camera
ae9dab1398
Add missing clean_doxygen phony targets to the project makefiles.
2010-07-12 10:18:18 +00:00
Dean Camera
8de31cbb78
Reduce prescaler of the flush timer in the USBtoSerial demo, so that buffer overruns will not occur regardless of hardware and baud rate settings.
2010-07-12 07:11:50 +00:00
Dean Camera
0bcc82ac28
Alter the ring buffer library headers to have both atomic and non-atomic 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.
2010-07-12 07:04:19 +00:00
Dean Camera
3fd246041b
Add glitch protection to the software UART in the XPLAINBridge project code, so that very short glitches on the RX line don't cause a frame reception to occur.
2010-07-12 02:23:11 +00:00
Dean Camera
229935184b
Major changes to the XPLAINBridge software UART code for performance and reliability. New code reduces the number of missed characters and misread characters.
2010-07-11 14:14:08 +00:00
Dean Camera
8b053d6ba5
Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific 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.
2010-07-02 03:37:19 +00:00
Dean Camera
55d7e1e65b
Make XPLAINBridge serial bridge much more reliable for the reception of characters from the XMEGA through the software UART interface.
2010-06-24 08:12:27 +00:00
Dean Camera
ad29e79b94
Maximise the size of the ring buffers in the Benito/XPLAINBridge/USBtoSerial projects, so that they should never become full under normal conditions.
2010-06-24 07:42:18 +00:00
Dean Camera
988604b25d
Moved calls to V2Params_UpdateParamValues() out of the main AVRISP-MKII and XPLAINBridge project loops and into the AVRISP management function.
2010-06-21 13:39:56 +00:00
Dean Camera
711542ee89
Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as the new 1.7 Doxygen's default stylesheet is much better.
2010-06-16 11:01:01 +00:00
Dean Camera
d57e7369a2
Oops - temp code left in the XPLAINBridge project which prevented it from entering programmer mode.
2010-06-12 08:52:44 +00:00
Dean Camera
036a156ff4
Slight improvements to the reliability of the software UART in the XPLAINBridge project.
2010-06-12 08:39:12 +00:00
Dean Camera
5fa0e9c007
Oops - light weight ring buffer documentation used \ref instead of \param to document function parameters.
2010-06-10 01:30:32 +00:00
Dean Camera
b02217d745
Add missing documentation to the lightweight ring buffer code in the XPLAINBridge project.
2010-06-10 01:26:10 +00:00
Dean Camera
fc92f9969c
Minor documentation cleanups.
2010-06-03 15:32:45 +00:00
Dean Camera
3b95b8dedc
Added new VTARGET_REF_VOLTS and VTARGET_SCALE_FACTOR compile time defines to 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.
2010-05-27 10:36:21 +00:00
Dean Camera
8d993afc53
Replace ring buffer library in Benito and USBtoSerial projects with the new lightweight ring buffer header to improve reliability.
2010-05-26 13:26:10 +00:00
Dean Camera
bb9fb1051c
Add better documentation to the Software UART code in the XPLAINBridge project.
2010-05-26 08:10:35 +00:00
Dean Camera
1c407b9669
Switch software UART over to timer 1 and remove timer prescaling to try to prevent integer rounding errors and thus minimize the possible error of the UART code.
2010-05-26 07:51:25 +00:00
Dean Camera
f64e3db07a
Rename software USART driver globals to make the code more in line with the rest of the XPLAINBridge project.
2010-05-26 07:35:27 +00:00
Dean Camera
79742c5d24
Make software USART used in the XPLAINBridge project directly check and store into the ring buffers, rather than polling from the main program loop to avoid added latency.
2010-05-26 06:59:55 +00:00
Dean Camera
9b29d1dc50
Create a new LightweightRingBuffer.h header file for the XPLAIN project to abstract out the new ring buffer without a performance penalty.
2010-05-26 06:35:02 +00:00
Dean Camera
9c037a952f
The RingBuff library code has been replaced in the XPLAINBridge project with an ultra lightweight buffer to help improve the reliability of the bridge.
2010-05-26 06:15:05 +00:00
Dean Camera
776485a6c5
Remove obsolete entry from the Doxygen configuration files.
2010-05-23 08:39:02 +00:00
Dean Camera
a883cf65dc
Renamed CDC device class demos' ManagementEndpoint descriptor to NotificationEndpoint to more accurately indicate its purpose.
2010-05-20 06:15:21 +00:00
Dean Camera
d3c623e1e1
The LIBUSB_FILTERDRV_COMPAT compile time option in the XPLAINBridge and 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.
2010-05-13 07:31:27 +00:00
Dean Camera
071e02c6b6
Add svn:eol-style property to source files, so that the line endings are correctly converted to the target system's native end of line style.
2010-05-08 03:12:14 +00:00
Dean Camera
e331b531c6
Change over instances of "make" in the makefiles to "$(MAKE)" to allow for the make tool to be overridden.
2010-05-07 07:11:25 +00:00
Dean Camera
9c8bd6ed9b
Remove incorrect Abstract Call Management class specific descriptor from the CDC demos, bootloaders and projects.
2010-05-06 11:32:55 +00:00
Dean Camera
e977774d4e
Relocate USBInterrupt.c/.h from the HighLevel USB driver directory to the LowLevel directory as it is hardware-dependent.
2010-04-28 08:15:16 +00:00
Dean Camera
59c4871f80
USB_Init() no longer calls sei() to enable global interrupts - this must now be done in the user application once all init code has run.
2010-04-28 07:48:26 +00:00
Dean Camera
fc8e4837a9
Add const keyword to the demo function parameters where possible.
2010-04-18 12:10:30 +00:00
Dean Camera
ee74b4948f
Add information request/response signal handler to the Bluetooth Host demo.
...
Ensure that the AVRISP-MKII project's Windows avrdude compatibility define is named properly in all parts of the code.
2010-04-06 02:48:47 +00:00
Dean Camera
c9148f9b47
Added WIN_LIBUSB_COMPAT compile time option to the AVRISP programmer project to make the code compatible with Windows builds of avrdude at the expense of AVRStudio compatibility.
2010-03-31 09:20:24 +00:00
Dean Camera
49b09a2042
Standardized the naming scheme given to configuration descriptor sub-elements in the Device mode demos, bootloaders and projects.
...
Fix errors in the MouseHostWithParser demo from incorrect use of the HID_ALIGN_DATA() macro.
2010-03-22 07:12:25 +00:00
Dean Camera
5227ca4ce2
Double bank CDC endpoints in the XPLAIN Bridge project, re-enable JTAG once the mode selection pin has been sampled.
2010-03-21 12:21:13 +00:00
Dean Camera
c77b30e9e6
Clean up XPLAINBridge code.
2010-02-16 13:12:59 +00:00
Dean Camera
15f84bb8f5
New BOARD value option BOARD_NONE (equivelent to not specifying BOARD) which will remove all board hardware drivers which do not adversely affect the code operation (currently only the LEDs driver).
...
Spell-check code/comments in the Webserver/AVRISP-MKII projects.
2010-02-04 02:27:09 +00:00
Dean Camera
77e86e7d82
Exlude the "INCLUDE_FROM_*" macros from the individual project's documentation.
2010-02-03 00:57:49 +00:00
Dean Camera
254a0c1ae8
Update driver INF files - change manufacturer name from the original template's name to the Four Walled Cubicle website.
2010-01-29 06:32:20 +00:00
Dean Camera
5f776f4785
Fix up project documentation files' overview tables, so that multiple items occupy multiple lines in the same cell, rather than multiple cells.
2010-01-28 13:17:36 +00:00
Dean Camera
4f96283761
Add missing AVRISPDescriptors.c/.h files to the XPLAINBridge project.
2010-01-25 13:07:54 +00:00
Dean Camera
db420853ce
Add Webserver project Doxygen configuration file and overview document.
...
Fix Doxygen configuration files' input file exclusion filters.
2010-01-25 12:46:57 +00:00
Dean Camera
1d2bc47eba
Clean up of the altered XPLAINBridge project.
2010-01-19 05:38:21 +00:00
Dean Camera
60fd0ff418
Changed XPLAINBridge project to be both a USB to USART bridge and a PDI programmer, based on the state of a mode select pin.
2010-01-19 05:27:58 +00:00
Dean Camera
efb6c35778
Update Doxygen configuration files to the latest Doxygen version.
2010-01-06 13:37:29 +00:00
Dean Camera
7f9f97c792
Update copyright year to 2010.
2009-12-30 23:49:19 +00:00
Dean Camera
d4ca7fb44c
Fix MIT license language to make its intent clearer.
2009-12-28 00:34:20 +00:00
Dean Camera
b408a5fe62
Add const qualifier to the parameters of Projects' functions where possible.
2009-12-20 06:23:24 +00:00
Dean Camera
4f74075fad
Speed up bit-banged USART code in the AVRISP project.
...
Fix project text files to refer to "project" instead of "demo".
2009-12-15 11:12:38 +00:00
Dean Camera
f69f03cb0d
Started implementing the low level PDI protocol in the AVRISP project, for XMEGA device programming.
2009-12-03 00:53:45 +00:00
Dean Camera
f92b56191d
Add new more reliable software UART for the XPLAINBridge project by David Prentice and Peter Danneger.
2009-12-02 14:19:06 +00:00
Dean Camera
fec31947a6
Removed John Steggall's software UART code from the XPLAIN Bridge project due to reliability issues.
2009-12-02 14:03:57 +00:00
Dean Camera
e5057fec8e
Enable pullup on the PD5 pin of the AVR in the XPLAINBridge project - this is connected to the XMEGA's /RESET line, need to enable pullup to prevent spurrious resets.
2009-11-26 13:59:11 +00:00
Dean Camera
f37d21bbe9
Updated John Steggall's software USART in the XPLAINBridge project.
2009-11-26 01:17:29 +00:00
Dean Camera
50f4a3b625
Fix build and Doxygen errors.
2009-11-25 03:56:51 +00:00
Dean Camera
8c6c27d88b
Added new RNDISHost Host LowLevel demo. Fixed misnamed Pipe_SetPipeToken() macro for setting a pipe's direction. Fixed CDCHost failing on devices with bidirectional endpoints.
2009-11-25 03:26:57 +00:00
Dean Camera
c05c7c7df4
Added new XPLAIN serial Bridge project (thanks to John Steggall for the software UART code).
2009-11-25 00:36:18 +00:00