usb_resetep resets all state (like toggles) for the specified endpoint. The ep parameter is the value specified in the descriptor field bEndpointAddress. Returns 0 on success or < 0 on error.
Deprecated: usb_resetep is deprecated. You probably want to use usb_clear_halt.