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:
committed by
Karl Palsson
parent
b1e495f51a
commit
4b892724cf
@@ -708,7 +708,7 @@ static void msc_data_tx_cb(usbd_device *usbd_dev, uint8_t ep)
|
||||
*/
|
||||
static int msc_control_request(usbd_device *usbd_dev,
|
||||
struct usb_setup_data *req, uint8_t **buf, uint16_t *len,
|
||||
void (**complete)(usbd_device *usbd_dev, struct usb_setup_data *req))
|
||||
usbd_control_complete_callback *complete)
|
||||
{
|
||||
(void)complete;
|
||||
(void)usbd_dev;
|
||||
|
||||
Reference in New Issue
Block a user