07 2021 档案
摘要:minicom使用 直接运行 sudo minicom -D /dev/ttyUSB0 -C minicom.log -b 38400 --color=on --attrib=on 编写脚本来实现对多个设备的支持,不用自己敲命令。 #!/bin/bash usage() { echo "Usage:
阅读全文
摘要:Socket进程间通信 服务端 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <sys/socket.h> #include <sys/types.h> #inclu
阅读全文
摘要:cmake交叉编译 CMakeLists.txt #指定交叉编译器路径 set(TOOLSCHAIN_PATH "/home/duapple/work/zigbee/z3_gateway/chiot_smart_home_zigbee/rtl819x/toolchain/msdk-4.4.7-mip
阅读全文
摘要:cmake 教程 1. 创建CMakeLists.txt 在工程中,需要创建很多的CMakeLists.txt,在运行 cmake 时,cmake会根据这些文件,对我们构建的依赖关系创建makefile。 这里以一个最小的工程为例,来实现cmake编译管理工程。 常用的工程目录结构如下: [duap
阅读全文