usb: provide typedefs for all the function callbacks.

This makes it easier to read for most people, and makes it substantially
easier to review changes in the function signatures themselves at a
later date.
This commit is contained in:
Kuldeep Singh Dhaka
2015-05-27 03:42:09 +05:30
committed by Karl Palsson
parent b1e495f51a
commit 4b892724cf
5 changed files with 23 additions and 22 deletions

View File

@@ -143,8 +143,7 @@ void usbd_disconnect(usbd_device *usbd_dev, bool disconnected)
}
void usbd_ep_setup(usbd_device *usbd_dev, uint8_t addr, uint8_t type,
uint16_t max_size,
void (*callback)(usbd_device *usbd_dev, uint8_t ep))
uint16_t max_size, usbd_endpoint_callback callback)
{
usbd_dev->driver->ep_setup(usbd_dev, addr, type, max_size, callback);
}