Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 10 months ago.
What version of MBED does USBhost compile against?
Not quite sure how to go about this, I seem to be hitting a version mismatch issue. I'm trying out an example and I'd quite like to update to newer libraries but the USBhost library appears to not compile against the newest MBED library
Importing the USBhostserial example I found that it used lib versions from 2013. If I update USBhost and MBED it won't compile. If I revert MBED to 28 April 2017 it compiles but complains a lot.
See below for the results. Right now I'm not worrying about the warnings as hey its "beta" anyway.
Warning: Function "mbed::FileSystemLike::FileSystemLike(const char *)" (declared at <a href="#" onmousedown="mbed_doc_goto('/USBHostSerial_HelloWorldextras/mbed_794e51388b66/drivers/FileSystemLike.h', '47'); return false;">/extras/mbed_794e51388b66/drivers/FileSystemLike.h:47</a>) was declared "deprecated" in "extras/mbed_794e51388b66/drivers/LocalFileSystem.h", Line: 99, Col: 53 Warning: #warning directive: toolchain.h has been replaced by mbed_toolchain.h, please update to mbed_toolchain.h [since mbed-os-5.3] in "extras/mbed_794e51388b66/platform/toolchain.h", Line: 23, Col: 3 Warning: Function "mbed::FunctionPointerArg1<R, void>::FunctionPointerArg1(R (*)()) [with R=void]" (declared at <a href="#" onmousedown="mbed_doc_goto('/USBHostSerial_HelloWorldextras/mbed_794e51388b66/platform/FunctionPointer.h', '67'); return false;">/extras/mbed_794e51388b66/platform/FunctionPointer.h:67</a>) was declared "deprecated" in "USBHost/USBHost/USBEndpoint.h", Line: 35, Col: 20 Warning: Function "mbed::Callback<R ()>::attach(R (*)()) [with R=void]" (declared at <a href="#" onmousedown="mbed_doc_goto('/USBHostSerial_HelloWorldextras/mbed_794e51388b66/platform/Callback.h', '276'); return false;">/extras/mbed_794e51388b66/platform/Callback.h:276</a>) was declared "deprecated" in "USBHost/USBHost/USBEndpoint.h", Line: 99, Col: 17 Warning: Function "mbed::Callback<R ()>::attach(R (*)()) [with R=void]" (declared at <a href="#" onmousedown="mbed_doc_goto('/USBHostSerial_HelloWorldextras/mbed_794e51388b66/platform/Callback.h', '276'); return false;">/extras/mbed_794e51388b66/platform/Callback.h:276</a>) was declared "deprecated" in "USBHost/USBHost/USBDeviceConnected.h", Line: 120, Col: 35 Warning: Function "mbed::Callback<R ()>::attach(R (*)()) [with R=void]" (declared at <a href="#" onmousedown="mbed_doc_goto('/USBHostSerial_HelloWorldextras/mbed_794e51388b66/platform/Callback.h', '276'); return false;">/extras/mbed_794e51388b66/platform/Callback.h:276</a>) was declared "deprecated" in "USBHost/USBHostSerial/USBHostSerial.h", Line: 87, Col: 21 Warning: Function "mbed::Callback<R ()>::attach(R (*)()) [with R=void]" (declared at <a href="#" onmousedown="mbed_doc_goto('/USBHostSerial_HelloWorldextras/mbed_794e51388b66/platform/Callback.h', '276'); return false;">/extras/mbed_794e51388b66/platform/Callback.h:276</a>) was declared "deprecated" in "USBHost/USBHostSerial/USBHostSerial.h", Line: 89, Col: 21 Warning: Function "rtos::Thread::Thread(void (*)(const void *), void *, osPriority, std::uint32_t, unsigned char *)" (declared at <a href="#" onmousedown="mbed_doc_goto('/USBHostSerial_HelloWorld/USBHost/mbed-rtos/rtos/Thread.h', '189'); return false;">USBHost/mbed-rtos/rtos/Thread.h:189</a>) was declared "deprecated" in "main.cpp", Line: 50, Col: 24