AnsweredAssumed Answered


Question asked by Audi McAvoy on Aug 26, 2015
Latest reply on Sep 16, 2015 by Kerry Zhou

Okay, I'll bite.


What do I need to include to use USB_Class_CDC_Init()?


I created a new, bare metal, FRDM-K64F project.  I used KSDK 1.2 and PEx.  I added an fsl_usb_descriptors component, edited it, and Generated Processor Expert Files.


Now I want to call USB_Class_CDC_Init().  The only header file I can find that references it is usb_class_cdc.h, but it declares the function as extern.

extern usb_status USB_Class_CDC_Init(...);


I can see that usb_cdc.c actually defines the function; but, usb_cdc.h does not expose it.


Since I've already built the demo project, I have a usb_cdc.o available.  How do I tell my project to use it?

- Audi