System Counter Timer example for UART

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

System Counter Timer example for UART

1,169件の閲覧回数
gkottur
Contributor I

Hi,

We have a UART controller code that is running on TI AM335x processor which we are trying to port to i.mx8mp. We use OMAP DM timers and Interrupts for data transfer.

To port to i.mx8mp we are considering using System Counter Timers. 

Are there any examples of using System Counter timer that can be referenced?

in the imx-sysctr.c the timer init function sysctr_timer_init takes device_node as input. Should I be passing the UART device ID?

Thanks,

Guru

0 件の賞賛
返信
3 返答(返信)

1,145件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @gkottur,

I hope you are doing well.

Please refer to 2.1.3 Timer in i.MX Linux Reference Manual for more information.

One can refer to linux-imx/drivers/tty/serial/imx.c  to see how timers are used in UART kernel driver.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信

1,136件の閲覧回数
gkottur
Contributor I

Thank you Dhruvit. Do you have any sample application?

0 件の賞賛
返信

1,120件の閲覧回数
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @gkottur,

linux-imx/drivers/tty/serial/imx.c driver does show how to use timers in the kernel device driver.

Thanks & Regards,
Dhruvit Vasavada

0 件の賞賛
返信