I noticed that the usb_device_audio_generator demo is not actually configuring the USBPHY and USBHS clocks (at least looking at the clock configuration tool). Is this expected?
I'm using this demo as starting point for a project (USB audio device / UAC2) and I'm trying to understand whether I have to do that or that is not necessary.
Thanks.
已解决! 转到解答。
Hi @carlocaione,
You are correct, the required USB clocks are not enabled using ConfigTools. If they were, their respective code would be present on the BOARD_InitBootClocks() routine on the very top of the main function. However, the clocks for our USB example codes are initialized later on the execution. In this case, they get initialized during the APPInit() routine, using a function called USB_DeviceClockInit(). Please look into this function and let me know if you have further inquiries about this topic.
BR,
Edwin.
Hi @carlocaione,
You are correct, the required USB clocks are not enabled using ConfigTools. If they were, their respective code would be present on the BOARD_InitBootClocks() routine on the very top of the main function. However, the clocks for our USB example codes are initialized later on the execution. In this case, they get initialized during the APPInit() routine, using a function called USB_DeviceClockInit(). Please look into this function and let me know if you have further inquiries about this topic.
BR,
Edwin.