Commit eb2e883f authored by Dean Camera's avatar Dean Camera

Added Class, ClassDevice, ClassHost and ClassCommon to the internal class...

Added Class, ClassDevice, ClassHost and ClassCommon to the internal class driver source filenames to prevent ambiguities.
parent 3e044872
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <avr/io.h> #include <avr/io.h>
#include <string.h> #include <string.h>
#include <LUFA/Drivers/USB/Class/RNDIS.h> #include <LUFA/Drivers/USB/USB.h>
#include "EthernetProtocols.h" #include "EthernetProtocols.h"
#include "ProtocolDecoders.h" #include "ProtocolDecoders.h"
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#define _ETHERNET_PROTOCOLS_H_ #define _ETHERNET_PROTOCOLS_H_
/* Includes: */ /* Includes: */
#include <LUFA/Drivers/USB/Class/RNDIS.h> #include <LUFA/Drivers/USB/USB.h>
/* Macros: */ /* Macros: */
#define ETHERTYPE_IPV4 0x0800 #define ETHERTYPE_IPV4 0x0800
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
* - Core: * - Core:
* - When automatic PLL management mode is enabled on the U4 series AVR8 chips, the PLL is now configured for 48MHz and not * - When automatic PLL management mode is enabled on the U4 series AVR8 chips, the PLL is now configured for 48MHz and not
* a divided 96MHz, to lower power consumption and to keep the system within the datasheet specs for 3.3V operation (thanks to Scott Vitale) * a divided 96MHz, to lower power consumption and to keep the system within the datasheet specs for 3.3V operation (thanks to Scott Vitale)
* - Added Class, ClassDevice, ClassHost and ClassCommon to the internal class driver source filenames to prevent ambiguities
* - Library Applications: * - Library Applications:
* - None * - None
* *
......
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
* <b>USB Core</b> * <b>USB Core</b>
* - The HID_KEYBOARD_MODIFER_* macros in the HID class driver have been corrected to HID_KEYBOARD_MODIFIER_* (note the spelling of "modifier"). * - The HID_KEYBOARD_MODIFER_* macros in the HID class driver have been corrected to HID_KEYBOARD_MODIFIER_* (note the spelling of "modifier").
* Existing applications should switch over to the correctly spelled macro names. * Existing applications should switch over to the correctly spelled macro names.
* - The names of the USB Device and USB Host class driver files have changed; a new "ClassDevice" and "ClassHost" postfix has been added to the
* respective class driver files. Projects referencing the class driver source files by filename rather than the LUFA_SRC_USBCLASS makefile
* variable should append these postfixes to the source file names. Projects including the USB class driver dispatch headers directly should either
* switch to including the main USB driver header instead, or use the updated header filenames.
* *
* \section Sec_Migration111009 Migrating from 110528 to 111009 * \section Sec_Migration111009 Migrating from 110528 to 111009
* <b>Non-USB Library Components</b> * <b>Non-USB Library Components</b>
......
...@@ -67,11 +67,11 @@ ...@@ -67,11 +67,11 @@
#include "../Core/USBMode.h" #include "../Core/USBMode.h"
#if defined(USB_CAN_BE_DEVICE) #if defined(USB_CAN_BE_DEVICE)
#include "Device/Audio.h" #include "Device/AudioClassDevice.h"
#endif #endif
#if defined(USB_CAN_BE_HOST) #if defined(USB_CAN_BE_HOST)
#include "Host/Audio.h" #include "Host/AudioClassHost.h"
#endif #endif
#endif #endif
......
...@@ -67,11 +67,11 @@ ...@@ -67,11 +67,11 @@
#include "../Core/USBMode.h" #include "../Core/USBMode.h"
#if defined(USB_CAN_BE_DEVICE) #if defined(USB_CAN_BE_DEVICE)
#include "Device/CDC.h" #include "Device/CDCClassDevice.h"
#endif #endif
#if defined(USB_CAN_BE_HOST) #if defined(USB_CAN_BE_HOST)
#include "Host/CDC.h" #include "Host/CDCClassHost.h"
#endif #endif
#endif #endif
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
#include "../../../../Common/Common.h" #include "../../../../Common/Common.h"
#include "HIDReportData.h" #include "HIDReportData.h"
#include "../Common/HID.h" #include "HIDClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../Core/StdDescriptors.h" #include "../../Core/StdDescriptors.h"
#include "Audio.h" #include "AudioClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../Core/StdDescriptors.h" #include "../../Core/StdDescriptors.h"
#include "CDC.h" #include "CDCClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_AUDIO_DRIVER #define __INCLUDE_FROM_AUDIO_DRIVER
#define __INCLUDE_FROM_AUDIO_DEVICE_C #define __INCLUDE_FROM_AUDIO_DEVICE_C
#include "Audio.h" #include "AudioClassDevice.h"
void Audio_Device_ProcessControlRequest(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo) void Audio_Device_ProcessControlRequest(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo)
{ {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/Audio.h" #include "../Common/AudioClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_CDC_DRIVER #define __INCLUDE_FROM_CDC_DRIVER
#define __INCLUDE_FROM_CDC_DEVICE_C #define __INCLUDE_FROM_CDC_DEVICE_C
#include "CDC.h" #include "CDCClassDevice.h"
void CDC_Device_ProcessControlRequest(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo) void CDC_Device_ProcessControlRequest(USB_ClassInfo_CDC_Device_t* const CDCInterfaceInfo)
{ {
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/CDC.h" #include "../Common/CDCClassCommon.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_HID_DRIVER #define __INCLUDE_FROM_HID_DRIVER
#define __INCLUDE_FROM_HID_DEVICE_C #define __INCLUDE_FROM_HID_DEVICE_C
#include "HID.h" #include "HIDClassDevice.h"
void HID_Device_ProcessControlRequest(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo) void HID_Device_ProcessControlRequest(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo)
{ {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/HID.h" #include "../Common/HIDClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_MIDI_DRIVER #define __INCLUDE_FROM_MIDI_DRIVER
#define __INCLUDE_FROM_MIDI_DEVICE_C #define __INCLUDE_FROM_MIDI_DEVICE_C
#include "MIDI.h" #include "MIDIClassDevice.h"
bool MIDI_Device_ConfigureEndpoints(USB_ClassInfo_MIDI_Device_t* const MIDIInterfaceInfo) bool MIDI_Device_ConfigureEndpoints(USB_ClassInfo_MIDI_Device_t* const MIDIInterfaceInfo)
{ {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/MIDI.h" #include "../Common/MIDIClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_MS_DRIVER #define __INCLUDE_FROM_MS_DRIVER
#define __INCLUDE_FROM_MASSSTORAGE_DEVICE_C #define __INCLUDE_FROM_MASSSTORAGE_DEVICE_C
#include "MassStorage.h" #include "MassStorageClassDevice.h"
void MS_Device_ProcessControlRequest(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo) void MS_Device_ProcessControlRequest(USB_ClassInfo_MS_Device_t* const MSInterfaceInfo)
{ {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/MassStorage.h" #include "../Common/MassStorageClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_RNDIS_DRIVER #define __INCLUDE_FROM_RNDIS_DRIVER
#define __INCLUDE_FROM_RNDIS_DEVICE_C #define __INCLUDE_FROM_RNDIS_DEVICE_C
#include "RNDIS.h" #include "RNDISClassDevice.h"
static const uint32_t PROGMEM AdapterSupportedOIDList[] = static const uint32_t PROGMEM AdapterSupportedOIDList[] =
{ {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/RNDIS.h" #include "../Common/RNDISClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -68,11 +68,11 @@ ...@@ -68,11 +68,11 @@
#include "../Core/USBMode.h" #include "../Core/USBMode.h"
#if defined(USB_CAN_BE_DEVICE) #if defined(USB_CAN_BE_DEVICE)
#include "Device/HID.h" #include "Device/HIDClassDevice.h"
#endif #endif
#if defined(USB_CAN_BE_HOST) #if defined(USB_CAN_BE_HOST)
#include "Host/HID.h" #include "Host/HIDClassHost.h"
#endif #endif
#endif #endif
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_AUDIO_DRIVER #define __INCLUDE_FROM_AUDIO_DRIVER
#define __INCLUDE_FROM_AUDIO_HOST_C #define __INCLUDE_FROM_AUDIO_HOST_C
#include "Audio.h" #include "AudioClassHost.h"
uint8_t Audio_Host_ConfigurePipes(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo, uint8_t Audio_Host_ConfigurePipes(USB_ClassInfo_Audio_Host_t* const AudioInterfaceInfo,
uint16_t ConfigDescriptorSize, uint16_t ConfigDescriptorSize,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/Audio.h" #include "../Common/AudioClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_CDC_DRIVER #define __INCLUDE_FROM_CDC_DRIVER
#define __INCLUDE_FROM_CDC_HOST_C #define __INCLUDE_FROM_CDC_HOST_C
#include "CDC.h" #include "CDCClassHost.h"
uint8_t CDC_Host_ConfigurePipes(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo, uint8_t CDC_Host_ConfigurePipes(USB_ClassInfo_CDC_Host_t* const CDCInterfaceInfo,
uint16_t ConfigDescriptorSize, uint16_t ConfigDescriptorSize,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/CDC.h" #include "../Common/CDCClassCommon.h"
#include <stdio.h> #include <stdio.h>
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_HID_DRIVER #define __INCLUDE_FROM_HID_DRIVER
#define __INCLUDE_FROM_HID_HOST_C #define __INCLUDE_FROM_HID_HOST_C
#include "HID.h" #include "HIDClassHost.h"
uint8_t HID_Host_ConfigurePipes(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo, uint8_t HID_Host_ConfigurePipes(USB_ClassInfo_HID_Host_t* const HIDInterfaceInfo,
uint16_t ConfigDescriptorSize, uint16_t ConfigDescriptorSize,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/HID.h" #include "../Common/HIDClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_MIDI_DRIVER #define __INCLUDE_FROM_MIDI_DRIVER
#define __INCLUDE_FROM_MIDI_HOST_C #define __INCLUDE_FROM_MIDI_HOST_C
#include "MIDI.h" #include "MIDIClassHost.h"
uint8_t MIDI_Host_ConfigurePipes(USB_ClassInfo_MIDI_Host_t* const MIDIInterfaceInfo, uint8_t MIDI_Host_ConfigurePipes(USB_ClassInfo_MIDI_Host_t* const MIDIInterfaceInfo,
uint16_t ConfigDescriptorSize, uint16_t ConfigDescriptorSize,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/MIDI.h" #include "../Common/MIDIClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_MS_DRIVER #define __INCLUDE_FROM_MS_DRIVER
#define __INCLUDE_FROM_MASSSTORAGE_HOST_C #define __INCLUDE_FROM_MASSSTORAGE_HOST_C
#include "MassStorage.h" #include "MassStorageClassHost.h"
uint8_t MS_Host_ConfigurePipes(USB_ClassInfo_MS_Host_t* const MSInterfaceInfo, uint8_t MS_Host_ConfigurePipes(USB_ClassInfo_MS_Host_t* const MSInterfaceInfo,
uint16_t ConfigDescriptorSize, uint16_t ConfigDescriptorSize,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/MassStorage.h" #include "../Common/MassStorageClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_PRINTER_DRIVER #define __INCLUDE_FROM_PRINTER_DRIVER
#define __INCLUDE_FROM_PRINTER_HOST_C #define __INCLUDE_FROM_PRINTER_HOST_C
#include "Printer.h" #include "PrinterClassHost.h"
uint8_t PRNT_Host_ConfigurePipes(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo, uint8_t PRNT_Host_ConfigurePipes(USB_ClassInfo_PRNT_Host_t* const PRNTInterfaceInfo,
uint16_t ConfigDescriptorSize, uint16_t ConfigDescriptorSize,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/Printer.h" #include "../Common/PrinterClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_RNDIS_DRIVER #define __INCLUDE_FROM_RNDIS_DRIVER
#define __INCLUDE_FROM_RNDIS_HOST_C #define __INCLUDE_FROM_RNDIS_HOST_C
#include "RNDIS.h" #include "RNDISClassHost.h"
uint8_t RNDIS_Host_ConfigurePipes(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo, uint8_t RNDIS_Host_ConfigurePipes(USB_ClassInfo_RNDIS_Host_t* const RNDISInterfaceInfo,
uint16_t ConfigDescriptorSize, uint16_t ConfigDescriptorSize,
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/RNDIS.h" #include "../Common/RNDISClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define __INCLUDE_FROM_SI_DRIVER #define __INCLUDE_FROM_SI_DRIVER
#define __INCLUDE_FROM_STILLIMAGE_HOST_C #define __INCLUDE_FROM_STILLIMAGE_HOST_C
#include "StillImage.h" #include "StillImageClassHost.h"
uint8_t SI_Host_ConfigurePipes(USB_ClassInfo_SI_Host_t* const SIInterfaceInfo, uint8_t SI_Host_ConfigurePipes(USB_ClassInfo_SI_Host_t* const SIInterfaceInfo,
uint16_t ConfigDescriptorSize, uint16_t ConfigDescriptorSize,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
/* Includes: */ /* Includes: */
#include "../../USB.h" #include "../../USB.h"
#include "../Common/StillImage.h" #include "../Common/StillImageClassCommon.h"
/* Enable C linkage for C++ Compilers: */ /* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus) #if defined(__cplusplus)
......
...@@ -70,11 +70,11 @@ ...@@ -70,11 +70,11 @@
#include "../Core/USBMode.h" #include "../Core/USBMode.h"
#if defined(USB_CAN_BE_DEVICE) #if defined(USB_CAN_BE_DEVICE)
#include "Device/MIDI.h" #include "Device/MIDIClassDevice.h"
#endif #endif
#if defined(USB_CAN_BE_HOST) #if defined(USB_CAN_BE_HOST)
#include "Host/MIDI.h" #include "Host/MIDIClassHost.h"
#endif #endif
#endif #endif
......
...@@ -67,11 +67,11 @@ ...@@ -67,11 +67,11 @@
#include "../Core/USBMode.h" #include "../Core/USBMode.h"
#if defined(USB_CAN_BE_DEVICE) #if defined(USB_CAN_BE_DEVICE)
#include "Device/MassStorage.h" #include "Device/MassStorageClassDevice.h"
#endif #endif
#if defined(USB_CAN_BE_HOST) #if defined(USB_CAN_BE_HOST)
#include "Host/MassStorage.h" #include "Host/MassStorageClassHost.h"
#endif #endif
#endif #endif
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
#include "../Core/USBMode.h" #include "../Core/USBMode.h"
#if defined(USB_CAN_BE_HOST) #if defined(USB_CAN_BE_HOST)
#include "Host/Printer.h" #include "Host/PrinterClassHost.h"
#endif #endif