This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to implement RL USB custom code

Hello,
I am new to RL and am trying to implement a USB custom class for device operation. Now I have a question about how to implement Bulk-OUT handling codes.

My project is Cortex-M4 (STM32F407) using USB FS device function. I have added usbd_cls.c to my project as well as adding USB_CM3.lib and other device specific drivers and configs. I can now override device descriptor and config descriptor, and any other class request impl. But I can't see how to implement Bulk-Out handler that hooks for any in-coming Bulk-Out packets. The template usbd_cls.c looks like having only request handler's template but not such skeleton for Bulk-Out handling.

Is thre any good example code regarding this?
My KEIL version is 4.7 PRO using RTX and RL for USB.

Thanks,
Makoto

0