aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Drivers/USB/LowLevel/DevChapter9.h
AgeCommit message (Collapse)Author
2010-07-21Move and rename DevChaper9.c/.h and HostChapter9.c/.h to the HighLevel ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1397 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-17Renamed SERIAL_STREAM_ASSERT() macro to STDOUT_ASSERT().Dean
Minor tweaks to the library documentation. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1343 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-05-30Fixed internal device serial not being accessible on the ATMEGAXXU2 AVRs ↵Dean
(thanks to Axel Rohde). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1290 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-05-04Fixed device state not being reset back to the default state if the host ↵Dean
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). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1231 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-13Removed two-step endpoint/pipe bank clear and switch sequence for smaller, ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1207 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-03-29Add file-level brief documentation.Dean
Remove accidentally duplicated model-specific peripheral driver files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1180 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-24Fix incorrect error when directly including the LUFA internal USB library ↵Dean
components. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1156 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-24Revert changes made for the partial port to the AVR32 architecture.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1155 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-23More porting of the USB core to the AVR32.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1153 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-23Start porting the USB core to the AVR32 UC3B.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1152 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-11Add more include protection macros to give the user warnings when they try ↵Dean
to manually include private driver header files, instead of the public driver headers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1123 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-30Update copyright year to 2010.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1032 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-28Fix MIT license language to make its intent clearer.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1019 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-12-20Added new NO_DEVICE_SELF_POWER and NO_DEVICE_REMOTE_WAKEUP compile time options.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@994 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-05Renamed all library events to properly seperate out Device and Host mode ↵Dean
events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@718 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-03Cleanup and optimization of the internal serial retrieval routines.Dean
Renamed ATTR_NOINLINE to ATTR_NO_INLINE to fit with the rest of the library function attribute names. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@714 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-08-02Rename TOTAL_NUM_CONFIGURATIONS to FIXED_NUM_CONFIGURATIONS, to match the ↵Dean
existing FIXED_CONTROL_ENDPOINT_SIZE compile time option. Add FIXED_NUM_CONFIGURATIONS to the descriptors of each project using the option. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@712 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-16Added new TOTAL_NUM_CONFIGURATIONS option, removed ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@649 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-07-15Fix HID class device driver -- if a SetIDle request is issued with the LSB ↵Dean
of wValue set to zero, the idle period must be set for all HID interfaces. Fix Keyboard and Mouse demos, Idle period is now multiplied by 4 as the period is read into and sent out of the device to ensure it is always stored as a multiple of 1ms. Fixes Keyboard demo using an initial Idle period of 2s rather than 500ms (thanks to Brian Dickman). Move out the internal device serial descriptor reading routine into a seperate static function, rather than being part of USB_Device_GetDescriptor. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@648 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-22Corrected the ADC driver for the ATMEGA16U4 and ATMEGA32U4 (thanks to ↵Dean
Opendous Inc.). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@625 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-21Added new USE_INTERNAL_SERIAL define for using the unique serial numbers in ↵Dean
some AVR models as the USB device's serial number, added NO_INTERNAL_SERIAL compile time option to turn off new serial number reading code. Updated Mass Storage and CDC based demos to use the new device serial number if the device it is compiled for supports it. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@622 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-20Added USE_INTERNAL_SERIAL compile time option to automatically read out the ↵Dean
internal unique serial number as the device's serial number descriptor on supported AVR models. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@618 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-18Rewritten event system to remove all macros, to make user code clearer.Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@554 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-05-04Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@533 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-23Fixed USB_RemoteWakeupEnabled flag never being set (the REMOTE WAKEUP Set ↵Dean
Feature request was not being handled). Renamed the FEATURELESS_CONTROL_ONLY_DEVICE compile-time token to CONTROL_ONLY_DEVICE. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@523 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-22Documentation enhancements to improve documentation cross-references.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@522 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-22USB_HostRequest renamed to USB_ControlRequest, entire control request header ↵Dean
is now read into USB_ControlRequest in Device mode rather than having the library pass only partially read header data to the application. The USB_UnhandledControlPacket event has had its parameters removed, in favour of accessing the new USB_ControlRequest structure. The Endpoint control stream functions now correctly send a ZLP to the host when less data than requested is sent. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@520 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-17More documentation changes for better module-level documentation rather than ↵Dean
file-level documentation. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@513 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-16Fixed GenericHIDHost demo report write routine incorrect for control type ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@507 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-05Move StdRequestType.h, StreamCallbacks.h, USBMode.h from the LowLevel USB ↵Dean
driver directory to the HighLevel USB driver directory, where they are more suited. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@495 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-03-11Renamed NO_CLEARSET_FEATURE_REQUEST compile time token to ↵Dean
NO_FEATURELESS_CONTROL_ONLY_DEVICE and expanded its function to also remove parts of the Get Status chapter 9 request, to further reduce code usage. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@461 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-03-04Updated makefiles to reflect new dfu-ee programming target invocations ↵Dean
(supplied by Opendous, Inc.). Renamed the ATTR_ALWAYSINLINE function attribute macro to ATTR_ALWAYS_INLINE to match the style of the other function attribute macro names. Added ATTR_ALWAYS_INLINE attribute to several inlined library functions, to ensure they are inlined in all circumstances. Cleanups to Endpoint.h and Pipe.h. Added better documentation for the endpoint and pipe interrupts. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@450 d5102386-fcda-11dd-9fdb-3debd5008f28