12 2016 档案
该文被密码保护。
该文被密码保护。
摘要:Before input 'gpio readall', need install wiringPi download "wiringPi":git clone git://git.drogon.net/wiringPi enter the file of wiringPi build and in
阅读全文
摘要:首先 secureCRT 软件需要和 linux 设备 通过 SSH 或者 串口 建立连接 如果要和树莓派(linux 设备)通信,树莓派安装如下工具 apt-get install lrzsz 可以把lrzsz安装到ubuntu虚拟机上,然后通过man rz和man sz查看配置参数及其作用,如下
阅读全文
摘要:linux 驱动所用 Makefile 介绍 1、目标定义:目标定义就是用来定义哪些内容作为模块编译,哪些要编译并链接进内核。 obj-y += foo.o 表示要由foo.c或者foo.s文件编译得到foo.o并链接进内核(无“条件编译”,所以不需要Kconfig配置),而obj-m则表示该文件要
阅读全文
摘要:1、set echo(display characters which are sent) 由于在软件中每输入一个字符立马发送出去,如果串口另一端开启回显(比如NB-IoT的AT指令设置开启回显),软件立马显示收到发送的字符并显示;这时候如果选择Local echo,会出现重复的字符 建议: 如果串
阅读全文
摘要:可变参数宏:宏的参数个数是可变的 作用:可以用于LOG打印语句 可变参数宏使用例子 C99中规定宏可以像函数一样带有可变参数,比如 #define LOG(format, ...) fprintf(stdout, format, __VA_ARGS__) 其中,...表示可变参数表,保留项__VA_
阅读全文
摘要:default username : pi default password : raspberry enter system setting interface : sudo raspi-config download schematic https://www.raspberrypi.org/d
阅读全文
该文被密码保护。
摘要:open it
阅读全文
摘要:for example: #include <stdlib.h>#include <stdio.h>#include <wiringPi.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include "linux/in
阅读全文