aboutsummaryrefslogtreecommitdiffstats
path: root/Projects/Magstripe/Magstripe.c
Commit message (Collapse)AuthorAgeFilesLines
* Minor documentation improvements.Dean Camera2013-03-181-1/+1
|
* Update copyright year to 2013.Dean Camera2013-01-031-2/+2
|
* Minor documentation improvements.Dean Camera2012-10-051-1/+1
|
* Use the framework provided GlobalInterruptEnable() function instead of the ↵Dean Camera2012-09-171-1/+1
| | | | AVR8/XMEGA specific sei() macro, for future demo/project portability.
* Reintegrate the FullEPAddresses development branch into trunk.Dean Camera2012-04-141-5/+6
|
* Update file contributor copyrights for 2012.Dean Camera2012-02-041-1/+1
|
* Update file header copyrights for 2012.Dean Camera2012-02-041-1/+1
|
* Minor documentation corrections.Dean Camera2012-02-041-5/+5
|
* Add static keyword to all project globals whose scope should be restricted ↵Dean Camera2011-02-101-3/+4
| | | | | | 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.
* Add new HID_DESCRIPTOR_VENDOR() macro, change over all projects and Device ↵Dean Camera2011-01-301-1/+1
| | | | | | | | | | | | 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.
* Update copyright year on all source files.Dean Camera2011-01-011-2/+2
|
* Renamed the EVENT_USB_Device_UnhandledControlRequest() event to ↵Dean Camera2010-11-051-2/+2
| | | | EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards.
* 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-14/+15
| | | | tool made by Laszlo Monda
* Move out many of the common class driver constants into grouped enums, to ↵Dean Camera2010-09-281-2/+2
| | | | | | | | 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.
* Removed complicated logic for the Endpoint_ConfigureEndpoint() function to ↵Dean Camera2010-08-091-1/+1
| | | | | | use inlined or function called versions depending of if the given bank size is a compile time constant, as the compiler does a better job of optimizing with basic code. Changed over all device demos to use a clearer algorithm for the configuring of the application's endpoints.
* Update all demos, projects and bootloaders to indent all function ↵Dean Camera2010-07-211-4/+10
| | | | | | parameters, one per line, for better readability. Add missing const qualifiers to the demos.
* Added const attributes to some of the class driver function parameters that ↵Dean Camera2010-07-131-1/+1
| | | | were missing it.
* Add new ReportType parameter to the HID class driver device callback and ↵Dean Camera2010-05-091-1/+2
| | | | | | host report sending routines. Renamed internal Host mode Class driver descriptor comparator callback routines so that they all start with a uniform DCOMP_{Class Abbreviation}_ prefix.
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-216/+216
| | | | correctly converted to the target system's native end of line style.
* USB_Init() no longer calls sei() to enable global interrupts - this must now ↵Dean Camera2010-04-281-0/+2
| | | | be done in the user application once all init code has run.
* Update copyright year to 2010.Dean Camera2009-12-301-3/+3
|
* Fix MIT license language to make its intent clearer.Dean Camera2009-12-281-7/+7
|
* Fix more Doxygen errors from missing parameter documentation.Dean Camera2009-11-251-0/+1
|
* Added new ReportType parameter to the HID Device Class driver ↵Dean Camera2009-11-231-1/+1
| | | | CALLBACK_HID_Device_CreateHIDReport() callback to indicate the report type to generate.
* Add double banking property to LUFA powered projects in the Projects ↵Dean Camera2009-11-061-5/+6
| | | | directory. Add guards to macro parameters to ensure that formulas passed as parameters don't mess up the internal macro structure.
* Fix broken MagStripe demo due to the HID Class driver changes.Dean Camera2009-09-211-3/+3
|
* Added new EVENT_USB_Device_StartOfFrame() event, controlled by the new ↵Dean Camera2009-08-161-8/+4
| | | | USB_Device_EnableSOFEvents() and USB_Device_DisableSOFEvents() macros to give bus-synchronised millisecond interrupts when in USB device mode.
* Renamed all library events to properly seperate out Device and Host mode ↵Dean Camera2009-08-051-3/+3
| | | | | | | | events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo.
* Fix demos based on the device mode HID class driver, as well as the driver ↵Dean Camera2009-07-311-7/+16
| | | | itself. Changed HID device class driver to require the user to give a buffer and size to hold the previously generated report, for comparison purposes, and altered the prototype of the CALLBACK_HID_Device_CreateHIDReport() function so that reports can be sent to the host even if there are no apparent changes (useful for relative movements in mice, etc.).
* Add new HID_Device_MillisecondElapsed() function to the HID device Class ↵Dean Camera2009-07-301-2/+1
| | | | driver, to move the burden of managing the Idle period of each instance to the library and not the user application.
* Fix to HID device mode Class driver, so that new reports are compared ↵Dean Camera2009-07-301-2/+0
| | | | against the old, and updated reports made within the idle period are sent immediately to the host.
* State information for class drivers is now zeroed out during enumeration ↵Dean Camera2009-07-271-5/+0
| | | | (both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved.
* Magstripe Project: Ensure that empty tracks still print out a newline ↵Dean Camera2009-07-191-27/+19
| | | | | | seperator so that the host always knows what track data is being sent. Updates to PrinterHost demo to include some PCL test data plus fixes to the GetDeviceID routine.
* Minor updates to the Magstripe and MissileLauncher projects to fix bugs and ↵Dean Camera2009-07-161-4/+6
| | | | | | improve performance. Fixed error in GenericHID descriptors preventing it from passing the USB-IF HID tests (thanks to Søren Greiner).
* Minor correction to MagStripe demo to fix build problems.Dean Camera2009-06-291-4/+4
|
* Added const modifiers to device mode class drivers.Dean Camera2009-06-281-7/+7
| | | | | | 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).
* Fix broken MagStripe project.Dean Camera2009-06-181-13/+21
|
* More Doxygen fixes - ensure no undocumented function parameters.Dean Camera2009-06-151-0/+2
|
* Add host mode USB Class driver stubs, add beginnings of a CDC host class driver.Dean Camera2009-06-141-3/+3
| | | | | | Split out common defines/types from class drivers into a seperate common class driver directory. Make central USB Class driver dispatch headers, used for both device and host modes.
* Added multiple Report ID support to the HID class driver. Removed OUT ↵Dean Camera2009-06-051-2/+3
| | | | endpoint support from HID driver (all OUT reports are now processed through control requests) as a seperate endpoint had issues with determining the exact output report length.
* Minor documentation page updates.Dean Camera2009-06-041-0/+36
| | | | | | | | Redocumented all device demos, now that they have changed over to the new USB class drivers. Added C linkage to class drivers for C++ support. Added prefixes to most of the class driver constants to prevent name clashes.
* Removed new Start of Frame event from the library; performance suffered far ↵Dean Camera2009-06-021-2/+11
| | | | | | too much and it was only useful in one of the standard classes (HID). Altered HID demos to use the previous method of tracking millisecond periods via a hardware timer rather than the SOF events. Fixed MIDI class driver blocking on unread events to the host.
* Commit of new class abstraction APIs for all device demos other than the ↵Dean Camera2009-06-011-339/+83
| | | | | | | | | | MIDI demo - not documented yet. Removed scheduler and memory allocation libraries. Added new EVENT_USB_StartOfFrame event in the library to indicate the start of each USB frame (when generated). Removed Tx interrupt from the USBtoSerial demo; now sends characters via polling to ensure more time for the Rx interrupt.
* Rewritten event system to remove all macros, to make user code clearer.Dean Camera2009-05-181-4/+4
| | | | | | | | Fixed incorrect ENDPOINT_EPNUM_MASK mask preventing endpoints above EP3 from being selected (thanks to Jonathan Oakley). Removed STREAM_CALLBACK() macro - callbacks now use regular function definitions to clarify user code. Removed DESCRIPTOR_COMPARATOR() macro - comparators should now use regular function definitions to clarify user code.
* USB_HostRequest renamed to USB_ControlRequest, entire control request header ↵Dean Camera2009-04-221-28/+9
| | | | | | | | is now read into USB_ControlRequest in Device mode rather than having the library pass only partially read header data to the application. The USB_UnhandledControlPacket event has had its parameters removed, in favour of accessing the new USB_ControlRequest structure. The Endpoint control stream functions now correctly send a ZLP to the host when less data than requested is sent.
* Removed specialized Endpoint_ClearControl* and Pipe_ClearControl* macros in ↵Dean Camera2009-04-211-12/+12
| | | | favour of the standard Endpoint_Clear* and Pipe_Clear* macros (Atmel have confirmed no effect from setting FIFOCON on control endpoints).
* Changed over all deprecated GCC structure tag initializers to the ↵Dean Camera2009-04-201-3/+3
| | | | standardized C99 format (thanks to Mike Alexander).
* Fixed GenericHIDHost demo report write routine incorrect for control type ↵Dean Camera2009-04-161-24/+18
| | | | | | | | | | | | | | | | | | 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.
* All comments in the library, bootloaders, demos and projects have now been ↵Dean Camera2009-04-011-5/+5
| | | | spell-checked and spelling mistakes/typos corrected.