Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这主要是一个概念问题。
我有一块 ARM 板通过 UART 从外部设备接收数据。它可以很好地发送和接收数据(通过/dev/ttyS1)
但要接收数据,我必须从终端显式使用“读取”或“猫”命令。
我试图弄清楚如何在不使用读取命令的情况下接收数据并保存传入数据的中断。我正在考虑编写一个 C 程序来永久使用 poll(),但想知道是否有更好的方法来做到这一点。
如果轮询是唯一的方法,是否有这方面的教程?