/* Calculate EP size code Function Called during EndPoint configuration Return Value: EP size code for given EP size  */
static int USBD_CalcSizeEP(uint32_t size)
/* Calculate EP size code Function Called during EndPoint configuration Return Value: EP size code for given EP size  */
static int USBD_CalcSizeEP(uint32_t size)
{
    return (0);
  } 
  else if (size <=   16) {
    return (1);
  }
  else if (size <=   32) {
    return (2);
  }
  else if (size <=   64) {
    return (3);
  }
  else if (size <=  128) {
    return (4);
  }
  else if (size <=  256) {
    return (5);
  }
  else if (size <=  512)  {
    return (6);
  }
  else if (size <= 1024) {
    return (7);
  }
  return (0);
}