如何测试GPIO引脚???? [英] How to Test the GPIO Pins????

查看:659
本文介绍了如何测试GPIO引脚????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生

 

我正在使用win ce6.0,我的责任是检查gpio引脚  ;并根据我们设定的值测试引脚的高位或低位。而且我想手动设置编码中的引脚值,我想要注意omapL138板上的
特定引脚值。任何机构都可以告诉我们如何查看默认的gpiotest.c。

Am working with the win ce6.0 and my responsiblity is to check with the gpio pins  and to test the pins whether the its high or low depending upon the value we set. and also i want to manually set the pin values in the coding and i want to note that particular pin value on the omapL138 board. Can any body tell how to check with default gpiotest.c.

 

Vinoth。

 

推荐答案

这是非常特定于平台的。我知道我的公司提供了访问GPIO的驱动程序和示例程序。你的OEM是否提供这样的东西?

This is something that is very platform specific. I know that my company provides a driver to access GPIOs and an example program. Does your OEM provide such a thing?

如果没有,你可以在驱动程序中映射gpio寄存器并访问它们。使用处理器的规范来查看需要设置/清除的位,并创建一个驱动程序来控制各个gpios。然后你可以通过你的驱动程序编写一个程序来控制gpios

If not, you can memory map the gpio registers in a driver and access them. Use the specification for your processor to see what bits need to be set/cleared and create a driver to control individual gpios. Then you can write a program to control the gpios through your driver.

要查看使用GPIO的例子,你可以通过Mainstone BSP或任何其他基于arm的BSP你有,它将100%肯定有代码处理GPIO。

To see examples of using the GPIOs you can go through the Mainstone BSP or any other arm based BSP you have, it will 100% sure have code that handles GPIOs.

Shai


这篇关于如何测试GPIO引脚????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