forked from mirror/qmk_firmware
Compare commits
81 Commits
LUFA-13090
...
LUFA-14030
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6c18b2a7c | ||
|
|
a80d0c9965 | ||
|
|
fa32989f2e | ||
|
|
aaef4fa84c | ||
|
|
9dc7e68d76 | ||
|
|
2141155e9e | ||
|
|
c49d4af449 | ||
|
|
987cd32f65 | ||
|
|
b095177e20 | ||
|
|
c5282637ed | ||
|
|
0d84b65f0b | ||
|
|
5789767889 | ||
|
|
32c5c43bf0 | ||
|
|
8328175482 | ||
|
|
deb1675f84 | ||
|
|
28cadf077e | ||
|
|
2e70de6194 | ||
|
|
812114d9c1 | ||
|
|
129824028b | ||
|
|
92006938d3 | ||
|
|
0f6c155a04 | ||
|
|
161263af47 | ||
|
|
5cae541545 | ||
|
|
e368a89987 | ||
|
|
510d29d472 | ||
|
|
ef16683b42 | ||
|
|
6e0baf4342 | ||
|
|
ccbba9bfe5 | ||
|
|
92d1d0342b | ||
|
|
123b5bc47b | ||
|
|
4c25f212c3 | ||
|
|
af893c3df6 | ||
|
|
31022dfbe9 | ||
|
|
1cd0f66347 | ||
|
|
d8f0d2709b | ||
|
|
9965b2ca0a | ||
|
|
25a02432e7 | ||
|
|
a359a266df | ||
|
|
70a726b5aa | ||
|
|
e3cb0f48ef | ||
|
|
52c69331ec | ||
|
|
52a5016576 | ||
|
|
8edd561948 | ||
|
|
32013ebffb | ||
|
|
6eba84bf4b | ||
|
|
16c4f1d43c | ||
|
|
4b6049bb59 | ||
|
|
d251ef6bed | ||
|
|
9d6303cead | ||
|
|
90c7491e51 | ||
|
|
d2eaf94dbb | ||
|
|
6b214472b7 | ||
|
|
d31e0a4d37 | ||
|
|
bcd07f4f8a | ||
|
|
94323fadd1 | ||
|
|
b7b6f212e9 | ||
|
|
14e44b626f | ||
|
|
814d0b9098 | ||
|
|
85141b37f9 | ||
|
|
560e5f75fb | ||
|
|
e1b19e4e10 | ||
|
|
13b3014db4 | ||
|
|
3fc75f130b | ||
|
|
cf41d16bc7 | ||
|
|
e7a8fd6033 | ||
|
|
cb10891bd6 | ||
|
|
7024bb4c79 | ||
|
|
352152c664 | ||
|
|
ab238601b9 | ||
|
|
7ce4d35c39 | ||
|
|
9ef29ea229 | ||
|
|
8e2476a125 | ||
|
|
8026bee8d6 | ||
|
|
b6bf314d50 | ||
|
|
ef1a4b750b | ||
|
|
c41512c1e8 | ||
|
|
75419b4d97 | ||
|
|
cd3aae87da | ||
|
|
d6be06ea6a | ||
|
|
716f356b21 | ||
|
|
b229aef6f7 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -9,5 +9,6 @@
|
|||||||
*.map
|
*.map
|
||||||
*.bak
|
*.bak
|
||||||
*.class
|
*.class
|
||||||
|
Documentation/
|
||||||
LUFA/StudioIntegration/ProjectGenerator/*
|
LUFA/StudioIntegration/ProjectGenerator/*
|
||||||
LUFA/StudioIntegration/DocBook/*
|
LUFA/StudioIntegration/DocBook/*
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -236,9 +236,9 @@ void EVENT_USB_Device_ControlRequest(void)
|
|||||||
|
|
||||||
#if !defined(NO_BLOCK_SUPPORT)
|
#if !defined(NO_BLOCK_SUPPORT)
|
||||||
/** Reads or writes a block of EEPROM or FLASH memory to or from the appropriate CDC data endpoint, depending
|
/** Reads or writes a block of EEPROM or FLASH memory to or from the appropriate CDC data endpoint, depending
|
||||||
* on the AVR910 protocol command issued.
|
* on the AVR109 protocol command issued.
|
||||||
*
|
*
|
||||||
* \param[in] Command Single character AVR910 protocol command indicating what memory operation to perform
|
* \param[in] Command Single character AVR109 protocol command indicating what memory operation to perform
|
||||||
*/
|
*/
|
||||||
static void ReadWriteMemoryBlock(const uint8_t Command)
|
static void ReadWriteMemoryBlock(const uint8_t Command)
|
||||||
{
|
{
|
||||||
@@ -402,7 +402,7 @@ static void WriteNextResponseByte(const uint8_t Response)
|
|||||||
Endpoint_Write_8(Response);
|
Endpoint_Write_8(Response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Task to read in AVR910 commands from the CDC data OUT endpoint, process them, perform the required actions
|
/** Task to read in AVR109 commands from the CDC data OUT endpoint, process them, perform the required actions
|
||||||
* and send the appropriate response back to the host.
|
* and send the appropriate response back to the host.
|
||||||
*/
|
*/
|
||||||
static void CDC_Task(void)
|
static void CDC_Task(void)
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -171,6 +171,8 @@
|
|||||||
* this module to try to take control over inserted CDC devices, corrupting the
|
* this module to try to take control over inserted CDC devices, corrupting the
|
||||||
* datastream. A UDEV rule is required to prevent this.
|
* datastream. A UDEV rule is required to prevent this.
|
||||||
* See <a href=https://groups.google.com/d/msg/lufa-support/CP9cy2bc8yo/kBqsOu-RBeMJ>here</a> for resolution steps.
|
* See <a href=https://groups.google.com/d/msg/lufa-support/CP9cy2bc8yo/kBqsOu-RBeMJ>here</a> for resolution steps.
|
||||||
|
* If the issue still persists then uninstall modemmanager by executing <tt>sudo apt-get remove modemmanager</tt>, or
|
||||||
|
* the equivalent using your chosen distribution's package manager.
|
||||||
*
|
*
|
||||||
* \par On Linux machines, the CDC bootloader is inaccessible.
|
* \par On Linux machines, the CDC bootloader is inaccessible.
|
||||||
* On many Linux systems, non-root users do not have automatic access to newly
|
* On many Linux systems, non-root users do not have automatic access to newly
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -46,7 +46,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
||||||
|
|
||||||
.USBSpecification = VERSION_BCD(01.10),
|
.USBSpecification = VERSION_BCD(1,1,0),
|
||||||
.Class = CDC_CSCP_CDCClass,
|
.Class = CDC_CSCP_CDCClass,
|
||||||
.SubClass = CDC_CSCP_NoSpecificSubclass,
|
.SubClass = CDC_CSCP_NoSpecificSubclass,
|
||||||
.Protocol = CDC_CSCP_NoSpecificProtocol,
|
.Protocol = CDC_CSCP_NoSpecificProtocol,
|
||||||
@@ -55,7 +55,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
|
|
||||||
.VendorID = 0x03EB,
|
.VendorID = 0x03EB,
|
||||||
.ProductID = 0x204A,
|
.ProductID = 0x204A,
|
||||||
.ReleaseNumber = VERSION_BCD(01.00),
|
.ReleaseNumber = VERSION_BCD(1,0,0),
|
||||||
|
|
||||||
.ManufacturerStrIndex = STRING_ID_Manufacturer,
|
.ManufacturerStrIndex = STRING_ID_Manufacturer,
|
||||||
.ProductStrIndex = STRING_ID_Product,
|
.ProductStrIndex = STRING_ID_Product,
|
||||||
@@ -90,7 +90,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 0,
|
.InterfaceNumber = INTERFACE_ID_CDC_CCI,
|
||||||
.AlternateSetting = 0,
|
.AlternateSetting = 0,
|
||||||
|
|
||||||
.TotalEndpoints = 1,
|
.TotalEndpoints = 1,
|
||||||
@@ -107,7 +107,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
.Header = {.Size = sizeof(USB_CDC_Descriptor_FunctionalHeader_t), .Type = DTYPE_CSInterface},
|
.Header = {.Size = sizeof(USB_CDC_Descriptor_FunctionalHeader_t), .Type = DTYPE_CSInterface},
|
||||||
.Subtype = 0x00,
|
.Subtype = 0x00,
|
||||||
|
|
||||||
.CDCSpecification = VERSION_BCD(01.10),
|
.CDCSpecification = VERSION_BCD(1,1,0),
|
||||||
},
|
},
|
||||||
|
|
||||||
.CDC_Functional_ACM =
|
.CDC_Functional_ACM =
|
||||||
@@ -123,8 +123,8 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
.Header = {.Size = sizeof(USB_CDC_Descriptor_FunctionalUnion_t), .Type = DTYPE_CSInterface},
|
.Header = {.Size = sizeof(USB_CDC_Descriptor_FunctionalUnion_t), .Type = DTYPE_CSInterface},
|
||||||
.Subtype = 0x06,
|
.Subtype = 0x06,
|
||||||
|
|
||||||
.MasterInterfaceNumber = 0,
|
.MasterInterfaceNumber = INTERFACE_ID_CDC_CCI,
|
||||||
.SlaveInterfaceNumber = 1,
|
.SlaveInterfaceNumber = INTERFACE_ID_CDC_DCI,
|
||||||
},
|
},
|
||||||
|
|
||||||
.CDC_NotificationEndpoint =
|
.CDC_NotificationEndpoint =
|
||||||
@@ -141,7 +141,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 1,
|
.InterfaceNumber = INTERFACE_ID_CDC_DCI,
|
||||||
.AlternateSetting = 0,
|
.AlternateSetting = 0,
|
||||||
|
|
||||||
.TotalEndpoints = 2,
|
.TotalEndpoints = 2,
|
||||||
@@ -178,34 +178,19 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
|
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
|
||||||
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
|
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t LanguageString =
|
const USB_Descriptor_String_t LanguageString = USB_STRING_DESCRIPTOR_ARRAY(LANGUAGE_ID_ENG);
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(1), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = {LANGUAGE_ID_ENG}
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
|
/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
|
||||||
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
||||||
* Descriptor.
|
* Descriptor.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t ManufacturerString =
|
const USB_Descriptor_String_t ManufacturerString = USB_STRING_DESCRIPTOR(L"Dean Camera");
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(11), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = L"Dean Camera"
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
|
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
|
||||||
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
||||||
* Descriptor.
|
* Descriptor.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t ProductString =
|
const USB_Descriptor_String_t ProductString = USB_STRING_DESCRIPTOR(L"LUFA CDC");
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(8), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = L"LUFA CDC"
|
|
||||||
};
|
|
||||||
|
|
||||||
/** This function is called by the library when in device mode, and must be overridden (see LUFA library "USB Descriptors"
|
/** This function is called by the library when in device mode, and must be overridden (see LUFA library "USB Descriptors"
|
||||||
* documentation) by the application code so that the address and size of a requested descriptor can be given
|
* documentation) by the application code so that the address and size of a requested descriptor can be given
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -127,15 +127,25 @@
|
|||||||
USB_Descriptor_Endpoint_t CDC_DataInEndpoint;
|
USB_Descriptor_Endpoint_t CDC_DataInEndpoint;
|
||||||
} USB_Descriptor_Configuration_t;
|
} USB_Descriptor_Configuration_t;
|
||||||
|
|
||||||
|
/** Enum for the device interface descriptor IDs within the device. Each interface descriptor
|
||||||
|
* should have a unique ID index associated with it, which can be used to refer to the
|
||||||
|
* interface from other descriptors.
|
||||||
|
*/
|
||||||
|
enum InterfaceDescriptors_t
|
||||||
|
{
|
||||||
|
INTERFACE_ID_CDC_CCI = 0, /**< CDC CCI interface descriptor ID */
|
||||||
|
INTERFACE_ID_CDC_DCI = 1, /**< CDC DCI interface descriptor ID */
|
||||||
|
};
|
||||||
|
|
||||||
/** Enum for the device string descriptor IDs within the device. Each string descriptor should
|
/** Enum for the device string descriptor IDs within the device. Each string descriptor should
|
||||||
* have a unique ID index associated with it, which can be used to refer to the string from
|
* have a unique ID index associated with it, which can be used to refer to the string from
|
||||||
* other descriptors.
|
* other descriptors.
|
||||||
*/
|
*/
|
||||||
enum StringDescriptors_t
|
enum StringDescriptors_t
|
||||||
{
|
{
|
||||||
STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
|
STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
|
||||||
STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
|
STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
|
||||||
STRING_ID_Product = 2, /**< Product string ID */
|
STRING_ID_Product = 2, /**< Product string ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Function Prototypes: */
|
/* Function Prototypes: */
|
||||||
|
|||||||
@@ -148,6 +148,7 @@
|
|||||||
<build type="header-file" value="Config/LUFAConfig.h"/>
|
<build type="header-file" value="Config/LUFAConfig.h"/>
|
||||||
<build type="header-file" value="Config/AppConfig.h"/>
|
<build type="header-file" value="Config/AppConfig.h"/>
|
||||||
|
|
||||||
|
<build type="distribute" subtype="user-file" value="doxyfile"/>
|
||||||
<build type="distribute" subtype="user-file" value="BootloaderCDC.txt"/>
|
<build type="distribute" subtype="user-file" value="BootloaderCDC.txt"/>
|
||||||
<build type="distribute" subtype="user-file" value="LUFA CDC Bootloader.inf"/>
|
<build type="distribute" subtype="user-file" value="LUFA CDC Bootloader.inf"/>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Doxyfile 1.8.5
|
# Doxyfile 1.8.6
|
||||||
|
|
||||||
# This file describes the settings to be used by the documentation system
|
# This file describes the settings to be used by the documentation system
|
||||||
# doxygen (www.doxygen.org) for a project.
|
# doxygen (www.doxygen.org) for a project.
|
||||||
@@ -73,12 +73,14 @@ CREATE_SUBDIRS = NO
|
|||||||
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
|
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
|
||||||
# documentation generated by doxygen is written. Doxygen will use this
|
# documentation generated by doxygen is written. Doxygen will use this
|
||||||
# information to generate all constant output in the proper language.
|
# information to generate all constant output in the proper language.
|
||||||
# Possible values are: Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-
|
# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
|
||||||
# Traditional, Croatian, Czech, Danish, Dutch, English, Esperanto, Farsi,
|
# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
|
||||||
# Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en,
|
# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
|
||||||
# Korean, Korean-en, Latvian, Norwegian, Macedonian, Persian, Polish,
|
# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
|
||||||
# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish,
|
# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
|
||||||
# Turkish, Ukrainian and Vietnamese.
|
# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
|
||||||
|
# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
|
||||||
|
# Ukrainian and Vietnamese.
|
||||||
# The default value is: English.
|
# The default value is: English.
|
||||||
|
|
||||||
OUTPUT_LANGUAGE = English
|
OUTPUT_LANGUAGE = English
|
||||||
@@ -510,6 +512,13 @@ HIDE_SCOPE_NAMES = NO
|
|||||||
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
SHOW_INCLUDE_FILES = YES
|
||||||
|
|
||||||
|
# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
|
||||||
|
# grouped member an include statement to the documentation, telling the reader
|
||||||
|
# which file to include in order to use the member.
|
||||||
|
# The default value is: NO.
|
||||||
|
|
||||||
|
SHOW_GROUPED_MEMB_INC = NO
|
||||||
|
|
||||||
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
|
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
|
||||||
# files with double quotes in the documentation rather than with sharp brackets.
|
# files with double quotes in the documentation rather than with sharp brackets.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
@@ -531,7 +540,8 @@ SORT_MEMBER_DOCS = YES
|
|||||||
|
|
||||||
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
|
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
|
||||||
# descriptions of file, namespace and class members alphabetically by member
|
# descriptions of file, namespace and class members alphabetically by member
|
||||||
# name. If set to NO the members will appear in declaration order.
|
# name. If set to NO the members will appear in declaration order. Note that
|
||||||
|
# this will also influence the order of the classes in the class list.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
SORT_BRIEF_DOCS = NO
|
SORT_BRIEF_DOCS = NO
|
||||||
@@ -2053,6 +2063,13 @@ CLASS_DIAGRAMS = NO
|
|||||||
|
|
||||||
MSCGEN_PATH =
|
MSCGEN_PATH =
|
||||||
|
|
||||||
|
# You can include diagrams made with dia in doxygen documentation. Doxygen will
|
||||||
|
# then run dia to produce the diagram and insert it in the documentation. The
|
||||||
|
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
|
||||||
|
# If left empty dia is assumed to be found in the default search path.
|
||||||
|
|
||||||
|
DIA_PATH =
|
||||||
|
|
||||||
# If set to YES, the inheritance and collaboration graphs will hide inheritance
|
# If set to YES, the inheritance and collaboration graphs will hide inheritance
|
||||||
# and usage relations if the target is undocumented or is not a class.
|
# and usage relations if the target is undocumented or is not a class.
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
@@ -2253,6 +2270,12 @@ DOTFILE_DIRS =
|
|||||||
|
|
||||||
MSCFILE_DIRS =
|
MSCFILE_DIRS =
|
||||||
|
|
||||||
|
# The DIAFILE_DIRS tag can be used to specify one or more directories that
|
||||||
|
# contain dia files that are included in the documentation (see the \diafile
|
||||||
|
# command).
|
||||||
|
|
||||||
|
DIAFILE_DIRS =
|
||||||
|
|
||||||
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
|
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
|
||||||
# that will be shown in the graph. If the number of nodes in a graph becomes
|
# that will be shown in the graph. If the number of nodes in a graph becomes
|
||||||
# larger than this value, doxygen will truncate the graph, which is visualized
|
# larger than this value, doxygen will truncate the graph, which is visualized
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2011.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -785,13 +785,20 @@ static void ProcessWriteCommand(void)
|
|||||||
static void ProcessReadCommand(void)
|
static void ProcessReadCommand(void)
|
||||||
{
|
{
|
||||||
const uint8_t BootloaderInfo[3] = {BOOTLOADER_VERSION, BOOTLOADER_ID_BYTE1, BOOTLOADER_ID_BYTE2};
|
const uint8_t BootloaderInfo[3] = {BOOTLOADER_VERSION, BOOTLOADER_ID_BYTE1, BOOTLOADER_ID_BYTE2};
|
||||||
const uint8_t SignatureInfo[3] = {AVR_SIGNATURE_1, AVR_SIGNATURE_2, AVR_SIGNATURE_3};
|
const uint8_t SignatureInfo[4] = {0x58, AVR_SIGNATURE_1, AVR_SIGNATURE_2, AVR_SIGNATURE_3};
|
||||||
|
|
||||||
uint8_t DataIndexToRead = SentCommand.Data[1];
|
uint8_t DataIndexToRead = SentCommand.Data[1];
|
||||||
|
|
||||||
if (IS_ONEBYTE_COMMAND(SentCommand.Data, 0x00)) // Read bootloader info
|
if (IS_ONEBYTE_COMMAND(SentCommand.Data, 0x00)) // Read bootloader info
|
||||||
ResponseByte = BootloaderInfo[DataIndexToRead];
|
{
|
||||||
|
ResponseByte = BootloaderInfo[DataIndexToRead];
|
||||||
|
}
|
||||||
else if (IS_ONEBYTE_COMMAND(SentCommand.Data, 0x01)) // Read signature byte
|
else if (IS_ONEBYTE_COMMAND(SentCommand.Data, 0x01)) // Read signature byte
|
||||||
ResponseByte = SignatureInfo[DataIndexToRead - 0x30];
|
{
|
||||||
|
if (DataIndexToRead < 0x60)
|
||||||
|
ResponseByte = SignatureInfo[DataIndexToRead - 0x30];
|
||||||
|
else
|
||||||
|
ResponseByte = SignatureInfo[DataIndexToRead - 0x60 + 3];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
#define BOOTLOADER_VERSION_REV 0
|
#define BOOTLOADER_VERSION_REV 0
|
||||||
|
|
||||||
/** Magic bootloader key to unlock forced application start mode. */
|
/** Magic bootloader key to unlock forced application start mode. */
|
||||||
#define MAGIC_BOOT_KEY 0xDC42
|
#define MAGIC_BOOT_KEY 0xDC42
|
||||||
|
|
||||||
/** Complete bootloader version number expressed as a packed byte, constructed from the
|
/** Complete bootloader version number expressed as a packed byte, constructed from the
|
||||||
* two individual bootloader version macros.
|
* two individual bootloader version macros.
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
dfuMANIFEST = 7,
|
dfuMANIFEST = 7,
|
||||||
dfuMANIFEST_WAIT_RESET = 8,
|
dfuMANIFEST_WAIT_RESET = 8,
|
||||||
dfuUPLOAD_IDLE = 9,
|
dfuUPLOAD_IDLE = 9,
|
||||||
dfuERROR = 10
|
dfuERROR = 10
|
||||||
};
|
};
|
||||||
|
|
||||||
/** DFU command status error codes. Refer to the DFU class specification for information on each error code. */
|
/** DFU command status error codes. Refer to the DFU class specification for information on each error code. */
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
errUSBR = 12,
|
errUSBR = 12,
|
||||||
errPOR = 13,
|
errPOR = 13,
|
||||||
errUNKNOWN = 14,
|
errUNKNOWN = 14,
|
||||||
errSTALLEDPKT = 15
|
errSTALLEDPKT = 15
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Function Prototypes: */
|
/* Function Prototypes: */
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -46,7 +46,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
||||||
|
|
||||||
.USBSpecification = VERSION_BCD(01.10),
|
.USBSpecification = VERSION_BCD(1,1,0),
|
||||||
.Class = USB_CSCP_NoDeviceClass,
|
.Class = USB_CSCP_NoDeviceClass,
|
||||||
.SubClass = USB_CSCP_NoDeviceSubclass,
|
.SubClass = USB_CSCP_NoDeviceSubclass,
|
||||||
.Protocol = USB_CSCP_NoDeviceProtocol,
|
.Protocol = USB_CSCP_NoDeviceProtocol,
|
||||||
@@ -55,7 +55,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
|
|
||||||
.VendorID = 0x03EB,
|
.VendorID = 0x03EB,
|
||||||
.ProductID = PRODUCT_ID_CODE,
|
.ProductID = PRODUCT_ID_CODE,
|
||||||
.ReleaseNumber = VERSION_BCD(00.00),
|
.ReleaseNumber = VERSION_BCD(0,0,0),
|
||||||
|
|
||||||
.ManufacturerStrIndex = STRING_ID_Manufacturer,
|
.ManufacturerStrIndex = STRING_ID_Manufacturer,
|
||||||
.ProductStrIndex = STRING_ID_Product,
|
.ProductStrIndex = STRING_ID_Product,
|
||||||
@@ -90,7 +90,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 0,
|
.InterfaceNumber = INTERFACE_ID_DFU,
|
||||||
.AlternateSetting = 0,
|
.AlternateSetting = 0,
|
||||||
|
|
||||||
.TotalEndpoints = 0,
|
.TotalEndpoints = 0,
|
||||||
@@ -111,7 +111,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
.DetachTimeout = 0x0000,
|
.DetachTimeout = 0x0000,
|
||||||
.TransferSize = 0x0C00,
|
.TransferSize = 0x0C00,
|
||||||
|
|
||||||
.DFUSpecification = VERSION_BCD(01.10)
|
.DFUSpecification = VERSION_BCD(1,1,0)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -119,34 +119,19 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
|
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
|
||||||
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
|
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t LanguageString =
|
const USB_Descriptor_String_t LanguageString = USB_STRING_DESCRIPTOR_ARRAY(LANGUAGE_ID_ENG);
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(1), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = {LANGUAGE_ID_ENG}
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
|
/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
|
||||||
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
||||||
* Descriptor.
|
* Descriptor.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t ManufacturerString =
|
const USB_Descriptor_String_t ManufacturerString = USB_STRING_DESCRIPTOR(L"Dean Camera");
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(11), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = L"Dean Camera"
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
|
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
|
||||||
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
||||||
* Descriptor.
|
* Descriptor.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t ProductString =
|
const USB_Descriptor_String_t ProductString = USB_STRING_DESCRIPTOR(L"LUFA DFU");
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(8), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = L"LUFA DFU"
|
|
||||||
};
|
|
||||||
|
|
||||||
/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
|
/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
|
||||||
* documentation) by the application code so that the address and size of a requested descriptor can be given
|
* documentation) by the application code so that the address and size of a requested descriptor can be given
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -164,15 +164,24 @@
|
|||||||
USB_Descriptor_DFU_Functional_t DFU_Functional;
|
USB_Descriptor_DFU_Functional_t DFU_Functional;
|
||||||
} USB_Descriptor_Configuration_t;
|
} USB_Descriptor_Configuration_t;
|
||||||
|
|
||||||
|
/** Enum for the device interface descriptor IDs within the device. Each interface descriptor
|
||||||
|
* should have a unique ID index associated with it, which can be used to refer to the
|
||||||
|
* interface from other descriptors.
|
||||||
|
*/
|
||||||
|
enum InterfaceDescriptors_t
|
||||||
|
{
|
||||||
|
INTERFACE_ID_DFU = 0, /**< DFU interface descriptor ID */
|
||||||
|
};
|
||||||
|
|
||||||
/** Enum for the device string descriptor IDs within the device. Each string descriptor should
|
/** Enum for the device string descriptor IDs within the device. Each string descriptor should
|
||||||
* have a unique ID index associated with it, which can be used to refer to the string from
|
* have a unique ID index associated with it, which can be used to refer to the string from
|
||||||
* other descriptors.
|
* other descriptors.
|
||||||
*/
|
*/
|
||||||
enum StringDescriptors_t
|
enum StringDescriptors_t
|
||||||
{
|
{
|
||||||
STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
|
STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
|
||||||
STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
|
STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
|
||||||
STRING_ID_Product = 2, /**< Product string ID */
|
STRING_ID_Product = 2, /**< Product string ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Function Prototypes: */
|
/* Function Prototypes: */
|
||||||
|
|||||||
@@ -144,6 +144,7 @@
|
|||||||
<build type="header-file" value="Config/LUFAConfig.h"/>
|
<build type="header-file" value="Config/LUFAConfig.h"/>
|
||||||
<build type="header-file" value="Config/AppConfig.h"/>
|
<build type="header-file" value="Config/AppConfig.h"/>
|
||||||
|
|
||||||
|
<build type="distribute" subtype="user-file" value="doxyfile"/>
|
||||||
<build type="distribute" subtype="user-file" value="BootloaderDFU.txt"/>
|
<build type="distribute" subtype="user-file" value="BootloaderDFU.txt"/>
|
||||||
|
|
||||||
<require idref="lufa.common"/>
|
<require idref="lufa.common"/>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Doxyfile 1.8.5
|
# Doxyfile 1.8.6
|
||||||
|
|
||||||
# This file describes the settings to be used by the documentation system
|
# This file describes the settings to be used by the documentation system
|
||||||
# doxygen (www.doxygen.org) for a project.
|
# doxygen (www.doxygen.org) for a project.
|
||||||
@@ -73,12 +73,14 @@ CREATE_SUBDIRS = NO
|
|||||||
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
|
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
|
||||||
# documentation generated by doxygen is written. Doxygen will use this
|
# documentation generated by doxygen is written. Doxygen will use this
|
||||||
# information to generate all constant output in the proper language.
|
# information to generate all constant output in the proper language.
|
||||||
# Possible values are: Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-
|
# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
|
||||||
# Traditional, Croatian, Czech, Danish, Dutch, English, Esperanto, Farsi,
|
# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
|
||||||
# Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en,
|
# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
|
||||||
# Korean, Korean-en, Latvian, Norwegian, Macedonian, Persian, Polish,
|
# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
|
||||||
# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish,
|
# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
|
||||||
# Turkish, Ukrainian and Vietnamese.
|
# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
|
||||||
|
# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
|
||||||
|
# Ukrainian and Vietnamese.
|
||||||
# The default value is: English.
|
# The default value is: English.
|
||||||
|
|
||||||
OUTPUT_LANGUAGE = English
|
OUTPUT_LANGUAGE = English
|
||||||
@@ -510,6 +512,13 @@ HIDE_SCOPE_NAMES = NO
|
|||||||
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
SHOW_INCLUDE_FILES = YES
|
||||||
|
|
||||||
|
# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
|
||||||
|
# grouped member an include statement to the documentation, telling the reader
|
||||||
|
# which file to include in order to use the member.
|
||||||
|
# The default value is: NO.
|
||||||
|
|
||||||
|
SHOW_GROUPED_MEMB_INC = NO
|
||||||
|
|
||||||
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
|
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
|
||||||
# files with double quotes in the documentation rather than with sharp brackets.
|
# files with double quotes in the documentation rather than with sharp brackets.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
@@ -531,7 +540,8 @@ SORT_MEMBER_DOCS = YES
|
|||||||
|
|
||||||
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
|
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
|
||||||
# descriptions of file, namespace and class members alphabetically by member
|
# descriptions of file, namespace and class members alphabetically by member
|
||||||
# name. If set to NO the members will appear in declaration order.
|
# name. If set to NO the members will appear in declaration order. Note that
|
||||||
|
# this will also influence the order of the classes in the class list.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
SORT_BRIEF_DOCS = NO
|
SORT_BRIEF_DOCS = NO
|
||||||
@@ -2053,6 +2063,13 @@ CLASS_DIAGRAMS = NO
|
|||||||
|
|
||||||
MSCGEN_PATH =
|
MSCGEN_PATH =
|
||||||
|
|
||||||
|
# You can include diagrams made with dia in doxygen documentation. Doxygen will
|
||||||
|
# then run dia to produce the diagram and insert it in the documentation. The
|
||||||
|
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
|
||||||
|
# If left empty dia is assumed to be found in the default search path.
|
||||||
|
|
||||||
|
DIA_PATH =
|
||||||
|
|
||||||
# If set to YES, the inheritance and collaboration graphs will hide inheritance
|
# If set to YES, the inheritance and collaboration graphs will hide inheritance
|
||||||
# and usage relations if the target is undocumented or is not a class.
|
# and usage relations if the target is undocumented or is not a class.
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
@@ -2253,6 +2270,12 @@ DOTFILE_DIRS =
|
|||||||
|
|
||||||
MSCFILE_DIRS =
|
MSCFILE_DIRS =
|
||||||
|
|
||||||
|
# The DIAFILE_DIRS tag can be used to specify one or more directories that
|
||||||
|
# contain dia files that are included in the documentation (see the \diafile
|
||||||
|
# command).
|
||||||
|
|
||||||
|
DIAFILE_DIRS =
|
||||||
|
|
||||||
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
|
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
|
||||||
# that will be shown in the graph. If the number of nodes in a graph becomes
|
# that will be shown in the graph. If the number of nodes in a graph becomes
|
||||||
# larger than this value, doxygen will truncate the graph, which is visualized
|
# larger than this value, doxygen will truncate the graph, which is visualized
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
*
|
*
|
||||||
* This bootloader enumerates to the host as a HID Class device, allowing for device FLASH programming through
|
* This bootloader enumerates to the host as a HID Class device, allowing for device FLASH programming through
|
||||||
* the supplied command line software, which is a modified version of Paul's TeensyHID Command Line loader code
|
* the supplied command line software, which is a modified version of Paul's TeensyHID Command Line loader code
|
||||||
* from PJRC (used with permission). This bootloader is deliberatley non-compatible with the properietary PJRC
|
* from PJRC (used with permission). This bootloader is deliberately non-compatible with the proprietary PJRC
|
||||||
* HalfKay bootloader GUI; only the command line interface software accompanying this bootloader will work with it.
|
* HalfKay bootloader GUI; only the command line interface software accompanying this bootloader will work with it.
|
||||||
*
|
*
|
||||||
* Out of the box this bootloader builds for the AT90USB1287 with an 8KB bootloader section size, and will fit
|
* Out of the box this bootloader builds for the AT90USB1287 with an 8KB bootloader section size, and will fit
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -48,12 +48,12 @@ const USB_Descriptor_HIDReport_Datatype_t HIDReport[] =
|
|||||||
HID_RI_USAGE_PAGE(16, 0xFFDC), /* Vendor Page 0xDC */
|
HID_RI_USAGE_PAGE(16, 0xFFDC), /* Vendor Page 0xDC */
|
||||||
HID_RI_USAGE(8, 0xFB), /* Vendor Usage 0xFB */
|
HID_RI_USAGE(8, 0xFB), /* Vendor Usage 0xFB */
|
||||||
HID_RI_COLLECTION(8, 0x01), /* Vendor Usage 1 */
|
HID_RI_COLLECTION(8, 0x01), /* Vendor Usage 1 */
|
||||||
HID_RI_USAGE(8, 0x02), /* Vendor Usage 2 */
|
HID_RI_USAGE(8, 0x02), /* Vendor Usage 2 */
|
||||||
HID_RI_LOGICAL_MINIMUM(8, 0x00),
|
HID_RI_LOGICAL_MINIMUM(8, 0x00),
|
||||||
HID_RI_LOGICAL_MAXIMUM(8, 0xFF),
|
HID_RI_LOGICAL_MAXIMUM(8, 0xFF),
|
||||||
HID_RI_REPORT_SIZE(8, 0x08),
|
HID_RI_REPORT_SIZE(8, 0x08),
|
||||||
HID_RI_REPORT_COUNT(16, (sizeof(uint16_t) + SPM_PAGESIZE)),
|
HID_RI_REPORT_COUNT(16, (sizeof(uint16_t) + SPM_PAGESIZE)),
|
||||||
HID_RI_OUTPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_ABSOLUTE | HID_IOF_NON_VOLATILE),
|
HID_RI_OUTPUT(8, HID_IOF_DATA | HID_IOF_VARIABLE | HID_IOF_ABSOLUTE | HID_IOF_NON_VOLATILE),
|
||||||
HID_RI_END_COLLECTION(0),
|
HID_RI_END_COLLECTION(0),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
||||||
|
|
||||||
.USBSpecification = VERSION_BCD(01.10),
|
.USBSpecification = VERSION_BCD(1,1,0),
|
||||||
.Class = USB_CSCP_NoDeviceClass,
|
.Class = USB_CSCP_NoDeviceClass,
|
||||||
.SubClass = USB_CSCP_NoDeviceSubclass,
|
.SubClass = USB_CSCP_NoDeviceSubclass,
|
||||||
.Protocol = USB_CSCP_NoDeviceProtocol,
|
.Protocol = USB_CSCP_NoDeviceProtocol,
|
||||||
@@ -75,7 +75,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
|
|
||||||
.VendorID = 0x03EB,
|
.VendorID = 0x03EB,
|
||||||
.ProductID = 0x2067,
|
.ProductID = 0x2067,
|
||||||
.ReleaseNumber = VERSION_BCD(00.01),
|
.ReleaseNumber = VERSION_BCD(0,0,1),
|
||||||
|
|
||||||
.ManufacturerStrIndex = NO_DESCRIPTOR,
|
.ManufacturerStrIndex = NO_DESCRIPTOR,
|
||||||
.ProductStrIndex = NO_DESCRIPTOR,
|
.ProductStrIndex = NO_DESCRIPTOR,
|
||||||
@@ -110,7 +110,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 0x00,
|
.InterfaceNumber = INTERFACE_ID_Printer,
|
||||||
.AlternateSetting = 0x00,
|
.AlternateSetting = 0x00,
|
||||||
|
|
||||||
.TotalEndpoints = 1,
|
.TotalEndpoints = 1,
|
||||||
@@ -126,7 +126,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_HID_Descriptor_HID_t), .Type = HID_DTYPE_HID},
|
.Header = {.Size = sizeof(USB_HID_Descriptor_HID_t), .Type = HID_DTYPE_HID},
|
||||||
|
|
||||||
.HIDSpec = VERSION_BCD(01.11),
|
.HIDSpec = VERSION_BCD(1,1,1),
|
||||||
.CountryCode = 0x00,
|
.CountryCode = 0x00,
|
||||||
.TotalReportDescriptors = 1,
|
.TotalReportDescriptors = 1,
|
||||||
.HIDReportType = HID_DTYPE_Report,
|
.HIDReportType = HID_DTYPE_Report,
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -51,9 +51,18 @@
|
|||||||
// Generic HID Interface
|
// Generic HID Interface
|
||||||
USB_Descriptor_Interface_t HID_Interface;
|
USB_Descriptor_Interface_t HID_Interface;
|
||||||
USB_HID_Descriptor_HID_t HID_VendorHID;
|
USB_HID_Descriptor_HID_t HID_VendorHID;
|
||||||
USB_Descriptor_Endpoint_t HID_ReportINEndpoint;
|
USB_Descriptor_Endpoint_t HID_ReportINEndpoint;
|
||||||
} USB_Descriptor_Configuration_t;
|
} USB_Descriptor_Configuration_t;
|
||||||
|
|
||||||
|
/** Enum for the device interface descriptor IDs within the device. Each interface descriptor
|
||||||
|
* should have a unique ID index associated with it, which can be used to refer to the
|
||||||
|
* interface from other descriptors.
|
||||||
|
*/
|
||||||
|
enum InterfaceDescriptors_t
|
||||||
|
{
|
||||||
|
INTERFACE_ID_Printer = 0, /**< Printer interface descriptor ID */
|
||||||
|
};
|
||||||
|
|
||||||
/* Macros: */
|
/* Macros: */
|
||||||
/** Endpoint address of the HID data IN endpoint. */
|
/** Endpoint address of the HID data IN endpoint. */
|
||||||
#define HID_IN_EPADDR (ENDPOINT_DIR_IN | 1)
|
#define HID_IN_EPADDR (ENDPOINT_DIR_IN | 1)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
|
|||||||
@@ -109,6 +109,7 @@
|
|||||||
<build type="module-config" subtype="path" value="Config"/>
|
<build type="module-config" subtype="path" value="Config"/>
|
||||||
<build type="header-file" value="Config/LUFAConfig.h"/>
|
<build type="header-file" value="Config/LUFAConfig.h"/>
|
||||||
|
|
||||||
|
<build type="distribute" subtype="user-file" value="doxyfile"/>
|
||||||
<build type="distribute" subtype="user-file" value="BootloaderHID.txt"/>
|
<build type="distribute" subtype="user-file" value="BootloaderHID.txt"/>
|
||||||
<build type="distribute" subtype="directory" value="HostLoaderApp"/>
|
<build type="distribute" subtype="directory" value="HostLoaderApp"/>
|
||||||
<build type="distribute" subtype="directory" value="HostLoaderApp_Python"/>
|
<build type="distribute" subtype="directory" value="HostLoaderApp_Python"/>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Doxyfile 1.8.5
|
# Doxyfile 1.8.6
|
||||||
|
|
||||||
# This file describes the settings to be used by the documentation system
|
# This file describes the settings to be used by the documentation system
|
||||||
# doxygen (www.doxygen.org) for a project.
|
# doxygen (www.doxygen.org) for a project.
|
||||||
@@ -73,12 +73,14 @@ CREATE_SUBDIRS = NO
|
|||||||
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
|
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
|
||||||
# documentation generated by doxygen is written. Doxygen will use this
|
# documentation generated by doxygen is written. Doxygen will use this
|
||||||
# information to generate all constant output in the proper language.
|
# information to generate all constant output in the proper language.
|
||||||
# Possible values are: Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-
|
# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
|
||||||
# Traditional, Croatian, Czech, Danish, Dutch, English, Esperanto, Farsi,
|
# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
|
||||||
# Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en,
|
# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
|
||||||
# Korean, Korean-en, Latvian, Norwegian, Macedonian, Persian, Polish,
|
# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
|
||||||
# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish,
|
# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
|
||||||
# Turkish, Ukrainian and Vietnamese.
|
# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
|
||||||
|
# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
|
||||||
|
# Ukrainian and Vietnamese.
|
||||||
# The default value is: English.
|
# The default value is: English.
|
||||||
|
|
||||||
OUTPUT_LANGUAGE = English
|
OUTPUT_LANGUAGE = English
|
||||||
@@ -510,6 +512,13 @@ HIDE_SCOPE_NAMES = NO
|
|||||||
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
SHOW_INCLUDE_FILES = YES
|
||||||
|
|
||||||
|
# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
|
||||||
|
# grouped member an include statement to the documentation, telling the reader
|
||||||
|
# which file to include in order to use the member.
|
||||||
|
# The default value is: NO.
|
||||||
|
|
||||||
|
SHOW_GROUPED_MEMB_INC = NO
|
||||||
|
|
||||||
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
|
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
|
||||||
# files with double quotes in the documentation rather than with sharp brackets.
|
# files with double quotes in the documentation rather than with sharp brackets.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
@@ -531,7 +540,8 @@ SORT_MEMBER_DOCS = YES
|
|||||||
|
|
||||||
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
|
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
|
||||||
# descriptions of file, namespace and class members alphabetically by member
|
# descriptions of file, namespace and class members alphabetically by member
|
||||||
# name. If set to NO the members will appear in declaration order.
|
# name. If set to NO the members will appear in declaration order. Note that
|
||||||
|
# this will also influence the order of the classes in the class list.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
SORT_BRIEF_DOCS = NO
|
SORT_BRIEF_DOCS = NO
|
||||||
@@ -781,7 +791,8 @@ RECURSIVE = YES
|
|||||||
# run.
|
# run.
|
||||||
|
|
||||||
EXCLUDE = Documentation/ \
|
EXCLUDE = Documentation/ \
|
||||||
HostLoaderApp/
|
HostLoaderApp/ \
|
||||||
|
HostLoaderApp_Python/
|
||||||
|
|
||||||
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
|
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
|
||||||
# directories that are symbolic links (a Unix file system feature) are excluded
|
# directories that are symbolic links (a Unix file system feature) are excluded
|
||||||
@@ -2054,6 +2065,13 @@ CLASS_DIAGRAMS = NO
|
|||||||
|
|
||||||
MSCGEN_PATH =
|
MSCGEN_PATH =
|
||||||
|
|
||||||
|
# You can include diagrams made with dia in doxygen documentation. Doxygen will
|
||||||
|
# then run dia to produce the diagram and insert it in the documentation. The
|
||||||
|
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
|
||||||
|
# If left empty dia is assumed to be found in the default search path.
|
||||||
|
|
||||||
|
DIA_PATH =
|
||||||
|
|
||||||
# If set to YES, the inheritance and collaboration graphs will hide inheritance
|
# If set to YES, the inheritance and collaboration graphs will hide inheritance
|
||||||
# and usage relations if the target is undocumented or is not a class.
|
# and usage relations if the target is undocumented or is not a class.
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
@@ -2254,6 +2272,12 @@ DOTFILE_DIRS =
|
|||||||
|
|
||||||
MSCFILE_DIRS =
|
MSCFILE_DIRS =
|
||||||
|
|
||||||
|
# The DIAFILE_DIRS tag can be used to specify one or more directories that
|
||||||
|
# contain dia files that are included in the documentation (see the \diafile
|
||||||
|
# command).
|
||||||
|
|
||||||
|
DIAFILE_DIRS =
|
||||||
|
|
||||||
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
|
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
|
||||||
# that will be shown in the graph. If the number of nodes in a graph becomes
|
# that will be shown in the graph. If the number of nodes in a graph becomes
|
||||||
# larger than this value, doxygen will truncate the graph, which is visualized
|
# larger than this value, doxygen will truncate the graph, which is visualized
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2011.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -44,7 +44,7 @@ USB_ClassInfo_MS_Device_t Disk_MS_Interface =
|
|||||||
{
|
{
|
||||||
.Config =
|
.Config =
|
||||||
{
|
{
|
||||||
.InterfaceNumber = 0,
|
.InterfaceNumber = INTERFACE_ID_MassStorage,
|
||||||
.DataINEndpoint =
|
.DataINEndpoint =
|
||||||
{
|
{
|
||||||
.Address = MASS_STORAGE_IN_EPADDR,
|
.Address = MASS_STORAGE_IN_EPADDR,
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -47,7 +47,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
||||||
|
|
||||||
.USBSpecification = VERSION_BCD(01.10),
|
.USBSpecification = VERSION_BCD(1,1,0),
|
||||||
.Class = USB_CSCP_NoDeviceClass,
|
.Class = USB_CSCP_NoDeviceClass,
|
||||||
.SubClass = USB_CSCP_NoDeviceSubclass,
|
.SubClass = USB_CSCP_NoDeviceSubclass,
|
||||||
.Protocol = USB_CSCP_NoDeviceProtocol,
|
.Protocol = USB_CSCP_NoDeviceProtocol,
|
||||||
@@ -56,7 +56,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
|
|
||||||
.VendorID = 0x03EB,
|
.VendorID = 0x03EB,
|
||||||
.ProductID = 0x2045,
|
.ProductID = 0x2045,
|
||||||
.ReleaseNumber = VERSION_BCD(00.01),
|
.ReleaseNumber = VERSION_BCD(0,0,1),
|
||||||
|
|
||||||
.ManufacturerStrIndex = NO_DESCRIPTOR,
|
.ManufacturerStrIndex = NO_DESCRIPTOR,
|
||||||
.ProductStrIndex = NO_DESCRIPTOR,
|
.ProductStrIndex = NO_DESCRIPTOR,
|
||||||
@@ -91,7 +91,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 0,
|
.InterfaceNumber = INTERFACE_ID_MassStorage,
|
||||||
.AlternateSetting = 0,
|
.AlternateSetting = 0,
|
||||||
|
|
||||||
.TotalEndpoints = 2,
|
.TotalEndpoints = 2,
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -68,6 +68,16 @@
|
|||||||
USB_Descriptor_Endpoint_t MS_DataOutEndpoint;
|
USB_Descriptor_Endpoint_t MS_DataOutEndpoint;
|
||||||
} USB_Descriptor_Configuration_t;
|
} USB_Descriptor_Configuration_t;
|
||||||
|
|
||||||
|
|
||||||
|
/** Enum for the device interface descriptor IDs within the device. Each interface descriptor
|
||||||
|
* should have a unique ID index associated with it, which can be used to refer to the
|
||||||
|
* interface from other descriptors.
|
||||||
|
*/
|
||||||
|
enum InterfaceDescriptors_t
|
||||||
|
{
|
||||||
|
INTERFACE_ID_MassStorage = 0, /**< Mass storage interface descriptor ID */
|
||||||
|
};
|
||||||
|
|
||||||
/* Function Prototypes: */
|
/* Function Prototypes: */
|
||||||
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
|
uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
|
||||||
const uint8_t wIndex,
|
const uint8_t wIndex,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -274,10 +274,10 @@
|
|||||||
|
|
||||||
/* Function Prototypes: */
|
/* Function Prototypes: */
|
||||||
#if defined(INCLUDE_FROM_VIRTUAL_FAT_C)
|
#if defined(INCLUDE_FROM_VIRTUAL_FAT_C)
|
||||||
static uint8_t ReadEEPROMByte(const uint8_t* const Address) ATTR_NEVER_INLINE;
|
static uint8_t ReadEEPROMByte(const uint8_t* const Address) ATTR_NO_INLINE;
|
||||||
|
|
||||||
static void WriteEEPROMByte(uint8_t* const Address,
|
static void WriteEEPROMByte(uint8_t* const Address,
|
||||||
const uint8_t Data) ATTR_NEVER_INLINE;
|
const uint8_t Data) ATTR_NO_INLINE;
|
||||||
|
|
||||||
static void UpdateFAT12ClusterEntry(uint8_t* const FATTable,
|
static void UpdateFAT12ClusterEntry(uint8_t* const FATTable,
|
||||||
const uint16_t Index,
|
const uint16_t Index,
|
||||||
|
|||||||
@@ -136,6 +136,7 @@
|
|||||||
|
|
||||||
<build type="module-config" subtype="path" value="Config"/>
|
<build type="module-config" subtype="path" value="Config"/>
|
||||||
<build type="header-file" value="Config/LUFAConfig.h"/>
|
<build type="header-file" value="Config/LUFAConfig.h"/>
|
||||||
|
<build type="header-file" value="Config/AppConfig.h"/>
|
||||||
|
|
||||||
<build type="include-path" value="Lib"/>
|
<build type="include-path" value="Lib"/>
|
||||||
<build type="header-file" value="Lib/VirtualFAT.h"/>
|
<build type="header-file" value="Lib/VirtualFAT.h"/>
|
||||||
@@ -143,6 +144,7 @@
|
|||||||
<build type="header-file" value="Lib/SCSI.h"/>
|
<build type="header-file" value="Lib/SCSI.h"/>
|
||||||
<build type="c-source" value="Lib/SCSI.c"/>
|
<build type="c-source" value="Lib/SCSI.c"/>
|
||||||
|
|
||||||
|
<build type="distribute" subtype="user-file" value="doxyfile"/>
|
||||||
<build type="distribute" subtype="user-file" value="BootloaderMassStorage.txt"/>
|
<build type="distribute" subtype="user-file" value="BootloaderMassStorage.txt"/>
|
||||||
|
|
||||||
<require idref="lufa.common"/>
|
<require idref="lufa.common"/>
|
||||||
|
|||||||
2337
Bootloaders/MassStorage/doxyfile
Normal file
2337
Bootloaders/MassStorage/doxyfile
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -43,7 +43,7 @@ USB_ClassInfo_PRNT_Device_t TextOnly_Printer_Interface =
|
|||||||
{
|
{
|
||||||
.Config =
|
.Config =
|
||||||
{
|
{
|
||||||
.InterfaceNumber = 0,
|
.InterfaceNumber = INTERFACE_ID_Printer,
|
||||||
.DataINEndpoint =
|
.DataINEndpoint =
|
||||||
{
|
{
|
||||||
.Address = PRINTER_IN_EPADDR,
|
.Address = PRINTER_IN_EPADDR,
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -47,7 +47,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
||||||
|
|
||||||
.USBSpecification = VERSION_BCD(01.10),
|
.USBSpecification = VERSION_BCD(1,1,0),
|
||||||
.Class = USB_CSCP_NoDeviceClass,
|
.Class = USB_CSCP_NoDeviceClass,
|
||||||
.SubClass = USB_CSCP_NoDeviceSubclass,
|
.SubClass = USB_CSCP_NoDeviceSubclass,
|
||||||
.Protocol = USB_CSCP_NoDeviceProtocol,
|
.Protocol = USB_CSCP_NoDeviceProtocol,
|
||||||
@@ -56,7 +56,7 @@ const USB_Descriptor_Device_t DeviceDescriptor =
|
|||||||
|
|
||||||
.VendorID = 0x03EB,
|
.VendorID = 0x03EB,
|
||||||
.ProductID = 0x206B,
|
.ProductID = 0x206B,
|
||||||
.ReleaseNumber = VERSION_BCD(00.01),
|
.ReleaseNumber = VERSION_BCD(0,0,1),
|
||||||
|
|
||||||
.ManufacturerStrIndex = STRING_ID_Manufacturer,
|
.ManufacturerStrIndex = STRING_ID_Manufacturer,
|
||||||
.ProductStrIndex = STRING_ID_Product,
|
.ProductStrIndex = STRING_ID_Product,
|
||||||
@@ -91,7 +91,7 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 0,
|
.InterfaceNumber = INTERFACE_ID_Printer,
|
||||||
.AlternateSetting = 0,
|
.AlternateSetting = 0,
|
||||||
|
|
||||||
.TotalEndpoints = 2,
|
.TotalEndpoints = 2,
|
||||||
@@ -128,34 +128,19 @@ const USB_Descriptor_Configuration_t ConfigurationDescriptor =
|
|||||||
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
|
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
|
||||||
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
|
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t LanguageString =
|
const USB_Descriptor_String_t LanguageString = USB_STRING_DESCRIPTOR_ARRAY(LANGUAGE_ID_ENG);
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(1), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = {LANGUAGE_ID_ENG}
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
|
/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
|
||||||
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
||||||
* Descriptor.
|
* Descriptor.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t ManufacturerString =
|
const USB_Descriptor_String_t ManufacturerString = USB_STRING_DESCRIPTOR(L"Dean Camera");
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(11), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = L"Dean Camera"
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
|
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
|
||||||
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
||||||
* Descriptor.
|
* Descriptor.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t ProductString =
|
const USB_Descriptor_String_t ProductString = USB_STRING_DESCRIPTOR(L"LUFA Printer Bootloader");
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(23), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = L"LUFA Printer Bootloader"
|
|
||||||
};
|
|
||||||
|
|
||||||
/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
|
/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
|
||||||
* documentation) by the application code so that the address and size of a requested descriptor can be given
|
* documentation) by the application code so that the address and size of a requested descriptor can be given
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -66,15 +66,24 @@
|
|||||||
USB_Descriptor_Endpoint_t Printer_DataOutEndpoint;
|
USB_Descriptor_Endpoint_t Printer_DataOutEndpoint;
|
||||||
} USB_Descriptor_Configuration_t;
|
} USB_Descriptor_Configuration_t;
|
||||||
|
|
||||||
|
/** Enum for the device interface descriptor IDs within the device. Each string descriptor
|
||||||
|
* should have a unique ID index associated with it, which can be used to refer to the
|
||||||
|
* interface from other descriptors.
|
||||||
|
*/
|
||||||
|
enum InterfaceDescriptors_t
|
||||||
|
{
|
||||||
|
INTERFACE_ID_Printer = 0, /**< Printer interface descriptor ID */
|
||||||
|
};
|
||||||
|
|
||||||
/** Enum for the device string descriptor IDs within the device. Each string descriptor should
|
/** Enum for the device string descriptor IDs within the device. Each string descriptor should
|
||||||
* have a unique ID index associated with it, which can be used to refer to the string from
|
* have a unique ID index associated with it, which can be used to refer to the string from
|
||||||
* other descriptors.
|
* other descriptors.
|
||||||
*/
|
*/
|
||||||
enum StringDescriptors_t
|
enum StringDescriptors_t
|
||||||
{
|
{
|
||||||
STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
|
STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
|
||||||
STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
|
STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
|
||||||
STRING_ID_Product = 2, /**< Product string ID */
|
STRING_ID_Product = 2, /**< Product string ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Function Prototypes: */
|
/* Function Prototypes: */
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -147,6 +147,7 @@
|
|||||||
<build type="module-config" subtype="path" value="Config"/>
|
<build type="module-config" subtype="path" value="Config"/>
|
||||||
<build type="header-file" value="Config/LUFAConfig.h"/>
|
<build type="header-file" value="Config/LUFAConfig.h"/>
|
||||||
|
|
||||||
|
<build type="distribute" subtype="user-file" value="doxyfile"/>
|
||||||
<build type="distribute" subtype="user-file" value="BootloaderPrinter.txt"/>
|
<build type="distribute" subtype="user-file" value="BootloaderPrinter.txt"/>
|
||||||
|
|
||||||
<require idref="lufa.common"/>
|
<require idref="lufa.common"/>
|
||||||
|
|||||||
2337
Bootloaders/Printer/doxyfile
Normal file
2337
Bootloaders/Printer/doxyfile
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -44,8 +44,8 @@ USB_ClassInfo_Audio_Device_t Microphone_Audio_Interface =
|
|||||||
{
|
{
|
||||||
.Config =
|
.Config =
|
||||||
{
|
{
|
||||||
.ControlInterfaceNumber = 0,
|
.ControlInterfaceNumber = INTERFACE_ID_AudioControl,
|
||||||
.StreamingInterfaceNumber = 1,
|
.StreamingInterfaceNumber = INTERFACE_ID_AudioStream,
|
||||||
.DataINEndpoint =
|
.DataINEndpoint =
|
||||||
{
|
{
|
||||||
.Address = AUDIO_STREAM_EPADDR,
|
.Address = AUDIO_STREAM_EPADDR,
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -46,7 +46,7 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
|
||||||
|
|
||||||
.USBSpecification = VERSION_BCD(02.00),
|
.USBSpecification = VERSION_BCD(2,0,0),
|
||||||
.Class = USB_CSCP_NoDeviceClass,
|
.Class = USB_CSCP_NoDeviceClass,
|
||||||
.SubClass = USB_CSCP_NoDeviceSubclass,
|
.SubClass = USB_CSCP_NoDeviceSubclass,
|
||||||
.Protocol = USB_CSCP_NoDeviceProtocol,
|
.Protocol = USB_CSCP_NoDeviceProtocol,
|
||||||
@@ -55,7 +55,7 @@ const USB_Descriptor_Device_t PROGMEM DeviceDescriptor =
|
|||||||
|
|
||||||
.VendorID = 0x03EB,
|
.VendorID = 0x03EB,
|
||||||
.ProductID = 0x2047,
|
.ProductID = 0x2047,
|
||||||
.ReleaseNumber = VERSION_BCD(00.02),
|
.ReleaseNumber = VERSION_BCD(0,0,2),
|
||||||
|
|
||||||
.ManufacturerStrIndex = STRING_ID_Manufacturer,
|
.ManufacturerStrIndex = STRING_ID_Manufacturer,
|
||||||
.ProductStrIndex = STRING_ID_Product,
|
.ProductStrIndex = STRING_ID_Product,
|
||||||
@@ -90,7 +90,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 0,
|
.InterfaceNumber = INTERFACE_ID_AudioControl,
|
||||||
.AlternateSetting = 0,
|
.AlternateSetting = 0,
|
||||||
|
|
||||||
.TotalEndpoints = 0,
|
.TotalEndpoints = 0,
|
||||||
@@ -107,13 +107,13 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
|
|||||||
.Header = {.Size = sizeof(USB_Audio_Descriptor_Interface_AC_t), .Type = DTYPE_CSInterface},
|
.Header = {.Size = sizeof(USB_Audio_Descriptor_Interface_AC_t), .Type = DTYPE_CSInterface},
|
||||||
.Subtype = AUDIO_DSUBTYPE_CSInterface_Header,
|
.Subtype = AUDIO_DSUBTYPE_CSInterface_Header,
|
||||||
|
|
||||||
.ACSpecification = VERSION_BCD(01.00),
|
.ACSpecification = VERSION_BCD(1,0,0),
|
||||||
.TotalLength = (sizeof(USB_Audio_Descriptor_Interface_AC_t) +
|
.TotalLength = (sizeof(USB_Audio_Descriptor_Interface_AC_t) +
|
||||||
sizeof(USB_Audio_Descriptor_InputTerminal_t) +
|
sizeof(USB_Audio_Descriptor_InputTerminal_t) +
|
||||||
sizeof(USB_Audio_Descriptor_OutputTerminal_t)),
|
sizeof(USB_Audio_Descriptor_OutputTerminal_t)),
|
||||||
|
|
||||||
.InCollection = 1,
|
.InCollection = 1,
|
||||||
.InterfaceNumber = 1,
|
.InterfaceNumber = INTERFACE_ID_AudioStream,
|
||||||
},
|
},
|
||||||
|
|
||||||
.Audio_InputTerminal =
|
.Audio_InputTerminal =
|
||||||
@@ -150,7 +150,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 1,
|
.InterfaceNumber = INTERFACE_ID_AudioStream,
|
||||||
.AlternateSetting = 0,
|
.AlternateSetting = 0,
|
||||||
|
|
||||||
.TotalEndpoints = 0,
|
.TotalEndpoints = 0,
|
||||||
@@ -166,7 +166,7 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
|
|||||||
{
|
{
|
||||||
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
.Header = {.Size = sizeof(USB_Descriptor_Interface_t), .Type = DTYPE_Interface},
|
||||||
|
|
||||||
.InterfaceNumber = 1,
|
.InterfaceNumber = INTERFACE_ID_AudioStream,
|
||||||
.AlternateSetting = 1,
|
.AlternateSetting = 1,
|
||||||
|
|
||||||
.TotalEndpoints = 1,
|
.TotalEndpoints = 1,
|
||||||
@@ -246,34 +246,19 @@ const USB_Descriptor_Configuration_t PROGMEM ConfigurationDescriptor =
|
|||||||
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
|
* the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate
|
||||||
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
|
* via the language ID table available at USB.org what languages the device supports for its string descriptors.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t PROGMEM LanguageString =
|
const USB_Descriptor_String_t PROGMEM LanguageString = USB_STRING_DESCRIPTOR_ARRAY(LANGUAGE_ID_ENG);
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(1), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = {LANGUAGE_ID_ENG}
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
|
/** Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable
|
||||||
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
* form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
||||||
* Descriptor.
|
* Descriptor.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t PROGMEM ManufacturerString =
|
const USB_Descriptor_String_t PROGMEM ManufacturerString = USB_STRING_DESCRIPTOR(L"Dean Camera");
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(11), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = L"Dean Camera"
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
|
/** Product descriptor string. This is a Unicode string containing the product's details in human readable form,
|
||||||
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
* and is read out upon request by the host when the appropriate string ID is requested, listed in the Device
|
||||||
* Descriptor.
|
* Descriptor.
|
||||||
*/
|
*/
|
||||||
const USB_Descriptor_String_t PROGMEM ProductString =
|
const USB_Descriptor_String_t PROGMEM ProductString = USB_STRING_DESCRIPTOR(L"LUFA Audio In Demo");
|
||||||
{
|
|
||||||
.Header = {.Size = USB_STRING_LEN(18), .Type = DTYPE_String},
|
|
||||||
|
|
||||||
.UnicodeString = L"LUFA Audio In Demo"
|
|
||||||
};
|
|
||||||
|
|
||||||
/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
|
/** This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors"
|
||||||
* documentation) by the application code so that the address and size of a requested descriptor can be given
|
* documentation) by the application code so that the address and size of a requested descriptor can be given
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -75,15 +75,25 @@
|
|||||||
USB_Audio_Descriptor_StreamEndpoint_Spc_t Audio_StreamEndpoint_SPC;
|
USB_Audio_Descriptor_StreamEndpoint_Spc_t Audio_StreamEndpoint_SPC;
|
||||||
} USB_Descriptor_Configuration_t;
|
} USB_Descriptor_Configuration_t;
|
||||||
|
|
||||||
|
/** Enum for the device interface descriptor IDs within the device. Each interface descriptor
|
||||||
|
* should have a unique ID index associated with it, which can be used to refer to the
|
||||||
|
* interface from other descriptors.
|
||||||
|
*/
|
||||||
|
enum InterfaceDescriptors_t
|
||||||
|
{
|
||||||
|
INTERFACE_ID_AudioControl = 0, /**< Audio control interface descriptor ID */
|
||||||
|
INTERFACE_ID_AudioStream = 1, /**< Audio stream interface descriptor ID */
|
||||||
|
};
|
||||||
|
|
||||||
/** Enum for the device string descriptor IDs within the device. Each string descriptor should
|
/** Enum for the device string descriptor IDs within the device. Each string descriptor should
|
||||||
* have a unique ID index associated with it, which can be used to refer to the string from
|
* have a unique ID index associated with it, which can be used to refer to the string from
|
||||||
* other descriptors.
|
* other descriptors.
|
||||||
*/
|
*/
|
||||||
enum StringDescriptors_t
|
enum StringDescriptors_t
|
||||||
{
|
{
|
||||||
STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
|
STRING_ID_Language = 0, /**< Supported Languages string descriptor ID (must be zero) */
|
||||||
STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
|
STRING_ID_Manufacturer = 1, /**< Manufacturer string ID */
|
||||||
STRING_ID_Product = 2, /**< Product string ID */
|
STRING_ID_Product = 2, /**< Product string ID */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Function Prototypes: */
|
/* Function Prototypes: */
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
<device-support-alias value="lufa_xmega"/>
|
<device-support-alias value="lufa_xmega"/>
|
||||||
<device-support-alias value="lufa_uc3"/>
|
<device-support-alias value="lufa_uc3"/>
|
||||||
|
|
||||||
|
<build type="distribute" subtype="user-file" value="doxyfile"/>
|
||||||
<build type="distribute" subtype="user-file" value="AudioInput.txt"/>
|
<build type="distribute" subtype="user-file" value="AudioInput.txt"/>
|
||||||
|
|
||||||
<build type="c-source" value="AudioInput.c"/>
|
<build type="c-source" value="AudioInput.c"/>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Doxyfile 1.8.5
|
# Doxyfile 1.8.6
|
||||||
|
|
||||||
# This file describes the settings to be used by the documentation system
|
# This file describes the settings to be used by the documentation system
|
||||||
# doxygen (www.doxygen.org) for a project.
|
# doxygen (www.doxygen.org) for a project.
|
||||||
@@ -73,12 +73,14 @@ CREATE_SUBDIRS = NO
|
|||||||
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
|
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
|
||||||
# documentation generated by doxygen is written. Doxygen will use this
|
# documentation generated by doxygen is written. Doxygen will use this
|
||||||
# information to generate all constant output in the proper language.
|
# information to generate all constant output in the proper language.
|
||||||
# Possible values are: Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-
|
# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
|
||||||
# Traditional, Croatian, Czech, Danish, Dutch, English, Esperanto, Farsi,
|
# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
|
||||||
# Finnish, French, German, Greek, Hungarian, Italian, Japanese, Japanese-en,
|
# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
|
||||||
# Korean, Korean-en, Latvian, Norwegian, Macedonian, Persian, Polish,
|
# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
|
||||||
# Portuguese, Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish,
|
# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
|
||||||
# Turkish, Ukrainian and Vietnamese.
|
# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
|
||||||
|
# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
|
||||||
|
# Ukrainian and Vietnamese.
|
||||||
# The default value is: English.
|
# The default value is: English.
|
||||||
|
|
||||||
OUTPUT_LANGUAGE = English
|
OUTPUT_LANGUAGE = English
|
||||||
@@ -510,6 +512,13 @@ HIDE_SCOPE_NAMES = NO
|
|||||||
|
|
||||||
SHOW_INCLUDE_FILES = YES
|
SHOW_INCLUDE_FILES = YES
|
||||||
|
|
||||||
|
# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
|
||||||
|
# grouped member an include statement to the documentation, telling the reader
|
||||||
|
# which file to include in order to use the member.
|
||||||
|
# The default value is: NO.
|
||||||
|
|
||||||
|
SHOW_GROUPED_MEMB_INC = NO
|
||||||
|
|
||||||
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
|
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
|
||||||
# files with double quotes in the documentation rather than with sharp brackets.
|
# files with double quotes in the documentation rather than with sharp brackets.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
@@ -531,7 +540,8 @@ SORT_MEMBER_DOCS = YES
|
|||||||
|
|
||||||
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
|
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
|
||||||
# descriptions of file, namespace and class members alphabetically by member
|
# descriptions of file, namespace and class members alphabetically by member
|
||||||
# name. If set to NO the members will appear in declaration order.
|
# name. If set to NO the members will appear in declaration order. Note that
|
||||||
|
# this will also influence the order of the classes in the class list.
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
SORT_BRIEF_DOCS = NO
|
SORT_BRIEF_DOCS = NO
|
||||||
@@ -2052,6 +2062,13 @@ CLASS_DIAGRAMS = NO
|
|||||||
|
|
||||||
MSCGEN_PATH =
|
MSCGEN_PATH =
|
||||||
|
|
||||||
|
# You can include diagrams made with dia in doxygen documentation. Doxygen will
|
||||||
|
# then run dia to produce the diagram and insert it in the documentation. The
|
||||||
|
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
|
||||||
|
# If left empty dia is assumed to be found in the default search path.
|
||||||
|
|
||||||
|
DIA_PATH =
|
||||||
|
|
||||||
# If set to YES, the inheritance and collaboration graphs will hide inheritance
|
# If set to YES, the inheritance and collaboration graphs will hide inheritance
|
||||||
# and usage relations if the target is undocumented or is not a class.
|
# and usage relations if the target is undocumented or is not a class.
|
||||||
# The default value is: YES.
|
# The default value is: YES.
|
||||||
@@ -2252,6 +2269,12 @@ DOTFILE_DIRS =
|
|||||||
|
|
||||||
MSCFILE_DIRS =
|
MSCFILE_DIRS =
|
||||||
|
|
||||||
|
# The DIAFILE_DIRS tag can be used to specify one or more directories that
|
||||||
|
# contain dia files that are included in the documentation (see the \diafile
|
||||||
|
# command).
|
||||||
|
|
||||||
|
DIAFILE_DIRS =
|
||||||
|
|
||||||
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
|
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
|
||||||
# that will be shown in the graph. If the number of nodes in a graph becomes
|
# that will be shown in the graph. If the number of nodes in a graph becomes
|
||||||
# larger than this value, doxygen will truncate the graph, which is visualized
|
# larger than this value, doxygen will truncate the graph, which is visualized
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#
|
#
|
||||||
# LUFA Library
|
# LUFA Library
|
||||||
# Copyright (C) Dean Camera, 2013.
|
# Copyright (C) Dean Camera, 2014.
|
||||||
#
|
#
|
||||||
# dean [at] fourwalledcubicle [dot] com
|
# dean [at] fourwalledcubicle [dot] com
|
||||||
# www.lufa-lib.org
|
# www.lufa-lib.org
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
@@ -44,8 +44,8 @@ USB_ClassInfo_Audio_Device_t Speaker_Audio_Interface =
|
|||||||
{
|
{
|
||||||
.Config =
|
.Config =
|
||||||
{
|
{
|
||||||
.ControlInterfaceNumber = 0,
|
.ControlInterfaceNumber = INTERFACE_ID_AudioControl,
|
||||||
.StreamingInterfaceNumber = 1,
|
.StreamingInterfaceNumber = INTERFACE_ID_AudioStream,
|
||||||
.DataOUTEndpoint =
|
.DataOUTEndpoint =
|
||||||
{
|
{
|
||||||
.Address = AUDIO_STREAM_EPADDR,
|
.Address = AUDIO_STREAM_EPADDR,
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
/*
|
/*
|
||||||
LUFA Library
|
LUFA Library
|
||||||
Copyright (C) Dean Camera, 2013.
|
Copyright (C) Dean Camera, 2014.
|
||||||
|
|
||||||
dean [at] fourwalledcubicle [dot] com
|
dean [at] fourwalledcubicle [dot] com
|
||||||
www.lufa-lib.org
|
www.lufa-lib.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Copyright 2013 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com)
|
||||||
|
|
||||||
Permission to use, copy, modify, distribute, and sell this
|
Permission to use, copy, modify, distribute, and sell this
|
||||||
software and its documentation for any purpose is hereby granted
|
software and its documentation for any purpose is hereby granted
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user