上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 99 下一页
该文被密码保护。 阅读全文
posted @ 2020-06-15 18:48 流水灯 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-24 21:41 流水灯 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-23 22:55 流水灯 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 通信模块配置(比如设置连接服务器的IP和port)完之后分为透传接收和命令接收,先讨论透传接收: 前提:服务器发给通信模块的数据是一包一包的,每一包数据包含包头、包长和数据,比如一包数据位:AA AA 00 08 01 02 45 FA,其中AA AA表示包头,00 08是包长,01 02 45 F 阅读全文
posted @ 2020-05-19 18:23 流水灯 阅读(382) 评论(0) 推荐(0) 编辑
摘要: uint64_t destime, oritime, rectime, tratime; int64_t result; result = ((rectime-oritime) + (tratime-destime))/2; 当((rectime-oritime) + (tratime-destim 阅读全文
posted @ 2020-04-30 16:43 流水灯 阅读(2187) 评论(0) 推荐(0) 编辑
摘要: GCC手册:https://gcc.gnu.org/onlinedocs/ GCC编译选项CFLAGS参数 选项 说明 -c 用于把源码文件编译成 .o 对象文件,不进行链接,所以不产生可执行文件 -o 用于连接生成可执行文件,在其后可以指定输出文件的名称 -g 用于在生成的目标文件中,添加调试信息 阅读全文
posted @ 2020-04-24 14:08 流水灯 阅读(8678) 评论(2) 推荐(0) 编辑
摘要: 1、互斥锁 常用函数: int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mutexattr);//互斥初始化 int pthread_mutex_destroy(pthread_mutex_t *mu 阅读全文
posted @ 2020-04-15 17:44 流水灯 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 在开发嵌入式linux应用时,可以通过 lrzsz 传输文件,也可以通过 NFS 把ubuntu上的文件夹共享给嵌入式linux板子,省去每次传输文件(擦写flash) 在 ubuntu 上安装 NFS 软件包 sudo apt-get install nfs-kernel-server 需要设置虚 阅读全文
posted @ 2020-04-03 17:52 流水灯 阅读(4) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-03-16 23:05 流水灯 阅读(3) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-02-21 16:40 流水灯 阅读(2) 评论(0) 推荐(0) 编辑
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 99 下一页