博客园 - flying06
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=177004
2021-03-06T16:26:01Z
flying06
https://www.cnblogs.com/flying06/
feed.cnblogs.com
https://www.cnblogs.com/flying06/p/5728158.html
(转载)PPP协议规范 - flying06
PPP协议规范 1 介绍 PPP是为在同等单元之间传输数据包这样的简单的链路而设计的。这种链路提供全双工操作,并按照顺序传递数据包。(人们)有意让PPP为基于各种主机、网桥和路由器的简单连接提供一种共通的解决方案。 封装: PPP封装提供了不同网络层协议同时通过统一链路的多路技术。精心的设计PPP封
2016-08-02T01:51:00Z
2016-08-02T01:51:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】PPP协议规范 1 介绍 PPP是为在同等单元之间传输数据包这样的简单的链路而设计的。这种链路提供全双工操作,并按照顺序传递数据包。(人们)有意让PPP为基于各种主机、网桥和路由器的简单连接提供一种共通的解决方案。 封装: PPP封装提供了不同网络层协议同时通过统一链路的多路技术。精心的设计PPP封 <a href="https://www.cnblogs.com/flying06/p/5728158.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3911894.html
buf最后一位“\0”,strcpy前不需要清零 - flying06
1 #include 2 #include 3 4 int main(void) 5 { 6 7 char buf[8] = {'a','b','c','d','e','f','g'};//7个字符, 8 printf("size = %d\n",sizeof(buf));//打印8 9 pr...
2014-08-14T02:17:00Z
2014-08-14T02:17:00Z
flying06
https://www.cnblogs.com/flying06/
该文只有注册用户登录后才能阅读。<a href='https://www.cnblogs.com/flying06/p/3911894.html' target='_blank'>阅读全文</a>。
https://www.cnblogs.com/flying06/p/3878279.html
at91sam9263: 定时器 - flying06
at91sam9263:方法一:开启/关闭定时器;方法二:开启/关闭中断 AT91C_BASE_TC0->TC_CCR = AT91C_TC_CLKEN | AT91C_TC_SWTRG;方法一:定时器每次启动都会把AT91C_BASE_TC0->TC_CV(只读)置0,不管是否关闭定时器方法二:A...
2014-07-30T08:02:00Z
2014-07-30T08:02:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】at91sam9263:方法一:开启/关闭定时器;方法二:开启/关闭中断 AT91C_BASE_TC0->TC_CCR = AT91C_TC_CLKEN | AT91C_TC_SWTRG;方法一:定时器每次启动都会把AT91C_BASE_TC0->TC_CV(只读)置0,不管是否关闭定时器方法二:A... <a href="https://www.cnblogs.com/flying06/p/3878279.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3874683.html
cyg_io_read返回值是0,因为读到的字节长度在参数中 - flying06
len = cyg_io_read(ser_handle1, ucMasterRTURcvBuftmp, &len);//len等于0,cyg_io_read读到的字节数在参数中的红色的len,而不是前面的lencyg_io_read函数的说明中有:Syntax:Cyg_ErrNocyg_io_re...
2014-07-29T01:05:00Z
2014-07-29T01:05:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】len = cyg_io_read(ser_handle1, ucMasterRTURcvBuftmp, &len);//len等于0,cyg_io_read读到的字节数在参数中的红色的len,而不是前面的lencyg_io_read函数的说明中有:Syntax:Cyg_ErrNocyg_io_re... <a href="https://www.cnblogs.com/flying06/p/3874683.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3873374.html
read函数 - flying06
#include ssize_t read(int fd, void *buf, size_t count);DESCRIPTION read() attempts to read up to count bytes from file descriptor fd into the buffer...
2014-07-28T08:27:00Z
2014-07-28T08:27:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】#include ssize_t read(int fd, void *buf, size_t count);DESCRIPTION read() attempts to read up to count bytes from file descriptor fd into the buffer... <a href="https://www.cnblogs.com/flying06/p/3873374.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3871234.html
Linux编译错误:‘cout’在此作用域中尚未声明 - flying06
1、未声明#include2、usingnamespacestd;初学者在Linux中进行C++编程时会遇到“‘cout’在此作用域中尚未声明”的错误。很多人会觉得很奇怪,我是严格按照C++语法来写的,为什么还会在编译时提示“‘cout’在此作用域中尚未声明”的错误呢?下面来详细分析一下错误原因,通...
2014-07-27T04:32:00Z
2014-07-27T04:32:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】1、未声明#include2、usingnamespacestd;初学者在Linux中进行C++编程时会遇到“‘cout’在此作用域中尚未声明”的错误。很多人会觉得很奇怪,我是严格按照C++语法来写的,为什么还会在编译时提示“‘cout’在此作用域中尚未声明”的错误呢?下面来详细分析一下错误原因,通... <a href="https://www.cnblogs.com/flying06/p/3871234.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3850909.html
ASCII 码 图表 - flying06
ASCII 码使用指定的7 位或8 位二进制数组合来表示128 或256 种可能的字符。标准ASCII 码也叫基础ASCII码,使用7 位二进制数来表示所有的大写和小写字母,数字0 到9、标点符号, 以及在美式英语中使用的特殊控制字符。其中:0~31及127(共33个)是控制字符或通信专用字符(其余...
2014-07-17T06:01:00Z
2014-07-17T06:01:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】ASCII 码使用指定的7 位或8 位二进制数组合来表示128 或256 种可能的字符。标准ASCII 码也叫基础ASCII码,使用7 位二进制数来表示所有的大写和小写字母,数字0 到9、标点符号, 以及在美式英语中使用的特殊控制字符。其中:0~31及127(共33个)是控制字符或通信专用字符(其余... <a href="https://www.cnblogs.com/flying06/p/3850909.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3850867.html
字符比较 strcmp - flying06
UCHAR SendBuffertem[116] = "";UCHAR ReadBuffertem[116] = "";1、//numcmp = 116;//temcmp = strncmp(SendBuffertem,ReadBuffertem,numcmp);2、temcmp = strcmp(...
2014-07-17T05:42:00Z
2014-07-17T05:42:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】UCHAR SendBuffertem[116] = "";UCHAR ReadBuffertem[116] = "";1、//numcmp = 116;//temcmp = strncmp(SendBuffertem,ReadBuffertem,numcmp);2、temcmp = strcmp(... <a href="https://www.cnblogs.com/flying06/p/3850867.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3844971.html
atoi转换char与int比较 - flying06
UCHAR recordlenthrecordlenth与整形int比较时不用atoi转换recordlenth。若转换出错3.lseek函数所需头文件:#include #include/*定义了off_t,pid_t等类型*/函数原型:off_tlseek(intfd,,off_toff...
2014-07-15T07:54:00Z
2014-07-15T07:54:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】UCHAR recordlenthrecordlenth与整形int比较时不用atoi转换recordlenth。若转换出错3.lseek函数所需头文件:#include #include/*定义了off_t,pid_t等类型*/函数原型:off_tlseek(intfd,,off_toff... <a href="https://www.cnblogs.com/flying06/p/3844971.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3843083.html
switch语句: 编译错误case label does not reduce to an integer constant - flying06
1、switch语句: 编译错误case label does not reduce to an integer constant在case中肯定不能进行条件判断.用嵌套的ifelse就解决了switch语句的格式为switch(表达式){case常量表达式1:语句1case常量表达式2:语句2^^...
2014-07-14T09:05:00Z
2014-07-14T09:05:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】1、switch语句: 编译错误case label does not reduce to an integer constant在case中肯定不能进行条件判断.用嵌套的ifelse就解决了switch语句的格式为switch(表达式){case常量表达式1:语句1case常量表达式2:语句2^^... <a href="https://www.cnblogs.com/flying06/p/3843083.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3843074.html
open 函数 - flying06
open 函数用于打开和创建文件。以下是 open 函数的简单描述 #include int open(const char *pathname, int oflag, ... ); 返回值:成功则返回文件描述符,否则返回 -1对于 open 函数来说,第三个参数(...)仅当创建新文件时才使用,...
2014-07-14T09:01:00Z
2014-07-14T09:01:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】open 函数用于打开和创建文件。以下是 open 函数的简单描述 #include int open(const char *pathname, int oflag, ... ); 返回值:成功则返回文件描述符,否则返回 -1对于 open 函数来说,第三个参数(...)仅当创建新文件时才使用,... <a href="https://www.cnblogs.com/flying06/p/3843074.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3842816.html
警告:隐式声明与内建函数‘strcpy’不兼容 - flying06
这个问题,对于初学者,是个相当经典的问题。今天自己的也出现了,源程序如下:test.c#includeint main(){ char a[10]; strcpy( a, "abc" ); return 0;}使用gcc编译,出现提示:[hwxc@localhost other]$...
2014-07-14T07:39:00Z
2014-07-14T07:39:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】这个问题,对于初学者,是个相当经典的问题。今天自己的也出现了,源程序如下:test.c#includeint main(){ char a[10]; strcpy( a, "abc" ); return 0;}使用gcc编译,出现提示:[hwxc@localhost other]$... <a href="https://www.cnblogs.com/flying06/p/3842816.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3828438.html
整理atoi itoa的实现 - flying06
一、atoi原型:int atoi(const char *nptr);参数nptr字符串,如果第一个非空格字符存在,是数字或者正负号则开始做类型转换,之后检测到非数字(包括结束符 \0) 字符时停止转换,返回整型数。否则,返回零, 1 #include 2 #include 3 int main(...
2014-07-06T11:37:00Z
2014-07-06T11:37:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】一、atoi原型:int atoi(const char *nptr);参数nptr字符串,如果第一个非空格字符存在,是数字或者正负号则开始做类型转换,之后检测到非数字(包括结束符 \0) 字符时停止转换,返回整型数。否则,返回零, 1 #include 2 #include 3 int main(... <a href="https://www.cnblogs.com/flying06/p/3828438.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3828397.html
虚拟机可以共享目录,但不能复制粘贴的解决方法 - flying06
1、先把两个勾号去掉,保存2、然后再打开此页面,选中这两个勾号,保存3、重启电脑ok
2014-07-06T10:39:00Z
2014-07-06T10:39:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】1、先把两个勾号去掉,保存2、然后再打开此页面,选中这两个勾号,保存3、重启电脑ok <a href="https://www.cnblogs.com/flying06/p/3828397.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3816308.html
非专为 Flash所设计的文件系统,需要FTL层转换 - flying06
Flash Memory 目前分为两种:NOR Flash Memory 及 NAND Flash Memory,尤于 NAND FlashMemory 有较快的 Erase Time、Small Size 及成本较低的特性下,使得 NAND 更适用于Embedded System。Flash Me...
2014-06-30T03:32:00Z
2014-06-30T03:32:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】Flash Memory 目前分为两种:NOR Flash Memory 及 NAND Flash Memory,尤于 NAND FlashMemory 有较快的 Erase Time、Small Size 及成本较低的特性下,使得 NAND 更适用于Embedded System。Flash Me... <a href="https://www.cnblogs.com/flying06/p/3816308.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3811968.html
下载程序的疑问 - flying06
at91sam9263 28KB ROM, 80KB SRAM 。1M多的.bin文件下载到板子上,可以正常运行,是下载到哪个地方?调试时的.hex又是下载哪个地方?可能是nand或者norflash中,还不确定SD卡就是nand flash加上控制电路和接口现在一般来讲,内存指的是RAM。现在有的...
2014-06-27T06:44:00Z
2014-06-27T06:44:00Z
flying06
https://www.cnblogs.com/flying06/
【摘要】at91sam9263 28KB ROM, 80KB SRAM 。1M多的.bin文件下载到板子上,可以正常运行,是下载到哪个地方?调试时的.hex又是下载哪个地方?可能是nand或者norflash中,还不确定SD卡就是nand flash加上控制电路和接口现在一般来讲,内存指的是RAM。现在有的... <a href="https://www.cnblogs.com/flying06/p/3811968.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/flying06/p/3792209.html
博客第一天 - flying06
归纳总结,提高学习效率。欢迎交流讨论,共同学习!
2014-06-17T01:55:00Z
2014-06-17T01:55:00Z
flying06
https://www.cnblogs.com/flying06/
该文只有注册用户登录后才能阅读。<a href='https://www.cnblogs.com/flying06/p/3792209.html' target='_blank'>阅读全文</a>。