projects
/
pub
/
lufa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new Relay Controller Board project (thanks to OBinou).
[pub/lufa.git]
/
LUFA
/
Drivers
/
USB
/
HighLevel
/
StdDescriptors.h
diff --git
a/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
b/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
index
f94673d
..
4090aaa
100644
(file)
--- a/
LUFA/Drivers/USB/HighLevel/StdDescriptors.h
+++ b/
LUFA/Drivers/USB/HighLevel/StdDescriptors.h
@@
-41,16
+41,9
@@
#define __USBDESCRIPTORS_H__
\r
\r
/* Includes: */
\r
#define __USBDESCRIPTORS_H__
\r
\r
/* Includes: */
\r
- #if defined(__AVR32__)
\r
- #include <avr32/io.h>
\r
- #include <stdint.h>
\r
- #include <stdbool.h>
\r
- #include <stddef.h>
\r
- #elif defined(__AVR__)
\r
- #include <avr/pgmspace.h>
\r
- #include <stdbool.h>
\r
- #include <stddef.h>
\r
- #endif
\r
+ #include <avr/pgmspace.h>
\r
+ #include <stdbool.h>
\r
+ #include <stddef.h>
\r
\r
#include "../../../Common/Common.h"
\r
#include "USBMode.h"
\r
\r
#include "../../../Common/Common.h"
\r
#include "USBMode.h"
\r
@@
-67,7
+60,7
@@
\r
/* Preprocessor Checks: */
\r
#if !defined(__INCLUDE_FROM_USB_DRIVER)
\r
\r
/* Preprocessor Checks: */
\r
#if !defined(__INCLUDE_FROM_USB_DRIVER)
\r
- #error Do not include this file directly. Include LUFA/Drivers/USB.h instead.
\r
+ #error Do not include this file directly. Include LUFA/Drivers/USB
/USB
.h instead.
\r
#endif
\r
\r
/* Public Interface - May be used in end-application: */
\r
#endif
\r
\r
/* Public Interface - May be used in end-application: */
\r
@@
-93,7
+86,7
@@
#define USE_INTERNAL_SERIAL NO_DESCRIPTOR
\r
#endif
\r
\r
#define USE_INTERNAL_SERIAL NO_DESCRIPTOR
\r
#endif
\r
\r
- /** Macro to calculate the power value for the
device
descriptor, from a given number of milliamps. */
\r
+ /** Macro to calculate the power value for the
configuration
descriptor, from a given number of milliamps. */
\r
#define USB_CONFIG_POWER_MA(mA) ((mA) >> 1)
\r
\r
/** Macro to calculate the Unicode length of a string with a given number of Unicode characters.
\r
#define USB_CONFIG_POWER_MA(mA) ((mA) >> 1)
\r
\r
/** Macro to calculate the Unicode length of a string with a given number of Unicode characters.
\r
@@
-131,7
+124,6
@@
*/
\r
#define USB_CONFIG_ATTR_BUSPOWERED 0x80
\r
\r
*/
\r
#define USB_CONFIG_ATTR_BUSPOWERED 0x80
\r
\r
-
\r
/** Can be masked with other configuration descriptor attributes for a \ref USB_Descriptor_Configuration_Header_t
\r
* descriptor's ConfigAttributes value to indicate that the specified configuration can draw its power
\r
* from the device's own power source.
\r
/** Can be masked with other configuration descriptor attributes for a \ref USB_Descriptor_Configuration_Header_t
\r
* descriptor's ConfigAttributes value to indicate that the specified configuration can draw its power
\r
* from the device's own power source.
\r