/* Retrieve maximum EP size Function Called during EndPoint configuration Return Value: maximum size for given EP  */
static int USBD_GetSizeEP(uint32_t EPNum)
/* Retrieve maximum EP size Function Called during EndPoint configuration Return Value: maximum size for given EP  */
static int USBD_GetSizeEP(uint32_t EPNum)
{
    switch (EPNum & 0x0F) {
        case 0:
            return (64);
        case 1:
        case 2:
            return (512);
        case 3:
        case 4:
            return (64);
        case 5:
        case 6:
            return (1024);
        default:
            return (0);
    }
}