We are looking at using the iMX23 system for project that also needs PWM to control a motor. My question is that does the iMX23 BSP Linux system come with drivers for PWM? And if so, has anyone got the PWM drivers to work on the iMX23 system? Or can someone point me to some sample code/docs?
Thanks,
Bill
Hello Bill,
Yes, the Linux BSP for the i.MX23 has drivers for PWM.
Unfortunately we do not have sample code available, I apologize for the inconvenience.
Thanks Sergio. One last thing, can you tell me where I would find the API docs/description/header files (for calling the PWM functions) ?
Best,
Bill
Bill,
Taken from the Linux reference manual of the i.MX23:
- - - - - - - - - - - -
29.2 Software Operation
The PWM LED driver software implementation conforms with the Linux LED driver model. The driver
provides the functions necessary to register as a standard Linux LED class driver. Refer to
Documentation/leds-class.txt for full information on the Linux LED Class API. The driver uses the
PWM active time and period registers to implement an 8-bit resolution brightness control.
- - - - - - - - - - - - -
You can get full information on the class API in /documentation/leds-class.txt
Hi All!
Somebody has successfully launched PWM_leds on imx23.
I copy led_pwm code initialisation from mx28_evk.c to mx23_evk23.c
Enable in kernel:
<*> LED Class Support
<*> Support for PWM LEDs on MXS
But on pin no pwm signal