Fix incorrect bank mask in Endpoint_ConfigureEndpoint() for the UC3 devices.
[pub/USBasp.git] / LUFA / Drivers / USB / Core / UC3 / Pipe_UC3.c
index 787244b..196eb07 100644 (file)
@@ -72,7 +72,7 @@ bool Pipe_ConfigurePipe(const uint8_t Address,
        if (Type == EP_TYPE_CONTROL)
          Token = PIPE_TOKEN_SETUP;
 
-       USB_Pipe_FIFOPos[Number]     = &AVR32_USBB_SLAVE[Number * 0x10000];
+       USB_Pipe_FIFOPos[Number]     = &AVR32_USBB_SLAVE[Number * PIPE_HSB_ADDRESS_SPACE_SIZE];
 
 #if defined(ORDERED_EP_CONFIG)
        Pipe_SelectPipe(Number);