Re: [libopencm3-devel] Question of STM32 F1 DFU example code

2020-08-13 Thread Karl Palsson
Sure, seems redundant. It might not have been redundant when it was written, that demo is. very old. You can also register all sorts of filters and list the same callback, so you _may_ wish to be checking things there, perhaps consider it an example of how you can still access those fields? ;)

[libopencm3-devel] Question of STM32 F1 DFU example code

2020-07-19 Thread Mats Webjörn/WIKAB
Hi, I have a question on libopencm3-examples\examples\stm32\f1\lisa-m-1\usb_hid\usbhid.c . It defines static enum usbd_request_return_codes dfu_control_request( usbd_device *dev, struct usb_setup_data *req, uint8_t **buf, uint16_t *len, void (**complete)(usbd_device *dev, struct usb_s