summaryrefslogtreecommitdiff
path: root/Demos/DualRole
AgeCommit message (Collapse)Author
2012-02-05Add new tag for the LUFA-120219-BETA release.LUFA-120219-BETADean
git-svn-id: http://lufa-lib.googlecode.com/svn/tags/LUFA-120219-BETA@2033 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-11-09Add missing SVN eol-style property to ensure that source code line endings ↵Dean
and converted to the native values on checkout. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1975 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-09-21Add project name to the Doxygen makefile target output.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1930 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-19Removed the ENDPOINT_DESCRIPTOR_DIR_* macros in favour of the shorter ↵Dean
ENDPOINT_DIR_* macros, which can now be used with both Endpoint_ConfigureEndpoint() and in the device descriptors. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1895 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-08Updated all host mode demos and projects to use the ↵Dean
EVENT_USB_Host_DeviceEnumerationComplete() event callback for device configuration instead of manual host state machine manipulations in the main application task. Added new USB_Host_ConfigurationNumber global variable to indicate the selected configuration in an attached device. Renamed global state variables that are specific to a certain USB mode to clearly indicate which mode the variable relates to, by changing the USB_* prefix to USB_Device_* or USB_Host_*. Removed the HOST_STATE_WaitForDeviceRemoval and HOST_STATE_Suspended host state machine states, as these are no longer required. Altered the USB_Host_SetDeviceConfiguration() function to update the new USB_Host_ConfigurationNumber global as required. Moved out the Host mode standard request convenience/helper functions from the architecture specific Host driver files to the architecture agnostic HostStandardReq.c driver file. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1850 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-07-01Seperate out the device demos and project's configuration descriptor ↵Dean
structure definitions to clearly indicate what descriptors belong to which interface. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1837 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-20Add new "checksource" target to the library makefiles, for automated source ↵Dean
file existance checking. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1821 d5102386-fcda-11dd-9fdb-3debd5008f28
2011-06-05Massive corrections to the project documentation and code comments, thanks ↵Dean
to Russian translation services provided by Andrey from Microsin.ru. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1782 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-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-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-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-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-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-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-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-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-11-10Fixed incorrect PollingIntervalMS values in the demo/project/bootloader ↵Dean
endpoint descriptors (thanks to MCS Electronics). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1576 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-11-05Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean
EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1556 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-25Add descriptor class, subclass and protocol constants to the class drivers, ↵Dean
modify all demos to use them where possible. Move out private/internal host class driver constants to the common class driver headers, so that they can be used in the Low Level host mode demos. Ensure all demos, projects and bootloaders use the class driver constants where possible to minimise code repetition. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1538 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-10-24All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean
is included, and no longer need to be seperately included. All LowLevel demos changed to use the constants and types defined in the USB class drivers. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1537 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-10-12Remove USB_MODE_* macros, replace with a semantically linked USB_Modes_t enum.Dean
Moved the USB device selection logic for ENDPOINT_TOTAL_ENDPOINTS further up in Endpoint.h to where the endpoint bank capabilities are determined, to reduce the total number of device-specific logic. Change USB_Host_WaitMS() to test and disable the HSOFI interrupt before resuming the bus, so that it does not fire before the delay loop has run. Add missing const qualifier to the parameter of USB_Host_ClearPipeStall(). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1521 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-28Move out many of the common class driver constants into grouped enums, to ↵Dean
make them more managable. Add new CDC descriptor structs to the CDC class driver, so that the CDC demos can use human readable field names. Rename prefix for Still Image Host class driver functions from "SImage_" to "SI_" to remain consistent with the rest of the driver. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1497 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-24Remove dfu-programmer program switches, to ensure maximum compatibility with ↵Dean
all dfu-programmer versions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1496 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-24Added the --suppress-bootloader-mem option to the makefile dfu target, to ↵Dean
ensure that writes to the bootloader section of the AVR's flash memory are ignored (thanks to Axel Rohde). Fixed incorrect command name for EEPROM memory programming in the makefile dfu-ee target. Makefile whitespace fixes. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1495 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-19Rename internal suspend and wake up USB interrupt macros so that they follow ↵Dean
the same naming scheme as the other USB ISR macros. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1490 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-19Ensure device address latch bit is not set at the same time as the new ↵Dean
address, as per datasheet. Minor documentation fixes. Fix broken USB host mode due to the USB frame counter not being updated during the early enumeration steps, causing USB_Host_DelayMS() to spinloop forever. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1485 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-15Make project makefiles correctly clean intermeditary build files from ↵Dean
assembly and C++ sources (thanks to Daniel Czigany). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1482 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-09-09Added class specific descriptor type defines with standard USB-IF element ↵Dean
naming. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1468 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-31Clarify in the project documentation files what the each of the different ↵Dean
USB AVR device "series" comprises of. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1459 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-24Changed the signature of the CALLBACK_USB_GetDescriptor() callback function ↵Dean
so that the descriptor pointer is const, to remove the need for extra casting inside the callback (thanks to Jonathan Kollasch). git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1452 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-08Fix invocations of avr-size in all makefiles broken on unpatched *nix ↵Dean
systems, due to the recent update to the latest WinAVR makefile template. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1435 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-08-02Hide the PROGMEM attribute from Doxygen, as it appears to confuse the parser ↵Dean
in some situations. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1432 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-21Update all demos, projects and bootloaders to indent all function ↵Dean
parameters, one per line, for better readability. Add missing const qualifiers to the demos. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1400 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-19Update makefiles to use the latest WinAVR/Atmel toolchain makefile template.Dean
Add new module source variables to the library core makefile, so that module sources can be added to a project's makefile on a per-module rather than per-file basis. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1394 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-18Change over all makefiles to use C99 standards mode, rather than C99 + GNU ↵Dean
Extensions. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1393 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-15Disable strict aliasing explicitly in the project makefiles, as this is ↵Dean
apparently enabled by default in newer AVR-GCC builds, and aliasing is used heavily for type-punning through the LUFA and third party library's codebase. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1392 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-15Removed the automated checking of event names in the demo, project and ↵Dean
bootloader makefiles due to inconsistancies between the behaviour of the command line tools used to perform the check on each platform. Removed the internal endpoint and pipe memory allocation macros, as this is already performed directly in the code. Simplify the endpoint and pipe reset procedure. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1391 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-13Added const attributes to some of the class driver function parameters that ↵Dean
were missing it. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1384 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-13Add AVRStudio 4 project files to the LowLevel Host mode demos.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1380 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-12Add missing clean_doxygen phony targets to the project makefiles.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1374 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-07-02Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific ↵Dean
functions that are more complicated than simple macros. Moved USB_Device_SendRemoteWakeup() to the new Device.c source file and corrected it to unfreeze and restart the USB controller clock before issuing a Remote Wakeup request. Removed the USB_Device_IsRemoteWakeupSent() and USB_Device_IsUSBSuspended() macros, as they are now obsolete. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1358 d5102386-fcda-11dd-9fdb-3debd5008f28
2010-06-25Add default "all" makefile targets to the demo tree makefiles.Dean
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1354 d5102386-fcda-11dd-9fdb-3debd5008f28