我是物联网的新手.我检查了英特尔网站,并通过了其他一些链接.但我无法清楚地了解英特尔Galileo和英特尔爱迪生之间有什么区别?什么时候应该用?
有谁知道一个很好的参考资源?
我想在Intel Galileo板上编写一个"hello world" 裸机应用程序.当然,使用UEFI打印文本(到UART-1)效果很好,但我想"手动"访问UART,而无需UEFI的任何帮助.
在QEMU,我的代码效果很好:
#define COM1_PORT (0x03F8)
#define UART_PORT (COM1_PORT)
enum uart_port_offs_t
{ // DLAB RW
THR = 0, // 0 W Transmitter Holding Buffer
RBR = 0, // 0 R Receiver Buffer
DLL = 0, // 1 RW Divisor Latch Low Byte
IER = 1, // 0 RW Interrupt Enable Register
DLH = 1, // 1 RW Divisor Latch High Byte
IIR = 2, // - R Interrupt Identification Register
FCR = …Run Code Online (Sandbox Code Playgroud) 我在我的intel galileo上运行Linux dev-tools图像(最后链接).我试图安装greenlet但是我收到一个错误,说明python.h没有这样的文件.
root@clanton:/media/realroot/greenlet-0.4.2# python setup.py install
running install
running build
running build_ext
creating /tmp/tmpuKbWhk/tmp
creating /tmp/tmpuKbWhk/tmp/tmpuKbWhk
i586-poky-linux-uclibc-gcc -m32 -march=i586 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/usr/include/python2.7 -c /tmp/tmpuKbWhk/simple.c -o /tmp/tmpuKbWhk/tmp/tmpuKbWhk/simple.o
/tmp/tmpuKbWhk/simple.c:1:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
building 'greenlet' extension
creating build
creating build/temp.linux-i586-2.7
i586-poky-linux-uclibc-gcc -m32 -march=i586 -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -fno-tree-dominator-opts -I/usr/include/python2.7 -c greenlet.c -o build/temp.linux-i586-2.7/greenlet.o
Run Code Online (Sandbox Code Playgroud)
在greenlet.c中包含的文件中:5:0:
greenlet.h:8:20: fatal error: Python.h: No …Run Code Online (Sandbox Code Playgroud)