Update,
I was able to get some of the errors removed, by adding additional paths and by copying a
new descriptor.c and descriptor .h file. Since I want the USB driver to be a host and not a
device as in the MOUSE example being used, I copied the descriptor.c and descriptor.h
files from the following project "frdmk64_usb_msd" which can be found in the forum by doing a
search. Once I recompiled, I was still getting an error here:
uint8_t g_config_descriptor[CONFIG_DESC_SIZE] =
{
/* Configuration Descriptor Size - always 9 bytes*/
CONFIG_ONLY_DESC_SIZE,
/* "Configuration" type of descriptor */
USB_CONFIG_DESCRIPTOR,
/* Total length of the Configuration descriptor */
USB_uint_16_low(CONFIG_DESC_SIZE), USB_uint_16_high(CONFIG_DESC_SIZE),
/* NumInterfaces */
CONFIG_DESC_NUM_INTERFACES_SUPPOTED,
/* Configuration Value */
1,
/* Configuration Description String Index */
0,
/* Attributes.support RemoteWakeup and self power */
(USB_DESC_CFG_ATTRIBUTES_D7_POS) | (USBCFG_DEV_SELF_POWER << USB_DESC_CFG_ATTRIBUTES_SELF_POWERED_SHIFT) | (USBCFG_DEV_REMOTE_WAKEUP << USB_DESC_CFG_ATTRIBUTES_REMOTE_WAKEUP_SHIFT),
/* Current draw from bus */
Apparently USBCFG_DEV_SELF_POWER and USBCFG_DEV_REMOTE_WAKEUP are not defined in the descriptor.h file. This I found very
strange, because it means the person who did this did not compile this file because they would have realized that these were not included. Weird??? Anyways, after doing a search, I came across this: dash-user-boot/usb_device_config.h at master · hologram-io/dash-user-boot · GitHub which did have the above missing includes and I added them to the descriptor.h file and re-compiled and now the compiler did a
successful compile.