aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers
Commit message (Collapse)AuthorAgeFilesLines
* Removed the automated checking of event names in the demo, project and ↵Dean Camera2010-07-156-19/+11
| | | | | | 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.
* Fixed HID device class driver still using PrevReportINBuffer for GetReport ↵Dean Camera2010-07-151-1/+1
| | | | control requests even when it has been set to NULL by the user application (thanks to Axel Rohde).
* Added const attributes to some of the class driver function parameters that ↵Dean Camera2010-07-1316-41/+43
| | | | were missing it.
* Add missing eol-style properties to new source files.Dean Camera2010-07-121-52/+52
|
* Make main readme file easier to read, and make documentation build ↵Dean Camera2010-07-061-2/+2
| | | | instructions clearer.
* Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific ↵Dean Camera2010-07-023-50/+72
| | | | | | 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.
* Renamed SERIAL_STREAM_ASSERT() macro to STDOUT_ASSERT().Dean Camera2010-06-1742-880/+887
| | | | Minor tweaks to the library documentation.
* Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as ↵Dean Camera2010-06-1616-28/+28
| | | | the new 1.7 Doxygen's default stylesheet is much better.
* Fix HID parser documentation for the default maximum report/path/etc. ↵Dean Camera2010-06-151-2/+2
| | | | elements so that it matches the current code values.
* Change over Doxygen \note documentation to \pre where applicable.Dean Camera2010-06-1513-114/+109
|
* Slight improvements to the reliability of the software UART in the ↵Dean Camera2010-06-121-1/+1
| | | | XPLAINBridge project.
* Speed up calls to Pipe_IsPipeBound() by immediately skipping unconfigured ↵Dean Camera2010-06-122-5/+8
| | | | pipes, rather than performing token check first.
* Add missing ATTR_NON_NULL_PTR_ARG and ATTR_ALWAYS_INLINE attributes to class ↵Dean Camera2010-06-0810-45/+63
| | | | driver functions.
* Fixed incorrect function references in the Mass Storage Class driver ↵Dean Camera2010-06-032-2/+4
| | | | documentation.
* More documentation fixes.Dean Camera2010-06-035-17/+17
|
* Minor documentation cleanups.Dean Camera2010-06-0330-68/+68
|
* Oops - descriptor pointer should be assigned, not incremented with the new ↵Dean Camera2010-06-021-1/+1
| | | | type-safe code.
* Better fix to avoid void pointer arithmetic in ConfigDescriptor.h to regain ↵Dean Camera2010-06-021-16/+4
| | | | C++ compatibility (thanks to Michael Hennebry).
* Remove void* arithmetic in the USB_GetNextDescriptor() static inline ↵Dean Camera2010-05-312-50/+61
| | | | function, to make the header file C++ compatible once again. Implement workaround for an obscure GCC bug which can cause incorrect code generation under some circumstances when the void* is re-cast.
* Small tweaks to ConfigDescriptor.c/.h to ensure pointers use the correct ↵Dean Camera2010-05-302-10/+8
| | | | type, and to remove const attribute from the descriptor comparator callback function pointer type define, and into the function prototype instead.
* Fixed internal device serial not being accessible on the ATMEGAXXU2 AVRs ↵Dean Camera2010-05-303-4/+7
| | | | (thanks to Axel Rohde).
* Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean Camera2010-05-2920-158/+158
|
* The EEPROM stream read/write functions now use eeprom_update_byte() instead ↵Dean Camera2010-05-262-6/+6
| | | | | | of eeprom_write_byte(), so that only changed bytes are written to EEPROM to preserve its lifespan. Changed over the AVRISP-MKII and TemperatureDataLogger projects to use eeprom_update_byte() when writing non-volatile parameters to EEPROM to preserve its lifespan.
* Added new ADC_DisableChannel() function (thanks to Mich Davis).Dean Camera2010-05-181-0/+43
|
* Remove incorrect check for the current device state in the Set Configuration ↵Dean Camera2010-05-131-3/+0
| | | | | | request handler of DevChapter9, which broke Set Configuration requests to the device under most circumstances. Move out the SPI prescaler list to a PROGMEM module-level variable in ISPTarget.c.
* Fixed possible device lockup when INTERRUPT_CONTROL_ENDPOINT is enabled and ↵Dean Camera2010-05-132-2/+6
| | | | the control endpoint is not properly selected when the ISR completes.
* Fix nasty bug in USBInterrupt.c which would cause a lockup if the control ↵Dean Camera2010-05-111-4/+4
| | | | endpoint was not selected at the point the USB endpoint interrupt fires when INTERRUPT_CONTROL_ENDPOINT is defined.
* Add new ReportType parameter to the HID class driver device callback and ↵Dean Camera2010-05-0916-80/+82
| | | | | | host report sending routines. Renamed internal Host mode Class driver descriptor comparator callback routines so that they all start with a uniform DCOMP_{Class Abbreviation}_ prefix.
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-08130-26336/+26336
| | | | correctly converted to the target system's native end of line style.
* Device mode class driver callbacks are now fired before the control request ↵Dean Camera2010-05-075-20/+15
| | | | | | status stage is sent to prevent the host from timing out if another request is immediately fired and the device has a lengthy callback routine. Inlined currently unused MIDI ProcessControlRequest routine.
* Change over unix line-endings to dos line endings.Dean Camera2010-05-071-1/+1
|
* Added new EVENT_CDC_Device_BreakSent() event and CDC_Host_SendBreak() ↵Dean Camera2010-05-065-2/+56
| | | | function to the Device and Host CDC Class drivers.
* Ensure that the CDC class drivers return 0 if the number of unread bytes is ↵Dean Camera2010-05-062-9/+18
| | | | queried and the bank has become empty.
* Fix up the ADC driver for the U4 parts to remove a typo on one of the ↵Dean Camera2010-05-041-2/+2
| | | | register names.
* Fixed INTERRUPT_CONTROL_ENDPOINT compile time option preventing other ↵Dean Camera2010-05-042-0/+4
| | | | interrupts from occuring while the control endpoint request is being processed, causing possible lockups if a USB interrupt occurs during a transfer.
* Fixed Host mode HID class driver not sending the correct report type when ↵Dean Camera2010-05-041-1/+1
| | | | HID_Host_SendReportByID() was called and the HID_HOST_BOOT_PROTOCOL_ONLY compile time option is set.
* Fixed device state not being reset back to the default state if the host ↵Dean Camera2010-05-042-23/+24
| | | | | | | | sets the address to 0x00. Fixed Set Configuration requests not being stalled until the host has set the device's address. Fixed possibility of internal signature retrieval being corrupted if an interrupt occurs during a signature byte read (thanks to Andrei Krainev).
* Added new ENDPOINT_*_BusSuspended error code to the Endpoint function, so ↵Dean Camera2010-05-034-5/+27
| | | | that the stream functions early-abort if the bus is suspended before or during a transfer.
* The Audio_Device_IsSampleReceived() and Audio_Device_IsReadyForNextSample() ↵Dean Camera2010-04-292-31/+27
| | | | functions are now inline, to reduce overhead.
* Use puts_P() and printf_P() instead of the normal variants where possible in ↵Dean Camera2010-04-281-10/+4
| | | | the Host mode Class Driver demos.
* Oops - relocated USBInterrupt.h header file requires adjusted include paths ↵Dean Camera2010-04-281-3/+3
| | | | for the other USB driver header files.
* Relocate USBInterrupt.c/.h from the HighLevel USB driver directory to the ↵Dean Camera2010-04-285-8/+7
| | | | LowLevel directory as it is hardware-dependent.
* USB_Init() no longer calls sei() to enable global interrupts - this must now ↵Dean Camera2010-04-282-4/+6
| | | | be done in the user application once all init code has run.
* Fixed HID Device Class Driver not allocating a temporary buffer when the ↵Dean Camera2010-04-202-4/+9
| | | | | | host requests a report via the control endpoint and the user has set the PrevReportINBuffer driver configuration element to NULL (thanks to Lars Noschinski). Clean up incomplete BluetoothHost debugging commands to use GCC extension to avoid NULL parameters when no formatting is required.
* Rename FunctionAttributes.h to Attributes.h, as some attributes are ↵Dean Camera2010-04-152-5/+5
| | | | | | | | applicable to variables also. Add new ATTR_NOINIT attribute for global variables. Add the beginnings of a SDP implentation to the incomplete BluetoothHost demo. Add const attribute to the Mass Storage Host driver functions where it was applicable, but missing.
* Fixed Set/Clear Feature requests directed to a non-configured endpoint not ↵Dean Camera2010-04-142-15/+15
| | | | | | returning a stall to the host. Make TeensyHID bootloader use an 8 byte control endpoint to match the official Teensy, just in case Paul decides to authenticate on that attribute in the future.
* Removed two-step endpoint/pipe bank clear and switch sequence for smaller, ↵Dean Camera2010-04-1312-29/+69
| | | | | | | | faster endpoint/pipe code. Added spacing between multiple paragraphs in Doxygen \note sections. Removed call to the clock prescaler reset function in the Teensy bootloader to save space - the user application is accessed via a watchdog reset anyway, so the prescale reset would only affect the speed of the bootloader itself.
* Oops, incorrectly edited the Benito buttons driver file instead of the ↵Dean Camera2010-03-303-20/+15
| | | | | | JM-DB-U2 buttons driver file. Fix up preprocessor guards in the new board driver files.
* Add missing board Buttons driver for the USBTINY MKII board target.Dean Camera2010-03-302-0/+99
|
* Oops - make sure board driver dispatch headers test for the correct BOARD ↵Dean Camera2010-03-304-8/+112
| | | | | | define values. Add button support for the BENITO board target.