Imx7d and led pwm animation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Imx7d and led pwm animation

796件の閲覧回数
maash
Contributor II

Hi.

I've got pwm led connected to pwm capable gpio (pwmchip0). I can use the pwm output by writing the sysfs pwm0 period and output in userspace.

However I would like to run pulsating animations (25hz) in the led. Is this doable in (is there DMA capability) in kernel or user space side? What I've understood is that this isn't really suitable with embedded linux applications nor I did find any dma to pwm examples. Is the led driver only option?

Any comments regarding this would be appreciated as I'm pretty new to IMX7 and yocto.

ラベル(3)
タグ(2)
0 件の賞賛
返信
1 返信

633件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Matti,

I don't have any example but you may find very useful this book Linux Driver Development for Embedded Processors. Specifically you can look at LAB 8.3: "DMA from user space" Module

You may also take a look to the following thread How to use SDMA in i.MX7D ? 


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信