Hi Rohan,
Linux BSP for i.MX processors include a basic PWM library (mainly oriented for LCD backlight control). Therefore, it is not intended to work with more real-time implementations like motor control and may not fit your timing requirements. Please refer to chapter 2.7 “Pulse-Width Modulator (PWM)” section of “i.MX Reference Manual” document (attached) for additional details.
In case of using a heterogeneous i.MX processor like the i.MX6SX, i.MX7 or i.MX8, you could use the included M4 core to control real-time applications, like motor control.
Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------