diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-03-19 07:33:30 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-03-19 07:33:30 +0000 |
commit | 6d256c5109bba8b6e9f0036e4669b2b9294e813e (patch) | |
tree | 0679f14fb9d3b0162339e2e574a42b63b321f72e /Demos/Device | |
parent | 72527867f6bd2d800bd0a71a90fe7079fbe1ab47 (diff) | |
download | lufa-6d256c5109bba8b6e9f0036e4669b2b9294e813e.tar.gz lufa-6d256c5109bba8b6e9f0036e4669b2b9294e813e.tar.bz2 lufa-6d256c5109bba8b6e9f0036e4669b2b9294e813e.zip |
Fixed LowLevel MassStorage demo broken on the U2 AVRs due to double-banked endpoints.
Diffstat (limited to 'Demos/Device')
-rw-r--r-- | Demos/Device/LowLevel/MassStorage/MassStorage.c | 4 | ||||
-rw-r--r-- | Demos/Device/LowLevel/MassStorage/MassStorage.h | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/Demos/Device/LowLevel/MassStorage/MassStorage.c b/Demos/Device/LowLevel/MassStorage/MassStorage.c index cb43b1963..fc9a97de4 100644 --- a/Demos/Device/LowLevel/MassStorage/MassStorage.c +++ b/Demos/Device/LowLevel/MassStorage/MassStorage.c @@ -113,14 +113,14 @@ void EVENT_USB_Device_ConfigurationChanged(void) /* Setup Mass Storage In and Out Endpoints */
if (!(Endpoint_ConfigureEndpoint(MASS_STORAGE_IN_EPNUM, EP_TYPE_BULK,
ENDPOINT_DIR_IN, MASS_STORAGE_IO_EPSIZE,
- ENDPOINT_BANK_DOUBLE)))
+ ENDPOINT_BANK_SINGLE)))
{
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
}
if (!(Endpoint_ConfigureEndpoint(MASS_STORAGE_OUT_EPNUM, EP_TYPE_BULK,
ENDPOINT_DIR_OUT, MASS_STORAGE_IO_EPSIZE,
- ENDPOINT_BANK_DOUBLE)))
+ ENDPOINT_BANK_SINGLE)))
{
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
}
diff --git a/Demos/Device/LowLevel/MassStorage/MassStorage.h b/Demos/Device/LowLevel/MassStorage/MassStorage.h index 7ebb06dc0..44302084c 100644 --- a/Demos/Device/LowLevel/MassStorage/MassStorage.h +++ b/Demos/Device/LowLevel/MassStorage/MassStorage.h @@ -82,19 +82,19 @@ #define COMMAND_DIRECTION_DATA_IN (1 << 7)
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
- #define LEDMASK_USB_NOTREADY LEDS_LED1
+ #define LEDMASK_USB_NOTREADY LEDS_LED1
/** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */
- #define LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3)
+ #define LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3)
/** LED mask for the library LED driver, to indicate that the USB interface is ready. */
- #define LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4)
+ #define LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4)
/** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */
- #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)
+ #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)
/** LED mask for the library LED driver, to indicate that the USB interface is busy. */
- #define LEDMASK_USB_BUSY LEDS_LED2
+ #define LEDMASK_USB_BUSY LEDS_LED2
/* Type defines: */
/** Type define for a Command Block Wrapper, used in the Mass Storage Bulk-Only Transport protocol. */
|