aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Common/Common.h
Commit message (Collapse)AuthorAgeFilesLines
* Run wspurify script on /trunk/ and /branches/ C source files, to remove any ↵Dean Camera2011-12-231-17/+17
| | | | trailing whitespace at the end of each line.
* Fixed compiler warning on GCC with -wundef compile flag is used (thanks to ↵Dean Camera2011-12-201-2/+2
| | | | Georg Glock).
* Add missing "used" attribute to ATTR_INIT_SECTION to ensure functions ↵Dean Camera2011-09-221-0/+2
| | | | | | declared with that meta-attribute are not discarded by the linker. Add missing function and definition documentation.
* Add new TWI_BITLENGTH_FROM_FREQ() macro to the AVR8 TWI peripheral driver.Dean Camera2011-09-021-2/+2
| | | | | | Change Delay_MS() to accept a 16-bit parameter rather than an 8-bit parameter for longer possible delays. Minor documentation improvements.
* Minor documentation fixes.Dean Camera2011-08-231-2/+2
| | | | Add extra parenthesis around terms in the common MIN() and MAX() macros to prevent issues with non-trivial macro inputs (thanks to David Lyons).
* Pull out architecture specific macros and other definitions into a new ↵Dean Camera2011-08-161-69/+1
| | | | common header file. Add new JTAG_DISABLE() macro for the AVR8s to software-disable JTAG debugging using cycle-safe assembly code.
* Add new STRINGIFY() and STRINGIFY_EXPANDED() convenience macros.Dean Camera2011-07-141-0/+20
|
* Add start of an architecture port to the Atmel USB XMEGA devices.Dean Camera2011-07-131-1/+34
|
* Split out compiler specific helper macros into a new CompilerSpecific.h ↵Dean Camera2011-07-061-25/+1
| | | | header file inside the library, for future expansion.
* Fixed compile error when FIXED_CONTROL_ENDPOINT_SIZE compile time option was ↵Dean Camera2011-06-201-0/+10
| | | | | | 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.
* Spell check library source code files.Dean Camera2011-06-011-1/+1
|
* Add new USE_LUFA_CONFIG_HEADER compile time option.Dean Camera2011-05-091-0/+4
| | | | Add missing LEDS_ToggleLEDs() function to the LED driver for the EVK1101 board.
* Minor documentation fixes.Dean Camera2011-05-081-1/+4
|
* Add __VA_ARGS__ support to the LUFA supplied ISR macro. Add proper result ↵Dean Camera2011-04-251-1/+1
| | | | | | | | | | 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).
* Fix definition of pgm_read_ptr().Dean Camera2011-04-131-1/+1
|
* Add missing function attributes to the pipe/endpoint functions for all ↵Dean Camera2011-04-121-1/+11
| | | | | | architectures. Perform endianness correction in the HID report parser for big-endian platforms.
* Remove redundant type information for bitfield elements, other than the ↵Dean Camera2011-04-101-18/+28
| | | | | | 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.
* Create a new Common module documentation group for the new Global Interrupt ↵Dean Camera2011-04-081-2/+20
| | | | macros.
* Move global interrupt enable/disable functions out to Common.h and document ↵Dean Camera2011-04-081-1/+90
| | | | them.
* Correct UC3 global interrupt functions.Dean Camera2011-04-081-4/+14
| | | | | | 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.
* Add in a new common Delay_MS() function, which provides a blocking delay for ↵Dean Camera2011-04-081-5/+17
| | | | | | | | 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.
* Add in new architecture attribute defines to selectively remove the EEPROM ↵Dean Camera2011-03-211-2/+6
| | | | and FLASH memory space functions on architectures which do not have seperate memory address spaces.
* Remove redundant Doxygen guards from the internal preprocessor definitions.Dean Camera2011-03-151-3/+1
|
* Rename UC3B driver files to UC3, as they are generic to all AVR32 UC3 models.Dean Camera2011-03-131-1/+1
|
* Add experimental support for the UC3A0, UC3A1 and UC3A3 series AVR32 ↵Dean Camera2011-03-131-0/+6
| | | | microcontrollers.
* Oops - rename misnamed Endianess.h header file.Dean Camera2011-03-131-4/+0
| | | | 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.
* Move out endianness management macros into a new common Endianness.h header.Dean Camera2011-03-131-151/+12
| | | | Fix Doxygen documentation, broken due to the added ATTR_PACKED attribute on some structs breaking the Doxygen parser.
* Fix UC3B architecture compile errors and ensure the architecture can be ↵Dean Camera2011-03-051-0/+2
| | | | compiled with no special makefile tokens defined.
* Porting updates for the UC3B architecture - get UC3B partially enumerating ↵Dean Camera2011-03-051-5/+36
| | | | 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.
* Add in USB_INT_RegisterHandlers() internal function to register the ↵Dean Camera2011-02-281-1/+3
| | | | | | 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.
* Fix USB Host mode compile errors for the UC3B architecture.Dean Camera2011-02-271-0/+1
|
* Move out common architecture-independent core definitions into the ↵Dean Camera2011-02-271-0/+1
| | | | appropriate core dispatch header files.
* More AVR32 UC3B architecture ports - USB device mode applications can now be ↵Dean Camera2011-02-271-0/+12
| | | | sucessfully compiled, although they will be currently non-functional.
* Update board driver common APIs to use uint_reg_t.Dean Camera2011-02-201-5/+6
|
* Added start of a port of the core USB driver code to the AVR32 UC3B ↵Dean Camera2011-02-201-0/+11
| | | | architecture.
* More updates to remove architecture-specific comments from the ↵Dean Camera2011-02-201-7/+8
| | | | documentation, alter USBMode.h preprocessor logic to support future architectures more easily.
* More Doxygen updates for multiple architecture support.Dean Camera2011-02-201-4/+6
|
* Start update of documentation to support possible multiple architectures in ↵Dean Camera2011-02-201-4/+6
| | | | the future - alter \file documentation to automatically copy in the module documentation where possible.
* Add new ARCH option to the makefiles to (eventually) specify the target ↵Dean Camera2011-02-191-54/+76
| | | | device architecture. Update non-usb peripheral drivers to reflect future multiple architecture support.
* Added new KeyboardMouseMultiReport Device ClassDriver demo.Dean Camera2011-01-261-0/+24
| | | | | | 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.
* Minor documentation improvements.Dean Camera2011-01-081-10/+10
|
* Update copyright year on all source files.Dean Camera2011-01-011-2/+2
|
* Fix compile errors from the changes to the SerialStream and board ↵Dean Camera2010-12-261-2/+2
| | | | Temperature drivers.
* Added basic driver example use code to the library documentation.Dean Camera2010-12-261-4/+8
| | | | 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.
* Make a new general RingBuffer.h misc library driver, instead of the ↵Dean Camera2010-12-261-2/+12
| | | | | | | | 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.
* 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-20/+21
| | | | tool made by Laszlo Monda
* Reverted modifications to USBInterrupt.h that were intefering with correct ↵Dean Camera2010-09-221-2/+2
| | | | | | | | 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.
* Oops - fix mixed "initialize" and "initialise" - opt for American spelling ↵Dean Camera2010-07-301-2/+2
| | | | due to its wide use in technical standards.
* More spell checking of all source files -- correct missed errors, switch to ↵Dean Camera2010-07-301-3/+3
| | | | EN-GB spelling dictionary.