aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/Device.h
Commit message (Collapse)AuthorAgeFilesLines
* Initial restructuring of the core USB driver module to support multiple ↵Dean Camera2011-02-191-247/+0
| | | | architectures in the future.
* Add new ARCH option to the makefiles to (eventually) specify the target ↵Dean Camera2011-02-191-1/+1
| | | | device architecture. Update non-usb peripheral drivers to reflect future multiple architecture support.
* Minor documentation improvements.Dean Camera2011-01-081-10/+10
|
* Update copyright year on all source files.Dean Camera2011-01-011-2/+2
|
* Move RNDISConstants.h into the RNDIS class driver common definition header.Dean Camera2010-10-281-1/+4
| | | | Add logical grouping of related #define values for better Doxygen documentation.
* 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-19/+20
| | | | tool made by Laszlo Monda
* Added new NO_SOF_EVENTS compile time option, enabled in the bootloaders to ↵Dean Camera2010-10-071-18/+24
| | | | reduce the compiled binary size.
* Changed default value for the reset polarity parameter in the AVRISP-MKII ↵Dean Camera2010-09-291-1/+7
| | | | | | project so that it defaults to active low drive. Fixed incorrect USB_DeviceState value when unconfiguring the device without an address set.
* Ensure device address latch bit is not set at the same time as the new ↵Dean Camera2010-09-191-1/+2
| | | | | | | | address, as per datasheet. Minor documentation fixes. Fix broken USB host mode due to the USB frame counter not being updated during the early enumeration steps, causing USB_Host_DelayMS() to spinloop forever.
* Added new USB_Device_GetFrameNumber() and USB_Host_GetFrameNumber() ↵Dean Camera2010-09-051-0/+8
| | | | | | | | functions to retrieve the current USB frame number. Added new USB_Host_EnableSOFEvents(), USB_Host_DisableSOFEvents() and EVENT_USB_Host_StartOfFrame() for the user application handling of USB Start of Frame events while in USB Host mode. Changed over all demos, drivers and internal functions to use the current frame number over the Start of Frame flag where possible to free up the Start of Frame flag for interrupt use in the user application.
* Better documentation for the Endpoint_ConfigureEndpoint() and ↵Dean Camera2010-08-241-1/+1
| | | | Pipe_ConfigurePipe() functions.
* 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).
* Fix Doxygen typos in Device.h.Dean Camera2010-08-241-3/+3
|
* Update size of compiled Mouse demo in documentation, fix indenting in Device.h.Dean Camera2010-07-231-1/+1
|
* Convert over internal pseudo-function macros to true inline functions for ↵Dean Camera2010-07-221-22/+40
| | | | added type-safety and compile-checking.
* Add missing const qualifiers to class drivers.Dean Camera2010-07-211-6/+7
| | | | Indent core library function parameters so that there is only one parameter per line, to increase readability.
* Move and rename DevChaper9.c/.h and HostChapter9.c/.h to the HighLevel ↵Dean Camera2010-07-211-2/+5
| | | | | | | | directory, new named DeviceStandardReq.c/.h and HostStandardReq.c/.h. Rename LowLevel.c/.h to USBController.c/.h. Remove dependancies on the complete <avr/io.h> header in the HighLevel USB driver directory, to ensure less work is required in later (possible) ports.
* Removed the automated checking of event names in the demo, project and ↵Dean Camera2010-07-151-0/+5
| | | | | | 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.
* Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific ↵Dean Camera2010-07-021-50/+19
| | | | | | 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-171-1/+1
| | | | Minor tweaks to the library documentation.
* More documentation fixes.Dean Camera2010-06-031-1/+1
|
* Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean Camera2010-05-291-12/+12
|
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-226/+226
| | | | correctly converted to the target system's native end of line style.
* Removed two-step endpoint/pipe bank clear and switch sequence for smaller, ↵Dean Camera2010-04-131-0/+1
| | | | | | | | 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.
* Add file-level brief documentation.Dean Camera2010-03-291-1/+10
| | | | Remove accidentally duplicated model-specific peripheral driver files.
* Fix incorrect error when directly including the LUFA internal USB library ↵Dean Camera2010-02-241-1/+1
| | | | components.
* Revert changes made for the partial port to the AVR32 architecture.Dean Camera2010-02-241-37/+16
|
* More AVR32 achitecture ports.Dean Camera2010-02-241-1/+1
|
* More porting of the USB core to the AVR32.Dean Camera2010-02-231-1/+1
|
* Start porting the USB core to the AVR32 UC3B.Dean Camera2010-02-231-15/+36
|
* Add more include protection macros to give the user warnings when they try ↵Dean Camera2010-02-111-0/+4
| | | | to manually include private driver header files, instead of the public driver headers.
* 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
|
* Added new NO_DEVICE_SELF_POWER and NO_DEVICE_REMOTE_WAKEUP compile time options.Dean Camera2009-12-201-5/+9
|
* Spell check all source code variables, comments and strings.Dean Camera2009-11-091-1/+1
|
* Added new EVENT_USB_Device_StartOfFrame() event, controlled by the new ↵Dean Camera2009-08-161-0/+15
| | | | USB_Device_EnableSOFEvents() and USB_Device_DisableSOFEvents() macros to give bus-synchronised millisecond interrupts when in USB device mode.
* Renamed USB_Device_SetHighSpeed() to USB_Device_SetFullSpeed() so that the ↵Dean Camera2009-07-311-1/+1
| | | | | | correct terminology is used (thanks to Brian Dickman). Fix USB_PLL_Off() call in the series 4, 6 and 7 microcontroller disconnect interrupt handler code, which wasn't guarded by a test of USB_Options to check if the user has specified manual PLL control (thanks to Brian Dickman).
* Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean Camera2009-07-211-1/+30
| | | | | | | | | | | | USB state. Added new Endpoint_ClearStatusStage() convenience function to assist with the status stages of control transfers. Removed vague USB_IsConnected global - test USB_DeviceState or USB_HostState explicitly to gain previous functionality. Removed USB_IsSuspended global - test USB_DeviceState against DEVICE_STATE_Suspended instead. Fixed possible enumeration errors from spinloops which may fail to exit if the USB connection is severed before the exit condition becomes true.
* Added new TOTAL_NUM_CONFIGURATIONS option, removed ↵Dean Camera2009-07-161-1/+8
| | | | | | USE_SINGLE_DEVICE_CONFIGURATION compile time option (but silently convert it to USE_SINGLE_DEVICE_CONFIGURATION internally for compatibility). Added new USE_FLASH_DESCRIPTORS compile time option. By default, descriptors can now lie in mixed memory spaces (specified by a new parameter to the CALLBACK_USB_GetDescriptor() function) unless one of the USE_*_DESCRIPTORS compile time option is specified.
* Added const modifiers to device mode class drivers.Dean Camera2009-06-281-9/+9
| | | | | | Added parameter directions to function parameter documentation. Added new experimental FAST_STREAM_FUNCTIONS compile time option to speed up stream transfers at the expense of a higher FLASH consumption (needs testing to verify improved throughput).
* Changed per-device controller preprocessor checks over to per-device series ↵Dean Camera2009-06-141-1/+6
| | | | | | for better device control. Fixed error in Endpoint.c using HSOFI rather than SOFI for counting elapsed milliseconds.
* Fix all device mode demos broken in the recent API changes.Dean Camera2009-05-261-3/+2
| | | | Change USBtoSerial Tx to polling-driven rather than interrupt driven, to ensure more time for the Rx interrupt to be serviced.
* Deleted StdDescriptors.c, renamed USB_GetDescriptor() to ↵Dean Camera2009-05-221-12/+24
| | | | CALLBACK_USB_GetDescriptor, moved ConfigDescriptor.c/.h from the LUFA/Drivers/USB/Class/ directory to LUFA/Drivers/USB/HighLevel/ in preperation for the new USB class APIs.
* Rewritten event system to remove all macros, to make user code clearer.Dean Camera2009-05-181-1/+1
| | | | | | | | Fixed incorrect ENDPOINT_EPNUM_MASK mask preventing endpoints above EP3 from being selected (thanks to Jonathan Oakley). Removed STREAM_CALLBACK() macro - callbacks now use regular function definitions to clarify user code. Removed DESCRIPTOR_COMPARATOR() macro - comparators should now use regular function definitions to clarify user code.
* Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent ↵Dean Camera2009-05-041-3/+3
| | | | | | problems with faulty devices which do not respect the given wLength value when reading in the device descriptor. Further documentation improvements - removed file view from the main library documentation, replaced file references in the documentation with group references.
* Documentation enhancements to improve documentation cross-references.Dean Camera2009-04-221-9/+9
|
* Fixed incorrect HID interface class and subclass values in the Mouse and ↵Dean Camera2009-04-191-1/+1
| | | | | | | | KeyboardMouse demos (thanks to Brian Dickman). Capitolised the "Descriptor_Search" and "Descriptor_Search_Comp" prefixes of the values in the DSearch_Return_ErrorCodes_t and DSearch_Comp_Return_ErrorCodes_t enums. Minor documentation improvements.
* More documentation changes for better module-level documentation rather than ↵Dean Camera2009-04-171-7/+2
| | | | file-level documentation.
* Fixed GenericHIDHost demo report write routine incorrect for control type ↵Dean Camera2009-04-161-35/+55
| | | | | | | | | | | | | | | | | | requests (thanks to Andrei Krainev). Removed Endpoint_ClearCurrentBank() and Pipe_ClearCurrentBank() in favour of new Endpoint_ClearIN(), Endpoint_ClearOUT(), Endpoint_ClearControlIN(), Endpoint_ClearControlOUT(), Pipe_ClearIN(), Pipe_ClearOUT(), Pipe_ClearControlIN() and Pipe_ClearControlOUT() macros (done to allow for the detection of packets of zero length). Renamed *_ReadWriteAllowed() macros to *_IsReadWriteAllowed() to remain consistent with the rest of the LUFA API. Endpoint_IsSetupReceived() macro has been renamed to Endpoint_IsSETUPReceived(), Endpoint_ClearSetupReceived() macro has been renamed to Endpoint_ClearControlSETUP(), the Pipe_IsSetupSent() macro has been renamed to Pipe_IsSETUPSent() and the Pipe_ClearSetupSent() macro is no longer applicable and should be removed - changes made to compliment the new endpoint and pipe bank management API. Updated all demos, bootloaders and projects to use the new endpoint and pipe management APIs (thanks to Roman Thiel). Updated library doxygen documentation, added groups, changed documentation macro functions to real functions for clarity. Removed old endpoint and pipe aliased read/write/discard routines which did not have an explicit endian specifier for clarity. Removed the ButtLoadTag.h header file, as no one used for its intended purpose anyway.