我想使用sysfs在用户空间上使用GPIO中断.我使用这些命令:
[root@at91]:gpio109 > echo 109 > export
[root@at91]:gpio109 > cd gpio109/
[root@at91]:gpio109 > ll
-rw-r--r-- 1 root 0 4096 Jan 1 00:17 direction
drwxr-xr-x 2 root 0 0 Jan 1 00:17 power
lrwxrwxrwx 1 root 0 0 Jan 1 00:17 subsystem -> ../../gpio
-rw-r--r-- 1 root 0 4096 Jan 1 00:17 uevent
-rw-r--r-- 1 root 0 4096 Jan 1 00:17 value
Run Code Online (Sandbox Code Playgroud)
gpio运行良好,但我无法使用中断.我到处读到我必须有一个边缘文件来轮询这个文件.但在我的系统上,此文件不存在.我做了很多尝试找到解决方案,但仍然没有成功.
我的目标是Linux内核2.6.30上的AT91SAM9263.
在我的电路板启动时,我收到了关于中断的消息:
AT91: 160 gpio irqs in 5 banks
Run Code Online (Sandbox Code Playgroud)
这表明该功能at91_gpio_irq_setup()执行得很好.
你知道吗?
在我的STM32F7上,我必须使用串行端口连接3G调制解调器.我可以使用AT命令与调制解调器通信.我想使用LWIP的PPPos(PPP over serial)库进入PPP模式.所以我仔细看看官方文档
http://lwip.wikia.com/wiki/PPP
和
https://github.com/tabascoeye/lwip/blob/master/doc/ppp.txt
我理解指南,但我真的很惊讶没有串口的实现示例.实际上,我认为有很多调制解调器都有串行接口,所以我想我可以很容易地找到一个使用的例子.
有人已经这样做了或有一个例子吗?