自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

linpeng1577的专栏

通信行业的码农,目前研究《深入理解计算机系统》

  • 博客(66)
  • 资源 (1)
  • 收藏
  • 关注

翻译 #pragma与_Pragma的区别

在使用TI编译器编译代码过程中发现#pragma与_Pragma的区别,下面是TI Wiki的简单归纳:Pragmas You Can UnderstandContents [hide] 1 Introduction2 Full Example3 DiscussionIntroductionThis art

2015-09-19 23:10:11 2679

原创 每日编程训练20150910:ViewPager

package com.bignerdranch.android.criminalintent;import java.util.ArrayList;import android.app.FragmentManager;import android.os.Bundle;import android.support.v4.app.Fragment;import android.supp

2015-09-10 21:58:39 637

原创 每日编程训练20150909:typedef void (* unitest_func_t) (void);

#include #include typedef void (* unitest_func_t) (void);typedef struct{ int id; unitest_func_t func;}unitest_t;void unitest_hello(void){ printf("hello unitest!\r\n")

2015-09-09 23:02:26 679

原创 TI-RTOS Sys-Bios操作系统:task栈溢出检测方法

1. 示例代码Task_Stat statbuf; /* declare buffer */Task_stat(Task_self(), &statbuf); /* call func to get status */if (statbuf.used > (statbuf.stackSize * 9 / 10)) { System_printf("Over 90% of tas

2015-08-19 23:07:40 3062 1

原创 TI-RTOS Sys-Bios操作系统:Hwi创建方法

1.1 动态创建Hwi_Handle hwi0; //句柄Hwi_Params hwiParams; //传入参数Error_Block eb; //错误块Error_init(&eb); //错误块初始化,注意必须初始化,否则易进入System_abortHwi_Params_init(&hwiParams); //初始化传入参数hwiParams.arg = 5;h

2015-08-19 22:53:29 4396

原创 Java编程思想读书笔记:第2章 一切都是对象

2.1  用引用操作对象1. C/C++用指针操作对象;2. Java把一切都视为对象;3. 引用不是对象;2.2  必须由你创建所有对象1.  new关键字的意思是“给我一个对象”;String s = new String("hello");2.2.1 存储到什么地方1.  寄存器:Java寄存器不能直接控制;2.  堆栈;3.  堆:new一个对象,该

2015-08-19 21:43:04 607

原创 TI-RTOS Sys-Bios操作系统无法获取Hwi,Swi的Name问题

跨部门会议,两个部门均有同事反应Sys-bios操作系统中,task可以通过ROV获取名称,但是Hwi, Swi无法获取设定的name字符串,在查看新入职工程师的调试代码发现,其name定义类似如下handle->name = "tetraSlot";handle->__size = strlen("tetraSlot");本人建议其将代码修改如下,问题解决handle->name = "tetr

2015-08-18 23:41:08 915

原创 RT-Thread finsh源码分析: finsh_token.h

/* * token lex for finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <bernard.xio

2015-08-18 23:23:26 727

原创 RT-Thread finsh源码分析: finsh_token.c

/* * token lex for finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <bernard.xio

2015-08-18 23:19:46 1206

原创 RT-Thread finsh源码分析: finsh_ops.h

/* * operations for finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <bernard.xi

2015-08-18 22:47:54 876

原创 RT-Thread finsh源码分析: finsh_ops.c

/* * operations for finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <bernard.xi

2015-08-18 22:45:31 734

原创 RT-Thread finsh源码分析: finsh_node.c

/* * node routines for finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <bernard

2015-08-18 22:26:23 1040

原创 RT-Thread finsh源码分析: finsh_node.h

/* * node routines for finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <bernard

2015-08-18 22:16:58 661

原创 RT-Thread finsh源码分析: finsh_heap.h

/* * heap management in finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <bernar

2015-08-18 22:04:46 713

原创 RT-Thread finsh源码分析: finsh_var.c

/* * Variable implementation in finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong

2015-08-18 22:03:27 811

原创 RT-Thread finsh源码分析: finsh_var.h

/* * Variable implementation in finsh shell. * * COPYRIGHT (C) 2006 - 2013, RT-Thread Development Team * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong

2015-08-18 22:02:03 757

原创 RT-Thread finsh源码分析: finsh_error.c

/* * error number for finsh shell. * * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <b

2015-08-18 21:59:04 844

原创 RT-Thread finsh源码分析: finsh_error.h

/* * error number for finsh shell. * * COPYRIGHT (C) 2013, Shanghai Real-Thread Technology Co., Ltd * * This file is part of RT-Thread (http://www.rt-thread.org) * Maintainer: bernard.xiong <b

2015-08-18 21:56:42 714

原创 断言:利用ASSERT宏定位软件bug

/* *Author : DavidLin *Date : 2014-12-26pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver

2014-12-27 21:01:19 639

原创 Linux内核编程:防御性编程学习

/* *Kernel : Linux2.6.32.63  *File : \scripts\mod\modpost.h \scripts\mod\modpost.c *Author : DavidLin *Date : 2014-12-25pm *Email : linpeng1577@163.com o

2014-12-25 22:57:02 810

原创 协议设计:可变长帧的实现

/* *Author : DavidLin *Date : 2014-12-25pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver : 000.000

2014-12-25 22:29:31 7097

原创 协议设计:简单通信协议的心跳

诸如蓝牙等无线通信协议,帧是通过空口传输,在通讯链路建立之后,如何确保通讯链路是一直保持的,还是已经断开?这就需要心跳功能了。假如有主从设备2台,主设备每隔1000ms给从设备发送一个心跳包,并设定超时等待时间为300ms,从设备在300ms(不考虑传输损耗时间)内给主设备应答,主设备在发送帧之后的300ms内收到从设备的应答帧,就可以认为从设备依然挂载在通信网络中。        具

2014-12-25 22:10:23 2969

原创 auto tool: make -2014-1210-0001

/* *Author : DavidLin *Date : 2014-12-10pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver : 000.000.001

2014-12-20 23:39:11 859

原创 协议设计:如何实现一个最简单的通信协议(线程模拟)

*Author : DavidLin *Date : 2014-12-20pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver : 000.000.001 *For :

2014-12-20 18:09:26 6269

原创 有个函数:char* reverse(char *buf)

/* *Author : DavidLin *Date : 2014-12-15pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver : 000.000.001   *For : reve

2014-12-18 21:48:51 1157

转载 TCP 的那些事儿(下)

TCP 的那些事儿(下)2014年5月28日陈皓发表评论阅读评论46,187 人阅读    这篇文章是下篇,所以如果你对TCP不熟悉的话,还请你先看看上篇《TCP的那些事儿(上)》 上篇中,我们介绍了TCP的协议头、状态机、数据重传中的东西。但是TCP要解决一个很大的事,那就是要在一个网络根据不同的情况来动态调整自己的发包的速度,小则让自己的连接更稳定,大则让整

2014-12-18 21:35:19 549

转载 TCP 的那些事儿(上)

TCP 的那些事儿(上)2014年5月28日陈皓发表评论阅读评论91,370 人阅读    TCP是一个巨复杂的协议,因为他要解决很多问题,而这些问题又带出了很多子问题和阴暗面。所以学习TCP本身是个比较痛苦的过程,但对于学习的过程却能让人有很多收获。关于TCP这个协议的细节,我还是推荐你去看W.Richard Stevens的《TCP/IP 详解 卷1:协议》

2014-12-18 21:34:34 429

转载 应该知道的Linux技巧

应该知道的Linux技巧2013年1月9日陈皓发表评论阅读评论141,942 人阅读    这篇文章来源于Quroa的一个问答《What are some time-saving tips that every Linux user should know?》—— Linux用户有哪些应该知道的提高效率的技巧。我觉得挺好的,总结得比较好,把其转过来,并加了一些自

2014-12-18 21:33:10 417

转载 编程能力与编程年龄

编程能力与编程年龄2013年11月13日陈皓发表评论阅读评论119,299 人阅读    程序员这个职业究竟可以干多少年,在中国这片神奇的土地上,很多人都说只能干到30岁,然后就需要转型,就像《程序员技术练级攻略》这篇文章很多人回复到这种玩法会玩死人的一样。我在很多面试中,问到应聘者未来的规划都能听到好些应聘都说程序员是个青春饭。因为,大多数程序员都认为,编程这个事

2014-12-18 21:31:49 429

转载 周鸿祎:致那些在公司混日子的人

在公司混日子,伤害的是自己 2014-12-17 世界500强商务英语 1、无论为谁打工,要为自己学东西,客观上为公司创造价值。 我自己当年,无论我在方正给国家打工,还是我在雅虎给外国人打工,我都跟别人最大的不一样,我从来不觉得我在给他们打工,我真的可能是很有自信的人,我觉得我在为自己干。因为我干任何一件事我首先考虑的是,我通过干这件事我能学到什么东西,学到的东西是别人剥夺不走的,客观上可能给公司

2014-12-18 21:16:35 765

原创 auto_tool:源起及定义

*Author : DavidLin *Date : 2014-12-11pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver : 000.000.001 *histo

2014-12-11 22:54:31 728

原创 Linux-0.11内核源码分析系列:进程调度sleep_on()函数分析

/* *Author : DavidLin *Date : 2014-12-10pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver : 000.000.001 *h

2014-12-11 00:05:54 3040

原创 Linux内核编程:Linux2.6内核源码解析_进程遍历

/* *File : test.c *Author : DavidLin *Date : 2014-12-07pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver

2014-12-07 22:50:43 1631

原创 Linux内核编程:从hello world 开始-(3)_run

/* *File : test.c *Author : DavidLin *Date : 2014-12-07pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver

2014-12-07 22:30:26 1028

原创 Linux内核编程:从hello world 开始-(2)_Makefile文件编写

#/* # *File : Makefile# *Author : DavidLin # *Date : 2014-12-07pm # *Email : linpeng1577@163.com or linpeng1577@gmail.com # *world : the city of SZ, in China # *

2014-12-07 22:21:30 1252

原创 Linux内核编程:从hello world 开始-(1)_C文件编写

/* *Author : DavidLin *Date : 2014-12-07pm *Email : linpeng1577@163.com or linpeng1577@gmail.com *world : the city of SZ, in China *Ver : 000.000.001 *h

2014-12-07 22:11:01 1249

原创 NMEA-0183国外开源库源代码分析-tok.h

/* * This file is part of nmealib. * * Copyright (c) 2008 Timur Sinitsyn * Copyright (c) 2011 Ferry Huberts * * This library is free software; you can redistribute it and/or * modify it under t

2014-11-29 22:24:53 2709

原创 Linux-0.11内核源码分析系列:内存管理up_wp_page()与do_wp_page()函数分析

/* * up_wp_page()函数用于解除物理页的共享状态,同时给发生写时复制的进程提供一页新的 * 物理页,新物理页是之前共享页的数据相同的拷贝。 * table_entry是共享物理页的地址的指针,即页表实际地址+表内偏移地址 */void un_wp_page(unsigned long * table_entry){ unsigned long old_page,new_

2014-11-26 08:35:04 2150

原创 MTK面试-First

今年11月,MTK通知去面试,不过不是Handset Mobile部门,在腾讯大厦后面,聊了一下。面试基本情况如下:1.笔试    笔试题不难,不过有深度,此处不方面透露笔试题目,出于一个有理想,有道德的程序猿的坚持,我想,我还是得做个有理想的人。2.面试    主要MTK所谓的研发,其实需要做一些技术支持工作,总体觉得偏FAE,在明确表达做FAE会影响个人发展的点之后

2014-11-24 22:23:18 938

原创 华为面试-First

今年8月,收到华为面试邀请,就去参加了,坂田总部看起来的确高大上,很巧合的在面试的人群中看到了上一届的师兄,面试是在一个有印度餐厅的食堂,大概几百号面试者,几个部门同时开展面试,面试过程简单如下:1.笔试    笔试比较简单,都是一些基础知识,不过考得比较深,陷阱比较多,笔试结束,大概就刷了一批人,旁边川大的哥们不幸中招,提前出局。2.技术面试    技术面试官

2014-11-24 22:05:46 826 1

NMEA-0183国外开源库完整代码(附调试通过的PC测试代码)

在调试NMEA代码过程中,发现github上有个国外网友写的NEMA解析库非常不错,是c实现的,包含NMEA协议解析以及生成,适用于嵌入式以及桌面开发,目前0.6.10及以前可移植最佳,此后版本需要C++/C99 cmath库支持。附上本人在桌面pc上调试通过的代码,IDE是code::block,基于GCC,以及谷歌街景地图的GPS数据,可以供测试用

2013-11-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除