206 Commits

Author SHA1 Message Date
Dean Camera
afd828c095 Removed SerialStream module, rolled functionality into the base USART Serial 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.
2011-01-30 19:47:31 +00:00
Dean Camera
a852ea8e43 Added new KeyboardMouseMultiReport Device ClassDriver demo.
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.
2011-01-26 21:33:07 +00:00
Dean Camera
039a714ee4 New HID report item macros (with HID_RI_ prefix) to allow for easy creation 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/.
2011-01-16 19:34:28 +00:00
Dean Camera
f555ad7ced Altered all endpoint/pipe stream transfers so that the new BytesProcessed 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).
2011-01-10 18:43:34 +00:00
Dean Camera
39ac72f2d1 Make a new general RingBuffer.h misc library driver, instead of the 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.
2010-12-26 13:01:37 +00:00
Dean Camera
0381399f66 Add missing AVRStudio4 project file for the MIDIToneGenerator project. 2010-12-17 19:59:19 +00:00
Dean Camera
8a7351c760 Added new completed MIDIToneGenerator project. 2010-12-03 03:51:46 +00:00
Dean Camera
857a82674f Readd incomplete MIDIToneGenerator project, which can now correctly generate up to three simultaneous notes from MIDI channel 0. 2010-11-24 13:57:44 +00:00
Dean Camera
b87d0b45a2 Added board hardware driver support for the Microsin AVR-USB162 development board. 2010-11-21 10:34:15 +00:00
Dean Camera
0ce2950d81 Added board hardware driver support for the Adafruit U4 breakout board.
Fixed calculation of timer register reload values derived from F_CPU; must subtract one from the division result for the compare value to be correct.

Change AVRISP-MKII rescue clock speed to 4MHz to ensure that a 125KHz ISP speed works regardless of the target's fuses (i.e. DIV8 set).
2010-11-08 03:41:48 +00:00
Dean Camera
b120c4e4cd Move RNDISConstants.h into the RNDIS class driver common definition header.
Add logical grouping of related #define values for better Doxygen documentation.
2010-10-28 07:52:52 +00:00
Dean Camera
55538dcef3 Add descriptor class, subclass and protocol constants to the class drivers, 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.
2010-10-25 12:42:55 +00:00
Dean Camera
b37d77eab3 All USB class drivers are now automatically included when LUFA/Drivers/USB.h 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.
2010-10-24 22:53:57 +00:00
Dean Camera
06f222b3ed Added board hardware driver support for the Minimus board (thanks to the PSGroove team). 2010-10-17 23:14:03 +00:00
Dean Camera
9aa94fee81 Oops - add missing Maximus board LED hardware driver file. 2010-10-17 23:08:53 +00:00
Dean Camera
b4a02fa29d Added board hardware driver support for the Maximus board (thanks to the PSGroove team). 2010-10-17 23:06:50 +00:00
Dean Camera
cb298295fb Added board hardware driver support for the Blackcat USB JTAG board (thanks to the PSGroove team). 2010-10-17 23:00:23 +00:00
Dean Camera
292a631b62 Added new NO_SOF_EVENTS compile time option, enabled in the bootloaders to reduce the compiled binary size. 2010-10-07 11:55:20 +00:00
Dean Camera
25d896a507 Added board hardware driver support for the Arduino Uno development board.
Fixed incorrect LEDs_ChangeLEDs() function in the Benito board LED driver.
2010-09-28 14:30:26 +00:00
Dean Camera
84696c727d Added board hardware driver support for the BUI development board. 2010-09-14 11:11:54 +00:00
Dean Camera
92059fcbf9 Added board hardware driver support for the UDIP development board. 2010-09-14 10:31:27 +00:00
Dean Camera
def0e0ff1b Remove incomplete MIDIToneGenerator project. 2010-09-13 10:07:45 +00:00
Dean Camera
41c1fb3843 Added new project makefile template to the library and moved board driver stub files into in a new CodeTemplates directory. 2010-09-11 03:57:43 +00:00
Dean Camera
21954179a4 Added board hardware driver support for the USBFOO development board. 2010-09-04 09:41:08 +00:00
Dean Camera
b369aa2cc6 Added board hardware driver support for the Olimex AVR-USB-162 development board (thanks to Steve Fawcett). 2010-09-03 09:57:31 +00:00
Dean Camera
e72f424f64 Split out endpoint and pipe stream functions into new EndpointStream.c/.h and PipeStream.c/.h files. 2010-08-22 13:31:27 +00:00
Dean Camera
ac0ece0141 Added start of a low level device Test and Measurement class demo (thanks to Peter Lawrence). 2010-07-22 07:19:41 +00:00
Dean Camera
99d8a39363 Move and rename DevChaper9.c/.h and HostChapter9.c/.h to the HighLevel directory, new named DeviceStandardReq.c/.h and HostStandardReq.c/.h.
Rename LowLevel.c/.h to USBController.c/.h.

