上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 35 下一页
摘要: https://blog.csdn.net/TommyMusk/article/details/103844931?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&depth_1-utm_source=d 阅读全文
posted @ 2020-05-07 09:34 一个不知道干嘛的小萌新 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/shiyongyue/article/details/76202476 https://blog.csdn.net/baicaiaichibaicai/article/details/51187244?utm_medium=distribute.pc_re 阅读全文
posted @ 2020-05-07 09:28 一个不知道干嘛的小萌新 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: 1.功能需求 通过QT,编写一个库。库的作用是上层直接调用库的函数,并且传参。库函数根据下位机的通信协议,将数据进行封装。通过串口将数据发送给下位机。下位机获得数据后,会对数据进行解析,再通过串口应答一帧数据。库函数再对数据进行解析,提取上层需要的数据,以返回值的形式传递给上层。 2.实现步骤 1. 阅读全文
posted @ 2020-04-28 17:37 一个不知道干嘛的小萌新 阅读(15699) 评论(4) 推荐(2) 编辑
摘要: 1.创建C++库 1.1点击New Project 1.2选择库模板 选择“Library”中的”C++库”,再点击“Choose”。 1.3选择共享库 给共享库取个名称,并指定生成文件存放路径。再点击“下一步”。 1.4选择编译器 再点击“下一步”。 1.5选择所需要的模块 默认选择QtCore( 阅读全文
posted @ 2020-04-28 16:05 一个不知道干嘛的小萌新 阅读(1042) 评论(0) 推荐(0) 编辑
摘要: 1.参考文档 a. 内核 Documentation\devicetree\bindings\Pinctrl\ 目录下: Pinctrl-bindings.txt b. 内核 Documentation\gpio 目录下: Pinctrl-bindings.txt c. 内核 Documentati 阅读全文
posted @ 2020-04-22 11:14 一个不知道干嘛的小萌新 阅读(2300) 评论(0) 推荐(0) 编辑
摘要: 1 阅读全文
posted @ 2020-04-21 16:30 一个不知道干嘛的小萌新 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.sprintf函数原型 #include <stdio.h> int sprintf(char *string, char *format [,argument,...]); 参数列表 string-- 这是指向一个字符数组的指针,该数组存储了 C 字符串。 format-- 这是字符串,包含了 阅读全文
posted @ 2020-04-14 14:58 一个不知道干嘛的小萌新 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 1.例程 #include<stdio.h>#include<string.h> int main(void) { char a[10]="123"; char b[10]="abc"; strcat(a,b); //连接两个字符串,连接后的字符串存袭放在a中,数组a中有足够空间 printf("% 阅读全文
posted @ 2020-04-14 14:29 一个不知道干嘛的小萌新 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 1.内核配置 >Device Drivers >Watchdog Timer Support >WatchDog Timer Driver Core[*] >Software watchdog[*] 编译烧录内核,然后在板卡上面可以看到/dev/watchdog 2.看门狗编程 喂狗、喂狗时间设置、 阅读全文
posted @ 2020-04-07 15:02 一个不知道干嘛的小萌新 阅读(1106) 评论(0) 推荐(0) 编辑
摘要: 1.问题 main.h #ifndef _MAIN_H #define _MAIN_H unsigned char i; #endif main.c #include "main.h" main() { ; } a.c #include "main.h" 略 然后编译a.c和main.c,就会提示S 阅读全文
posted @ 2020-04-03 10:49 一个不知道干嘛的小萌新 阅读(9793) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 35 下一页