UART & I2C implementation in Userspace program

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

UART & I2C implementation in Userspace program

ソリューションへジャンプ
786件の閲覧回数
ashoksowndar
Contributor II

Hi,

I am using i.MX 8M based SOM for my development and build the working image for it using Yocto. Now I want to use general purpose UART  & I2C to communicate with external device using a C program written in userspace.

Can you please help me with this?

Thanks and Regards,

Ashok

ラベル(3)
タグ(4)
0 件の賞賛
1 解決策
700件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Ashok

such userspace  program(C language based program) can be written using

standard Linux APIs as described in suggested documentation.

pastedImage_1.jpg

pastedImage_2.jpg

 Best regards
igor

元の投稿で解決策を見る

3 返答(返信)
700件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Ashok

please look at linux documentation (Porting Guide, Linux Manual

with description of drivers) on link

i.MX Software and Development Tools | NXP 

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

0 件の賞賛
700件の閲覧回数
ashoksowndar
Contributor II

Hi igorpadykov,

The Linux documentation that you have referred are related to kernel and low-level driver configuration.

But I am expecting some way to communicate with peripherals connected through UART or I2C interface using a userspace  program(C language based program).

Thanks in Advance!

Regards,

Ashok

0 件の賞賛
701件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Ashok

such userspace  program(C language based program) can be written using

standard Linux APIs as described in suggested documentation.

pastedImage_1.jpg

pastedImage_2.jpg

 Best regards
igor