This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / 有人熟悉gpio吗? 我想给某个x86体系的小板增加使用reset按钮使openwrt系统恢复初始设置的功能. 现在这个板上的reset按钮什么都不做, 连power cycle都不行. 请问谁能说一下大致的步骤这样我有点概念了也好去google.
-akoei(停车**枫林晚);
2009-10-22
(#5624299@0)
-
you need to set the gpio port to input mode and have a polling routine dectect the user action. you can write a piece of code to interpretate user's action( one short push for reboot, hold 10 seconds for restore default settings etc.)
-qwertyasd(东北人);
2009-10-22
(#5624795@0)
-
polling routine不可靠。。程序死循环了怎么办。。一般软reset也需要做在硬中断服务程序里面。。
-z24(Quick! Winterizing);
2009-10-22
(#5624887@0)
-
you are right. reset is different from the normal gpio port input processing.
-qwertyasd(东北人);
2009-10-22
(#5624899@0)
-
现代的embeded processor好像已经不太强调reset pin。。程序跑死了片内看门狗就起作用了。。
-z24(Quick! Winterizing);
2009-10-22
(#5624923@0)
-
是怕OS完蛋
-akoei(停车**枫林晚);
2009-10-22
(#5624988@0)
-
the watchdog is designed to reset(soft reset) the processor when the OS is 完蛋. and usually there is another hardware reset(similiar to power cycle) that's what you are trying to know.
-qwertyasd(东北人);
2009-10-22
(#5625154@0)
-
你的reset是通过gpio实现的?一般情况下reset是个特殊的pin。是不是还是看看原理图?。
-xw1196(眼高手低);
2009-10-22
(#5624802@0)
-
sometimes there is a small reset chip connect to the main processor. the reset chip capture user's input and send the reset signal to main processor.
-qwertyasd(东北人);
2009-10-22
(#5624851@0)
-
原理我知道, 就是想知道实际开发时有那些大的步骤.
-akoei(停车**枫林晚);
2009-10-22
(#5625002@0)
-
似乎router上的reset都是伪reset。。实际就是个GPIO口。。你需要知道这个bit的地址来操作。。
-z24(Quick! Winterizing);
2009-10-22
(#5624907@0)
-
有人和我讲触发gpio时实际是对CPU的某个引脚改变电平什么的. 是这样吗? 难道我得去读intel的cpu的接口定义什么的吗?
-akoei(停车**枫林晚);
2009-10-22
(#5625015@0)
-
for freescale coldfire microprocessor, there are control registers for the GPIO port. the configuration can be don by set up the registers.
-qwertyasd(东北人);
2009-10-22
(#5625146@0)
-
GPIO port operating is pretty similar on all microprocessors.
-z24(Quick! Winterizing);
2009-10-22
(#5625188@0)
-
接口定义是底层embedded programming必读的。。
-z24(Quick! Winterizing);
2009-10-22
(#5625182@0)
-
触发gpio时实际是对CPU的某个引脚改变电平什么的。。原理就这么简单。。input reg polling。。原来是1现在是0(原来是0现在是1)说明有按键动作。。实际还应该有点软件debouce什么的。。
-z24(Quick! Winterizing);
2009-10-22
(#5625199@0)
-
如果请人做大概多少钱?
-akoei(停车**枫林晚);
2009-10-22
(#5625227@0)
-
翻翻芯片手册就会了。。没见过找人做这么小活儿的。。
-z24(Quick! Winterizing);
2009-10-22
(#5625257@0)