USB_OTG driver development in polling based approach
Board:B-L4S5I-Iot-01A discovery kit
MCU: STM32L4s5Vit6
Hello ,
We have an application in which we are using the USB_OTG interface configured in host-only mode with the USB CDC class.
Our requirement is to receive data at a rate of once per second through this interface. However, upon configuring the USB CDC class, the USB_OTG_FS global interrupt gets enabled automatically.
In our application, we want to minimize the use of interrupts, as frequent interrupts may impact overall system performance. Therefore, we would prefer a polling-based approach, where data can be read only when required rather than being interrupt-driven.
Could you please advise if it is possible to:
- Disable the USB_OTG_FS global interrupt, and
- Use the USB CDC host driver in a polling-based manner to retrieve data on demand?
Any guidance or recommended approach for achieving this would be highly appreciated.
Thank you.
