aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/Keyboard/Keyboard.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyrights for 2014.Dean Camera2014-01-041-2/+2
|
* Port the device mode demos to the XMEGA architecture where applicable.Dean Camera2013-05-191-1/+13
|
* 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.
* Make CPPCheck tool happy by altering the program flow in the low level ↵Dean Camera2012-09-131-4/+6
| | | | keyboard example, so that the SendReport variable is not overwritten before its first read access.
* Reintegrate the FullEPAddresses development branch into trunk.Dean Camera2012-04-141-6/+4
|
* Update file contributor copyrights for 2012.Dean Camera2012-02-041-1/+1
|
* Update file header copyrights for 2012.Dean Camera2012-02-041-1/+1
|
* Fixed misspelled HID_KEYBOARD_MODIFIER_* macros in the HID class driver ↵Dean Camera2011-11-161-1/+1
| | | | (thanks to Laszlo Monda).
* Massive corrections to the project documentation and code comments, thanks ↵Dean Camera2011-06-051-1/+1
| | | | to Russian translation services provided by Andrey from Microsin.ru.
* Renamed all low level Endpoint_Read_*, Endpoint_Write_* and ↵Dean Camera2011-04-041-4/+4
| | | | | | 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.
* Add static keyword to all project globals whose scope should be restricted ↵Dean Camera2011-02-101-3/+3
| | | | | | 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.
* Altered all endpoint/pipe stream transfers so that the new BytesProcessed ↵Dean Camera2011-01-101-1/+1
| | | | | | | | | | 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).
* 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-4/+4
| | | | EVENT_USB_Device_ControlRequest() as it is now fired before the library request handlers, not afterwards.
* Added standard keyboard HID report scancode defines (thanks to László Monda).Dean Camera2010-10-281-6/+6
|
* 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.
* All USB class drivers are now automatically included when LUFA/Drivers/USB.h ↵Dean Camera2010-10-241-11/+11
| | | | | | 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.
* Clean up excessive whitespace at the end of each line using the wspurify ↵Dean Camera2010-10-131-36/+37
| | | | tool made by Laszlo Monda
* Changed all Device mode LowLevel demos and Device Class drivers so that the ↵Dean Camera2010-08-221-22/+12
| | | | control request is acknowledged and any data transferred as quickly as possible without any processing inbetween sections, so that long callbacks or event handlers will not break communications with the host by exceeding the maximum control request stage timeout period.
* Removed complicated logic for the Endpoint_ConfigureEndpoint() function to ↵Dean Camera2010-08-091-20/+13
| | | | | | 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-2/+2
| | | | | | parameters, one per line, for better readability. Add missing const qualifiers to the demos.
* Add svn:eol-style property to source files, so that the line endings are ↵Dean Camera2010-05-081-387/+387
| | | | 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/+1
| | | | be done in the user application once all init code has run.
* Make bluetooth SDP code correctly unpack the search UUIDs and parameters.Dean Camera2010-04-191-1/+1
| | | | Minor documentation improvements.
* Fix LowLevel Keyboard demo -- accidentally trying to dereference a uint8_t ↵Dean Camera2010-02-081-3/+3
| | | | type in ProcessLEDReport().
* Added Keyboard LED report masks (KEYBOARD_LED_*) to the HID class driver and ↵Dean Camera2010-02-071-3/+3
| | | | demos.
* Added keyboard modifier masks (HID_KEYBOARD_MODIFER_*) to the HID class ↵Dean Camera2010-02-071-0/+3
| | | | driver and Keyboard demos.
* Update copyright year to 2010.Dean Camera2009-12-301-2/+2
|
* Fix MIT license language to make its intent clearer.Dean Camera2009-12-281-7/+7
|
* Removed code to zero reports between two keyboard reports with differing ↵Dean Camera2009-11-231-11/+2
| | | | number of pressed keys, as this relied on non-standard OS behaviour.
* Fixed LowLevel Keyboard demo not saving the issued report only after it has ↵Dean Camera2009-11-201-10/+26
| | | | | | been written to the endpoint. Added support for multiple keyboard keycodes in a single report to the LowLevel and ClassDriver Keyboard demos.
* Application documentation/comment cleanup.Dean Camera2009-10-081-2/+1
|
* Added new EVENT_USB_Device_StartOfFrame() event, controlled by the new ↵Dean Camera2009-08-161-10/+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-5/+5
| | | | | | | | 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.
* Added new USB_DeviceState variable to keep track of the current Device mode ↵Dean Camera2009-07-211-17/+11
| | | | | | | | | | | | USB state. Added new Endpoint_ClearStatusStage() convenience function to assist with the status stages of control transfers. Removed vague USB_IsConnected global - test USB_DeviceState or USB_HostState explicitly to gain previous functionality. Removed USB_IsSuspended global - test USB_DeviceState against DEVICE_STATE_Suspended instead. Fixed possible enumeration errors from spinloops which may fail to exit if the USB connection is severed before the exit condition becomes true.
* Add explicit guards to all device mode tasks to ensure the device is ↵Dean Camera2009-07-211-8/+8
| | | | connected and configured before running the task, to prevent any user tasks from locking up the main USB task if the device has not been properly configured.
* Fix HID class device driver -- if a SetIDle request is issued with the LSB ↵Dean Camera2009-07-151-6/+6
| | | | | | | | of wValue set to zero, the idle period must be set for all HID interfaces. Fix Keyboard and Mouse demos, Idle period is now multiplied by 4 as the period is read into and sent out of the device to ensure it is always stored as a multiple of 1ms. Fixes Keyboard demo using an initial Idle period of 2s rather than 500ms (thanks to Brian Dickman). Move out the internal device serial descriptor reading routine into a seperate static function, rather than being part of USB_Device_GetDescriptor.
* Added const modifiers to device mode class drivers.Dean Camera2009-06-281-2/+2
| | | | | | 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).
* Error status LEDs shown when device endpoint configuration fails to complete.Dean Camera2009-06-081-11/+17
| | | | MIDI device demo no longer blocks if a note change event is sent while the endpoint is not ready.
* Converted device mode low-level demos to schedulerless.Dean Camera2009-06-071-60/+19
|
* Move new Class Driver powered demos to a new ClassDriver subdirectory, ↵Dean Camera2009-06-051-0/+424
re-add old low level demos to a LowLevel subdirectory.