Remove dependancies on the complete <avr/io.h> header in the HighLevel USB driver directory, to ensure less work is required in later (possible) ports.
2010-07-21 12:20:34 +00:00
Dean Camera
3a3a4e2abf Add AVRStudio 4 project files to the ClassDriver Device mode demos. 2010-07-13 05:38:51 +00:00
Dean Camera
f985a8c176 Add AVRStudio 4 project files to the LowLevel Device mode demos. 2010-07-13 05:20:49 +00:00
Dean Camera
658da63e6c Add AVRStudio 4 project files to the ClassDriver Host mode demos. 2010-07-13 05:11:23 +00:00
Dean Camera
20943fa1aa Add AVRStudio 4 project files to the LowLevel Host mode demos. 2010-07-13 05:01:18 +00:00
Dean Camera
975e9d772d Add AVRStudio 4 project files for the library bootloaders. 2010-07-13 04:43:38 +00:00
Dean Camera
3904c1a606 Add remaining AVRStudio project files to the library projects. 2010-07-13 04:39:54 +00:00
Dean Camera
ac61b81a0b Add first lot of AVRStudio project files for some of the library projects. 2010-07-13 04:32:33 +00:00
Dean Camera
d3e00ce1ec Rename the AVRISP main source files to AVRISP-MKII so that it matches the project name. Add AVRStudio project file for the AVRISP-MKII project. 2010-07-13 04:16:23 +00:00
Dean Camera
70983caea5 Move out Bluetooth stack callback functions to a seperate BluetoothEvents.c/.h set of files for clarity in the Incomplete BluetoothHost demo. Add a new stack callback for opened ACL channels, make the demo save the RFCOMM channel when opened so that it does not have to search for it on each iteration of the main program loop. 2010-07-08 07:44:07 +00:00
Dean Camera
8b053d6ba5 Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific 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.
2010-07-02 03:37:19 +00:00
Dean Camera
711542ee89 Spell check code and manual pages. Remove custom Doxygen CSS stylesheet, as the new 1.7 Doxygen's default stylesheet is much better. 2010-06-16 11:01:01 +00:00
Dean Camera
67bc625109 Split out the RFCOMM Control Channel command processing code into a seperate set of files for clarity. 2010-06-13 13:21:35 +00:00
Dean Camera
b522e35965 Rename the incomplete Bluetooth Host demo's ServiceDiscoveryProtocol.c/.h files to SDP.c/.h. Fix compile errors in RFCOMM.c/.h. 2010-06-13 12:44:20 +00:00
Dean Camera
c2e340320c Document lightweight ring buffer header files. 2010-06-06 13:49:50 +00:00
Dean Camera
008e0e2e0a Add start of RFCOMM service layer to the incomplete BluetoothHost demo.
Reduce the size of the attribute search list from 15 ranges to 8 to save RAM.
2010-06-03 03:58:57 +00:00
Dean Camera
e0ef5741d4 Move SDP service tables out into a new set of files, to make the SDP service code cleaner. 2010-06-01 03:07:05 +00:00
Dean Camera
8d993afc53 Replace ring buffer library in Benito and USBtoSerial projects with the new lightweight ring buffer header to improve reliability. 2010-05-26 13:26:10 +00:00
Dean Camera
9b29d1dc50 Create a new LightweightRingBuffer.h header file for the XPLAIN project to abstract out the new ring buffer without a performance penalty. 2010-05-26 06:35:02 +00:00
Dean Camera
9c037a952f The RingBuff library code has been replaced in the XPLAINBridge project with an ultra lightweight buffer to help improve the reliability of the bridge. 2010-05-26 06:15:05 +00:00
Dean Camera
e277ff0cf4 Removed TeensyHID bootloader, per request from Paul at PJRC. 2010-05-12 11:12:53 +00:00
Dean Camera
dd92de3919 Fix Doxygen treating the license as a documentation source file. 2010-05-12 07:52:40 +00:00
Dean Camera
a5e79333e5 Switch back to C based timeout ISR in the AVRISP project - assembly version was failing, and only one or two cycles could be shaved off the compiler generated code. 2010-05-02 06:02:54 +00:00