summaryrefslogtreecommitdiff
path: root/Projects
AgeCommit message (Collapse)Author
2011-04-13Replace cast-as-char* byte access of multibyte variables with proper shifts ↵Dean
and masks to preserve endianness across different architectures. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1738 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-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-04-04Renamed all low level Endpoint_Read_*, Endpoint_Write_* and ↵Dean
Endpoint_Discard_* functions to use the number of bits instead of a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures. Renamed all low level Pipe_Read_*, Pipe_Write_* and Pipe_Discard_* functions to use the number of bits instead of a symbolic size (Byte, Word, DWord) so that the function names are applicable and correct across all architectures. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1726 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-23Use the MIN() macro where possible instead of manual "(x < y) ? x : y" ↵Dean
constructs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1723 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-21F_CLOCK changed to F_USB to be more descriptive, and applicable on future ↵Dean
architecture ports. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1720 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-03-15Updated the software USART code in the XPLAIN Bridge application so that the ↵Dean
incomming bits are sampled at their mid-point instead of starting point, to give maximum reliability (thanks to Anton). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1711 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-26Removed Pipe_ClearErrorFlags(), pipe error flags are now automatically ↵Dean
cleared when Pipe_ClearError() is called. More UC3B architecture porting. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1684 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-26Added TWI baud rate prescaler and bit length parameters to the TWI_Init() ↵Dean
function (thanks to Thomas Herlinghaus). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1683 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-02-13Add more const-ness to the stream endpoint/pipe functions where possible.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1664 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-11Fix typos in the HID class bootloader makefile.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1662 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-10Add static keyword to all project globals whose scope should be restricted ↵Dean
to the same module as they are declared in. Tighten up the HID class bootloader code slightly, document that it currently exceeds 2KB of bootloader space for all models other than the Series 2 USB AVRs. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1661 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-06Oops - fix missing constants in the TempDataLogger FatFS diskio.h header file.Dean
Add const to all project descriptor definitions for safety. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1655 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-06Update projects using FatFS and PetiteFatFS to the latest library versions.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1653 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-02-04Fixed programming errors in the AVRISP-MKII project when the programming ↵Dean
packet is a round multiple of the endpoint bank size under avrdude (thanks to Steffan Woltjer). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1651 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Renamed all driver termination *_ShutDown() functions to the more logical ↵Dean
name *_Disable(). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1649 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Oops - fix up some calls to the old function names, include Serial ↵Dean
Peripheral driver in the RNDISEthernetHost project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1648 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Removed SerialStream module, rolled functionality into the base USART Serial ↵Dean
peripheral driver instead through the new Serial_CreateStream() and Serial_CreateBlockingStream() methods. Renamed the Serial byte send/receive functions to remain consistent with the CDC driver's byte functions. Altered the serial byte receive function to make it non-blocking. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1646 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Oops - forgot to add in LOGICAL MINIMUM and LOGICAL MAXIMUM report items ↵Dean
into the standard library Joystick HID report descriptor macro. Add in support for joystick resolution reporting via PHYSICAL_MINIMUM and PHYSICAL_MAXIMUM items. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1645 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-30Add new HID_DESCRIPTOR_VENDOR() macro, change over all projects and Device ↵Dean
ClassDriver demos to use it. Fix reversed byte ordering of multi-byte HID data. Added support to the HID parser for extended USAGE items that contain the usage page as well as the usage index. Removed the HID_IOF_NON_VOLATILE and HID_IOF_VOLATILE flags from HID INPUT items where the flag is invalid. Changed over HID OUTPUT items to use HID_IOF_NON_VOLATILE. Change over MagStripe project to use HID_DESCRIPTOR_KEYBOARD() for its HID report. Change over MouseHostDevice demo to use HID_DESCRIPTOR_MOUSE() for its HID report. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1644 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-22Changed AVRISP-MKII project to use the Watchdog interrupt for command ↵Dean
timeouts, to reduce CPU usage and free timer 0 for other uses in the future. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1640 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-17Abuse the the C preprocessor so that the HID macros can automatically encode ↵Dean
data into the array from the HID macros automagically, by specifying the bit-width of the data, and the data itself as a single integer value of that width. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1638 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-16New HID report item macros (with HID_RI_ prefix) to allow for easy creation ↵Dean
and editing of HID report descriptors. Changed over all project and demo HID report descriptors to use the new HID report item macros. Moved the HIDParser.c source file to the LUFA/Drivers/USB/Class/Common/ directory from the LUFA/Drivers/USB/Class/Host/. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1635 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-16Added new ADC_GET_CHANNEL_MASK() convenience macro to the ADC driver.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1634 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-13Added new high level TWI packet read/write commands, altered behaviour of ↵Dean
the TWI_StartTransmission() function. Spell check source code files. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1633 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-13Oops - The DS1307 contains an unused "DayOfWeek" register that must be ↵Dean
accounted for in the new unified DS1307 Time/Day read and write routines. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1632 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-13Changed TempDataLogger project's DS1307 driver to simplify the function ↵Dean
interface and prevent a possible race condition. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1631 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-10Fix typos and outdated information.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1630 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-10Altered all endpoint/pipe stream transfers so that the new BytesProcessed ↵Dean
parameter now points to a location where the number of bytes in the transfer that have been completed can be stored (or NULL if entire transaction should be performed in one chunk). Added new Endpoint_Null_Stream() and Pipe_Null_stream() functions. Removed the NO_STREAM_CALLBACKS compile time option due to the new partial stream transfer feature replacing it. Fixed errors in the incomplete Test and Measurement device demo preventing proper operation (thanks to Pavel Plotnikov). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1628 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-01-08The FAST_STREAM_TRANSFERS compile time option has been removed due to lack ↵Dean
of use and low cost/benefit ratio. Add GCC_FORCE_POINTER_ACCESS() macro use to the RingBuffer library header, to attempt to force GCC into producing more efficient code for manipulating the buffers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1625 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-31Rename RingBuffer header functions and typedefs from RingBuff_* to ↵Dean
RingBuffer_* so that it matches the header name. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1620 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-26Documentation improvements - put driver example code into its own section, ↵Dean
fix incorrect and missing section names. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1616 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-12-25Combined page and word ISP programming mode code in the AVRISP-MKII clone ↵Dean
project to reduce compiled size and increase maintainability of the code. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1613 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-25Fixed possible programming problem in the AVRISP-MKII clone project when ↵Dean
programming specific patterns into a target memory space that is only byte (not page) addressable. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1612 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-24Add DEVICE_STATE_AS_GPIOR=0 compile time option to the library projects, to ↵Dean
reduce compiled binary size. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1609 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-17Fix a few more incorrectly ordered endpoint initialisations in the device demos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1607 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-17Add missing AVRStudio4 project file for the MIDIToneGenerator project.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1606 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-13Fixed incorrect definition of the HID_KEYBOARD_SC_D constant in the HID ↵Dean
class driver (thanks to Opendous Inc.). Add extra comments to the ISPTarget.c source file in the AVRISP-MKII clone project. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1604 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-12Fixed possible lost data in the XPLAINBridge, USBtoSerial and Benito ↵Dean
projects when the host exceeds the packet timeout period on received packets as set by USB_STREAM_TIMEOUT_MS (thanks to Justin Rajewski). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1603 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-12Added new RingBuffer_Peek() function to the lightweight ring buffer headers.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1602 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-12-03Added new completed MIDIToneGenerator project.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1601 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-27Fixed broken DFU bootloader, added XPLAIN support for bootloader start when ↵Dean
XCK jumpered to ground. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1596 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-26Fix typos in the XPLAINBridge project preventing compilation.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1595 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-26Added ability to write protect Mass Storage disk write operations from the ↵Dean
host OS. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1594 d5102386-fcda-11dd-9fdb-3debd5008f28