2018年7月21日
摘要: 大小端产生的缘由就不赘述了,只需记得小端结构是高地址->高数据位、低地址->低数据位即可。 下面有段代码,运行可判断出大小端。 1 #include <stdio.h> 2 3 union node 4 { 5 unsigned int m; 6 char c; 7 }; 8 9 int main( 阅读全文
posted @ 2018-07-21 09:26 看那两条鱼 阅读(188) 评论(0) 推荐(0)
  2018年7月9日
摘要: 以ubuntu安装ARM交叉编译工具为例: 1.临时设置,关闭当前终端立即失效 首先查看系统已有的环境变量: host$ echo $PATH 使用export命令: host$ export PATH=$PATH:/工具链安装路径 再次查看系统环境变量,确认路径是否添加,或者输入arm,双击Tab 阅读全文
posted @ 2018-07-09 11:06 看那两条鱼 阅读(123) 评论(0) 推荐(0)
  2018年7月2日
摘要: 结构体input_event内容:struct input_event { struct timeval time; __u16 type; __u16 code; __s32 value;}; 阅读全文
posted @ 2018-07-02 14:16 看那两条鱼 阅读(687) 评论(0) 推荐(0)