Replies: 3 comments
-
Even though this is a nice to have enhancement, but it is not essential. So I will close this one for now. |
Beta Was this translation helpful? Give feedback.
-
Keep this in disussion for now. |
Beta Was this translation helpful? Give feedback.
-
Some of the codes here may be of reference: The current OpenOCD code base has removed the dependancies for libusb-0.1 and use libusb-1.0 only. Older code base has both. |
Beta Was this translation helpful? Give feedback.
-
I am not so sure how difficult this is. I can see that the transport mechanisms are kind of abstracted out to a certain extent but not that clear. It would be good to improve the situation if possible.
Maybe serial port and parallel port are better asbstracted out but I did not look so deep into them. Parallel port is kind of dead anyway.
Example:
HIDAPI: the following code is there but it does not seem to be widely used by the programmers, rather the programmers are still using <hidapi/hidapi.h> directly.
https://github.com/avrdudes/avrdude/blob/main/src/usb_hidapi.c (probably this is not sufficient)
libusb-0,1 API: the following code is there but I am not that so sure how widely it is used.
https://github.com/avrdudes/avrdude/blob/main/src/usb_libusb.c
And then there are quite some fall back codes. I understand the needs to support as wide platforms as possible but I guess it does add to the complexity of the codes.
Beta Was this translation helpful? Give feedback.
All reactions