/* Disable all endpoints (except control endpoint 0), aborting current transfers if necessary  */
static void UDP_DisableEndpoints(void)
/* Disable all endpoints (except control endpoint 0), aborting current transfers if necessary  */
static void UDP_DisableEndpoints(void)
{
    unsigned char bEndpoint;
    for (bEndpoint = 1; bEndpoint < CHIP_USB_NUMENDPOINTS; bEndpoint++) {
        UDP_EndOfTransfer(bEndpoint, USBD_STATUS_ABORTED);
        endpoints[bEndpoint].state = UDP_ENDPOINT_DISABLED;
    }
}