using lib_xud and module_xud implement 2 usb issue
Posted: Mon Nov 18, 2019 4:02 am
Hi all
2 usb function are need for my project, and i am trying use lib_xud and module_xud .
for 1 usb function, both libraries can be used to realize the usb function.
for 2 usb function, that's to say each libray realize one usb.
of curse there are some prerequisite works, there are some same parts for the 2 libaries, so i changed the lib_xud, usb signals 、some variables、and some functions are renamed. when finish such works, the lib_xud still works on usb.
when i used them both, only the lib_xud usb function is ok, and always failed with module_xud.
i tried basing on 1 usb with module_xud, and add lib_xud step by step. first i just add lib_xud in workspace, compile ok, but usb function failed. it is strange, i just add the library.
and i found when i delete lib_xud in USED_MODULES of the makefile, and the module_xud usb function works.
USED_MODULES = module_xud module_usb_shared module_usb_device module_usb_audio module_usb_midi module_dfu module_locks
so lib_xud and module_xud can not work at the same time?
2 usb function are need for my project, and i am trying use lib_xud and module_xud .
for 1 usb function, both libraries can be used to realize the usb function.
for 2 usb function, that's to say each libray realize one usb.
of curse there are some prerequisite works, there are some same parts for the 2 libaries, so i changed the lib_xud, usb signals 、some variables、and some functions are renamed. when finish such works, the lib_xud still works on usb.
when i used them both, only the lib_xud usb function is ok, and always failed with module_xud.
i tried basing on 1 usb with module_xud, and add lib_xud step by step. first i just add lib_xud in workspace, compile ok, but usb function failed. it is strange, i just add the library.
and i found when i delete lib_xud in USED_MODULES of the makefile, and the module_xud usb function works.
USED_MODULES = module_xud module_usb_shared module_usb_device module_usb_audio module_usb_midi module_dfu module_locks
so lib_xud and module_xud can not work at the same time?