Other Parts Discussed in Thread: CC2540
I designed a PCB based on CC2540 Keyfob but with additional USB port that I planned to use as USB CDC. I was able to assemble most of the USB firmware modules found in this directory:
C:\Texas Instruments\BLE-CC254x-1.4.0\Components\hal\target\CC2540USB\usb
I compiled the project successfully, including the function: static void HalUARTInitUSB() in _hal_uart_usb.c.
My question is how do I initialize the USB function? Someone told me that HalDriverInit() function would do the trick. But I don't see any condition for USB in that HalDriverInit() function.
Please any expert could give me a hint on how to fire up this USB function? Thanks in advance.