aboutsummaryrefslogtreecommitdiff
path: root/LUFA/Common/Common.h
AgeCommit message (Collapse)Author
2012-06-12Add missing <math.h> include for the UC3 devices, hide CDC class driver ↵Dean
stream functions for unsupported platforms. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2343 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-05-29Make sure that LUFAConfig.h is included *after* the common submodules, so ↵Dean
that the architecture and other defines are available to the configuration header. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2254 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-04-08Minor documentation improvements.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2146 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-04-07Fix up Doxygen documentation directives to allow for generation of ↵Dean
documentation when the library code root folder is not "LUFA". git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2137 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-03-17Add XMEGA C3 family to the ModuleTest build test.Dean
Remove unnecessary GCC_MEMORY_BARRIER() at the end of GetGlobalInterruptMask(). Minor documentation improvements. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2113 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-24Minor documentation fixes - change \note entries to \warning where ↵Dean
appropriate and remove/update old documentation. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2066 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-18Add build tests to verify correct compilation of as many modules as possible ↵Dean
under as many architectures as possible. Fix broken compilation of LUFA under C++ compilers when the Serial peripheral module header file is included in a C++ source file. Fix missing semicolon in the UC3 architecture host pipe functions. Fix failed compilation for the XMEGA architecture if USB_DEVICE_ONLY us not specified. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2053 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file contributor copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2026 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-04Update file header copyrights for 2012.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2025 d5102386-fcda-11dd-9fdb-3debd5008f28
2012-02-03Minor documentation fixes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2019 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-23Run wspurify script on /trunk/ and /branches/ C source files, to remove any ↵dean
trailing whitespace at the end of each line. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2007 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-12-20Fixed compiler warning on GCC with -wundef compile flag is used (thanks to ↵Dean
Georg Glock). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@2006 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-09-22Add missing "used" attribute to ATTR_INIT_SECTION to ensure functions ↵Dean
declared with that meta-attribute are not discarded by the linker. Add missing function and definition documentation. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1932 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-09-02Add new TWI_BITLENGTH_FROM_FREQ() macro to the AVR8 TWI peripheral driver.Dean
Change Delay_MS() to accept a 16-bit parameter rather than an 8-bit parameter for longer possible delays. Minor documentation improvements. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1918 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-08-23Minor documentation fixes.Dean
Add extra parenthesis around terms in the common MIN() and MAX() macros to prevent issues with non-trivial macro inputs (thanks to David Lyons). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1913 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-08-16Pull out architecture specific macros and other definitions into a new ↵Dean
common header file. Add new JTAG_DISABLE() macro for the AVR8s to software-disable JTAG debugging using cycle-safe assembly code. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1906 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-14Add new STRINGIFY() and STRINGIFY_EXPANDED() convenience macros.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1870 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-13Add start of an architecture port to the Atmel USB XMEGA devices.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1869 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-06Split out compiler specific helper macros into a new CompilerSpecific.h ↵Dean
header file inside the library, for future expansion. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1846 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-20Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was ↵Dean
disabled, and a USE_*_DESCRIPTORS compile time option was not enabled on the AVR8s. Add C++ compatibility to some header files currently missing extern "C" linkage. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1818 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-01Spell check library source code files.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1777 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-09Add new USE_LUFA_CONFIG_HEADER compile time option.Dean
Add missing LEDS_ToggleLEDs() function to the LED driver for the EVK1101 board. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1750 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-05-08Minor documentation fixes.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1749 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-25Add __VA_ARGS__ support to the LUFA supplied ISR macro. Add proper result ↵Dean
typecasting to the SWAPENDIAN_* macros. Switch to using -1 on the UC3 target to obtain a register mask with all bits set (for clearing interrupts and status flags). Fix incorrect USB controller mode on the UC3 when a fixed mode is specified as a compile time option due to AVR32_USBB.USBCON.uide being set by default. Make USB_Descriptor_String_t use a uint16_t for Unicode strings on all targets except the AVR8 (retained for backwards compatibility). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1747 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-13Fix definition of pgm_read_ptr().Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1740 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-12Add missing function attributes to the pipe/endpoint functions for all ↵Dean
architectures. Perform endianness correction in the HID report parser for big-endian platforms. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1734 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-10Remove redundant type information for bitfield elements, other than the ↵Dean
signed/unsignedness of the element. Change type of USB_SelectedPipe and USB_SelectedEndpoint for the AVR32 UC3 architecture to uint32_t to reduce the compiled code size. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1733 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-08Create a new Common module documentation group for the new Global Interrupt ↵Dean
macros. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1732 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-08Move global interrupt enable/disable functions out to Common.h and document ↵Dean
them. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1731 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-08Correct UC3 global interrupt functions.Dean
Replace all calls and references to _delay_ms() in the code with the architecture-agnostic Delay_MS() function. Improve code generation for the Delay_MS() function on the AVR8 architecture when called with a constant input. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1730 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-04-08Add in a new common Delay_MS() function, which provides a blocking delay for ↵Dean
all architectures. Remove use of avr-libc specific ATOMIC_BLOCK, replace with a new per-architecture set of inline functions to retrieve and manipulate the global interrupt enable bit for each architecture. Add in documentation for the USB controller common interrupt routine which must be linked to the interrupt controller in the user application on the AVR32 UC3 architecture. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1729 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-21Add in new architecture attribute defines to selectively remove the EEPROM ↵Dean
and FLASH memory space functions on architectures which do not have seperate memory address spaces. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1721 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-15Remove redundant Doxygen guards from the internal preprocessor definitions.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1715 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-13Rename UC3B driver files to UC3, as they are generic to all AVR32 UC3 models.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1705 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-13Add experimental support for the UC3A0, UC3A1 and UC3A3 series AVR32 ↵Dean
microcontrollers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1704 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-13Oops - rename misnamed Endianess.h header file.Dean
Remove UC3B temp macros related to EEPROM, to ensure that projects requiring this break at compile time rather than at runtime until a solution can be found. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1703 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-13Move out endianness management macros into a new common Endianness.h header.Dean
Fix Doxygen documentation, broken due to the added ATTR_PACKED attribute on some structs breaking the Doxygen parser. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1702 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-05Fix UC3B architecture compile errors and ensure the architecture can be ↵Dean
compiled with no special makefile tokens defined. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1699 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-05Porting updates for the UC3B architecture - get UC3B partially enumerating ↵Dean
using a modified mouse demo on the EVK1101. Implement a software FIFO for the endpoint banks; datasheet hints that this can be done through hardware as on the AVR8 architecture, but the correct method to do this not discovered yet. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1696 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-28Add in USB_INT_RegisterHandlers() internal function to register the ↵Dean
interrupt handler routines used by LUFA. Add dummy loads after clearing the interrupt lines according to the datasheet. Add in temporary global interrupts enable/disable macros. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1693 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-27Fix USB Host mode compile errors for the UC3B architecture.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1687 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-27Move out common architecture-independent core definitions into the ↵Dean
appropriate core dispatch header files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1686 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-27More AVR32 UC3B architecture ports - USB device mode applications can now be ↵Dean
sucessfully compiled, although they will be currently non-functional. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1685 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-20Update board driver common APIs to use uint_reg_t.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1680 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-20Added start of a port of the core USB driver code to the AVR32 UC3B ↵Dean
architecture. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1676 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-20More updates to remove architecture-specific comments from the ↵Dean
documentation, alter USBMode.h preprocessor logic to support future architectures more easily. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1675 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-20More Doxygen updates for multiple architecture support.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1674 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-20Start update of documentation to support possible multiple architectures in ↵Dean
the future - alter \file documentation to automatically copy in the module documentation where possible. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1673 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-19Add new ARCH option to the makefiles to (eventually) specify the target ↵Dean
device architecture. Update non-usb peripheral drivers to reflect future multiple architecture support. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1669 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-26Added new KeyboardMouseMultiReport Device ClassDriver demo.Dean
Fixed ReportID not being removed from the feature/out report data array in the HID class driver when Report IDs are used. Added new MAX() and MIN() convenience macros. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1643 d5102386-fcda-11dd-9fdb-3debd5008f28