aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/Pipe.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-05-04 12:55:00 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-05-04 12:55:00 +0000
commit253deb996f321c59c102a64e17f95d0b5b0a0e6d (patch)
tree4622defda93d203a3d07760ee33e69d68139067b /LUFA/Drivers/USB/LowLevel/Pipe.h
parentedcfaf7716c978a29ffd082f77587b21bea7a344 (diff)
downloadlufa-253deb996f321c59c102a64e17f95d0b5b0a0e6d.tar.gz
lufa-253deb996f321c59c102a64e17f95d0b5b0a0e6d.tar.bz2
lufa-253deb996f321c59c102a64e17f95d0b5b0a0e6d.zip
Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent problems with faulty devices which do not respect the given wLength value when reading in the device descriptor.
Further documentation improvements - removed file view from the main library documentation, replaced file references in the documentation with group references.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/Pipe.h')
-rw-r--r--LUFA/Drivers/USB/LowLevel/Pipe.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/Pipe.h b/LUFA/Drivers/USB/LowLevel/Pipe.h
index beee0bdb1..7e81cf686 100644
--- a/LUFA/Drivers/USB/LowLevel/Pipe.h
+++ b/LUFA/Drivers/USB/LowLevel/Pipe.h
@@ -128,7 +128,7 @@
/** Default size of the default control pipe's bank, until altered by the Endpoint0Size value
* in the device descriptor of the attached device.
*/
- #define PIPE_CONTROLPIPE_DEFAULT_SIZE 8
+ #define PIPE_CONTROLPIPE_DEFAULT_SIZE 64
/** Pipe number mask, for masking against pipe addresses to retrieve the pipe's numerical address
* in the device.
@@ -955,6 +955,10 @@
/* Macros: */
#define PIPE_TOKEN_MASK (0x03 << PTOKEN0)
+ #if !defined(ENDPOINT_CONTROLEP)
+ #define ENDPOINT_CONTROLEP 0
+ #endif
+
#define Pipe_AllocateMemory() MACROS{ UPCFG1X |= (1 << ALLOC); }MACROE
#define Pipe_DeallocateMemory() MACROS{ UPCFG1X &= ~(1 << ALLOC); }MACROE