摘要: 今天解决了之前遇到了的问题,写个博客来记录一下。 通过开发手册hikey970-user-manual,我们可以发现他的GPIO口输出是1.8v的,IO口截图如下: 图一(hikey970-user-manual) 我们要用的就是通过这个和hikey970-hi3670-v100-data-shee 阅读全文
posted @ 2019-06-21 22:37 GotWindy 阅读(633) 评论(0) 推荐(0) 编辑
摘要: 一、安装 1、命令行安装以下三个包: 2、安装完成之后,修改/etc/xinetd.d/tftp文件,修改后的文件如下: 二、启动 1、启动tftp服务器(虚拟机) /etc/init.d/下root权限执行 2、查看tftp服务是否开启 显示结果为udp 0 0 *:tftp *:*表明服务已经开 阅读全文
posted @ 2019-06-21 22:14 GotWindy 阅读(1759) 评论(0) 推荐(0) 编辑
摘要: 今天记录一下简单的Linux驱动程序怎么写以及如何加载/卸载驱动 以hello.c为例: hello.c #ifndef __KERNEL__ # define __KERNEL__ #endif #ifndef MODULE # define MODULE #endif #include <lin 阅读全文
posted @ 2019-06-21 21:57 GotWindy 阅读(3859) 评论(0) 推荐(0) 编辑
摘要: 一、socket函数 1、头文件: #include <sys/types.h> /* See NOTES */ #include <sys/socket.h> 2、函数原型: int socket(int domain, int type, int protocol); socket函数类似于op 阅读全文
posted @ 2019-06-21 21:45 GotWindy 阅读(2116) 评论(0) 推荐(0) 编辑