aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-08-07 00:27:11 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-08-07 00:27:11 +0000
commit85c2716f2d37bb50d126102fcdd09fb78d26ebc5 (patch)
treeaffb4d9f9f10ed41df24df3d82cbc6be3959be39 /LUFA
parent33a5715e91d7fe2c0c58351a4a973352ae0e01c9 (diff)
downloadlufa-85c2716f2d37bb50d126102fcdd09fb78d26ebc5.tar.gz
lufa-85c2716f2d37bb50d126102fcdd09fb78d26ebc5.tar.bz2
lufa-85c2716f2d37bb50d126102fcdd09fb78d26ebc5.zip
Make Benito ping-pong LED code more explicit, using masks of the TX and RX LED masks for ping-pong toggle rather than the ambiguous LED "Busy" mask.
Fix incorrect event name in MassStorageHost.c.
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/Drivers/USB/HighLevel/StdDescriptors.h6
-rw-r--r--LUFA/Drivers/USB/HighLevel/USBTask.h11
2 files changed, 10 insertions, 7 deletions
diff --git a/LUFA/Drivers/USB/HighLevel/StdDescriptors.h b/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
index 274b84fc4..0e0d1e9f4 100644
--- a/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
+++ b/LUFA/Drivers/USB/HighLevel/StdDescriptors.h
@@ -85,13 +85,13 @@
* On unsupported devices, this will evaluate to NO_DESCRIPTOR and so will force the host to create a pseduo-serial
* number for the device.
*/
- #define USE_INTERNAL_SERIAL 0xDC
+ #define USE_INTERNAL_SERIAL 0xDC
#else
- #define USE_INTERNAL_SERIAL NO_DESCRIPTOR
+ #define USE_INTERNAL_SERIAL NO_DESCRIPTOR
#endif
/** Macro to calculate the power value for the device descriptor, from a given number of milliamps. */
- #define USB_CONFIG_POWER_MA(mA) (mA >> 1)
+ #define USB_CONFIG_POWER_MA(mA) (mA >> 1)
/** Macro to calculate the Unicode length of a string with a given number of Unicode characters.
* Should be used in string descriptor's headers for giving the string descriptor's byte length.
diff --git a/LUFA/Drivers/USB/HighLevel/USBTask.h b/LUFA/Drivers/USB/HighLevel/USBTask.h
index 08accc1ef..9c0abf013 100644
--- a/LUFA/Drivers/USB/HighLevel/USBTask.h
+++ b/LUFA/Drivers/USB/HighLevel/USBTask.h
@@ -35,17 +35,20 @@
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdbool.h>
- #include <stddef.h>
#include "../LowLevel/LowLevel.h"
- #include "StdRequestType.h"
- #include "USBMode.h"
#include "Events.h"
+ #include "StdRequestType.h"
#include "StdDescriptors.h"
+ #include "USBMode.h"
+
+ #if defined(USB_CAN_BE_DEVICE)
+ #include "../LowLevel/DevChapter9.h"
+ #endif
#if defined(USB_CAN_BE_HOST)
#include "../LowLevel/HostChapter9.h"
- #endif
+ #endif
/* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus)