Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usb: Use enumerated return codes and usbd_control_complete_callback type #95

Closed

Conversation

kuldeepdhaka
Copy link

fix examples for incomming PR libopencm3#497.

@@ -216,17 +218,17 @@ static int usbdfu_control_request(usbd_device *usbd_dev, struct usb_setup_data *
(*buf)[4] = usbdfu_state;
(*buf)[5] = 0; /* iString not used here */
*len = 6;
*complete = usbdfu_getstatus_complete;
return 1;
*complete = (usbd_control_complete_callback) usbdfu_getstatus_complete;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the cast? what type is missing here?

@kuldeepdhaka
Copy link
Author

@karlp removed all unrelated whitespace changes and complete callback casting

@karlp
Copy link
Member

karlp commented Sep 7, 2015

I still get warnings from a few examples with this one:

  • examples/stm32/f1/lisa-m-1/usb_dfu/
  • examples/stm32/f1/lisa-m-1/usb_hid/
  • examples/stm32/f1/other/usb_dfu/
  • examples/stm32/f1/other/usb_hid/
  • examples/stm32/f1/stm32-h103/usb_dfu/
  • examples/stm32/f1/stm32-h103/usb_hid/
  • examples/stm32/f1/stm32-h103/usb_iap/

Can you please check that you've got everything here?

@kuldeepdhaka
Copy link
Author

libopencm3/libopencm3#498 should be merged in libopencm3 before libopencm3/libopencm3#497.
afaiu, the two commits prs are strongly coupled and the side effect is seen in form of warning.

@kuldeepdhaka
Copy link
Author

no energy left to manage.

@kuldeepdhaka kuldeepdhaka deleted the usb/use-enum-and-cb branch September 15, 2016 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants