An application that I'm building from scratch using the dev_msd_disk_frdmk22f_bm_frdmk22f as an example, as well as the usbd_sdk_frdmk22f_bm_frdmk22f library.
First there is type-o in the documentation :
From theUSB Stack Device Reference Manual, Rev. 1, 04/2015, page 56:
7.4.1 msc_handle_t
Description
Represents the MSC class handle.
Synopsis
typedef uint32_t msc_handle_t;
The actual typedef in the library is msd_handle_t
Also, even though I'm building out a device only application, do I need to also build and use elements from the host or another library? There seem to be a lot of missing types and externals that don't exist anywhere in the library : OS_MsgQ_Is_Empty as an example. Says declared externally in multiple places,
OS_MsgQ_Is_Empty Externally declared :
khci.c
usb_dev.c --> Function commented out that includes is
adapter_sdk.h ---> says declared externally
And appears to be declared in adapter_sdk.c...
uint32_t OS_MsgQ_Is_Empty(os_msgq_handle msgq, void* msg)
But won't build?
Any advice?
***IF INCLUDE adapter_sdk.c instead of .h, it compiles...