UART & I2C implementation in Userspace program

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UART & I2C implementation in Userspace program

跳至解决方案
1,093 次查看
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

标记 (4)
0 项奖励
回复
1 解答
1,007 次查看
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 回复数
1,007 次查看
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 项奖励
回复
1,007 次查看
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 项奖励
回复
1,008 次查看
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