aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Common/Common.h
AgeCommit message (Collapse)Author
2011-01-08Minor documentation improvements.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1626 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-01Update copyright year on all source files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1622 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-26Fix compile errors from the changes to the SerialStream and board ↵Dean
Temperature drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1618 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-26Added basic driver example use code to the library documentation.Dean
Made the USARTStream global public and documented in the SerialStream module, allowing for the serial USART stream to be accessed via its handle rather than via the implicit stdout and stdin streams. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1615 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-26Make a new general RingBuffer.h misc library driver, instead of the ↵Dean
per-application LightweightRingBuff.h ring buffers. Change over projects to use the new driver. Add ORDERED_EP_CONFIG to the device Projects (only) that use only a single class driver, or where the endpoint ordering is fixed, to save on compiled binary size. Added new GCC_FORCE_POINTER_ACCESS() macro to correct GCC's mishandling of struct pointers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1614 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-28Changed over www.fourwalledcubicle.com links to the new www.lufa-lib.org ↵Dean
redirect domain, including the new aliased links for LUFA-related pages such as the various download/source control mirrors and support lists. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1541 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-13Clean up excessive whitespace at the end of each line using the wspurify ↵Dean
tool made by Laszlo Monda git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1524 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-22Reverted modifications to USBInterrupt.h that were intefering with correct ↵Dean
host mode operation. Fixed SUSPI interrupt not being cleared during device mode enumeration, causing accidental mis-fires on re-enumeration. Fixed JTAG_DEBUG_POINT() and JTAG_DEBUG_BREAK() macros not compiling under pure C99 standards mode. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1493 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-30Oops - fix mixed "initialize" and "initialise" - opt for American spelling ↵Dean
due to its wide use in technical standards. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1427 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-30More spell checking of all source files -- correct missed errors, switch to ↵Dean
EN-GB spelling dictionary. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1426 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-29Spell check all source files once again to find any typos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1420 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-21Add missing const qualifiers to class drivers.Dean
Indent core library function parameters so that there is only one parameter per line, to increase readability. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1398 d5102386-fcda-11dd-9fdb-3debd5008f28
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-07-09Rewrote the implementation of the SwapEndian_16() and SwapEndian_32() ↵Dean
functions so that they compile down in most instances to minimal loads and stores rather than complicated shifts. Fixed SCSI.c implementations of all the demos/projects casting the block count to a 32-bit temporary before calling SwapEndian_16(). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1364 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-22Added new pgm_read_ptr() macro to Common.h for reading of pointers out of ↵Dean
flash memory space. Added new SWAPENDIAN_16() and SWAPENDIAN_32() macros to Common.h for statically initialized variables at compile time. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1346 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-02Fix byte ordering of UUIDs in the SDP server - host can now successfully ↵Dean
pair to the Bluetooth device and discover the exposed Serial Port Profile RFCOMM service. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1304 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-02The SDP UUID lists should be searched and ALL UUIDs matched for a record to ↵Dean
be retrieved, not partial matches. Change the SDP code so that the entire list must be matched against a service attribute table's contents before it is returned. Change matching algorithm so that it recursively searches through the entire attribute table, and not just pre-specified sequence attributes. Add browse lists and proper descriptions to the Serial Port service. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1303 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-29Fix spacing of the function parameter descriptions in the Doxygen documentation.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1289 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-29Fixed incorrect signature for the ATMEGA32U2 in the DFU bootloader (thanks ↵Dean
to Axel Rohde). Partial fix to the Bluetooth SDP code - data should be encoded in big endian, not little endian. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1288 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-25Fixed RNDISEthernet demos crashing when calculating checksums for ↵Dean
Ethernet/TCP packets of more than ~500 bytes due to an overflow in the checksum calculation loop (thanks to Kevin Malec). Removed string Attributes from the Service Discovery Protocol code to minimise the potential points of failure while the base code is being debugged. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1276 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-05-23Add UUID Class matching to the Service Discovery Protocol code - SDP is now ↵Dean
correctly matched against the generic Service Discovery Class UUID. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1275 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-04-28Use puts_P() and printf_P() instead of the normal variants where possible in ↵Dean
the Host mode Class Driver demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1223 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-04-15Rename FunctionAttributes.h to Attributes.h, as some attributes are ↵Dean
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1209 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-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-23Update Temperature board driver to be AVR32 compatible when the ADC ↵Dean
peripheral driver is eventually ported. Make architecture includes explicit for both the AVR32 and the AVR8, to make way for future architecture ports. Add SPI driver aliases for the old function names in the AVR8 driver, so that existing code will still compile against the new version. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1151 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-23Fixed software PDI/TPI programming mode in the AVRISP project not correctly ↵Dean
toggling just the clock pin. Fix broken AVR8 Serial peripheral driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1150 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-22Change over board hardware drivers to use the custom uintN_t and intN_t ↵Dean
native word size types. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1149 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-02-22Add drivers for the EVK1101 - begin full port to the AVR32 UC3B line of AVRs.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1144 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-01-05Inline USB management functions in the Class drivers which are standardized ↵Dean
but currently unused, to prevent them from using up unneccesary cycles and flash in the user application. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1037 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-11-06Add optional double-banking support to the Device mode Class Drivers, on a ↵Dean
per-endpoint, per-interface level. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@882 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-06-28Added const modifiers to device mode class drivers.Dean
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). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@636 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-04-17Renamed Serial_Stream driver to SerialStream to remain consistent with the ↵Dean
rest of the library's naming scheme for files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@511 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-01All comments in the library, bootloaders, demos and projects have now been ↵Dean
spell-checked and spelling mistakes/typos corrected. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@492 d5102386-fcda-11dd-9fdb-3debd5008f28
2009-03-09Removed SetSystemClockPrescaler() macro, the clock_prescale_set() avr-libc ↵Dean
macro has been corrected in recent avr-libc versions git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@455 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