Changed PIPE_CONTROLPIPE_DEFAULT_SIZE from 8 to 64 to try to prevent problems with...
[pub/USBasp.git] / LUFA / Drivers / USB / LowLevel / Pipe.h
index beee0bd..7e81cf6 100644 (file)
                        /** Default size of the default control pipe's bank, until altered by the Endpoint0Size value \r
                         *  in the device descriptor of the attached device.\r
                         */\r
-                       #define PIPE_CONTROLPIPE_DEFAULT_SIZE   8\r
+                       #define PIPE_CONTROLPIPE_DEFAULT_SIZE   64\r
                        \r
                        /** Pipe number mask, for masking against pipe addresses to retrieve the pipe's numerical address\r
                         *  in the device.\r
                /* Macros: */\r
                        #define PIPE_TOKEN_MASK                (0x03 << PTOKEN0)\r
 \r
+                       #if !defined(ENDPOINT_CONTROLEP)\r
+                               #define ENDPOINT_CONTROLEP         0\r
+                       #endif\r
+                       \r
                        #define Pipe_AllocateMemory()          MACROS{ UPCFG1X |=  (1 << ALLOC); }MACROE\r
                        #define Pipe_DeallocateMemory()        MACROS{ UPCFG1X &= ~(1 << ALLOC); }MACROE\r
 \r