自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

hengkong_horse的专栏

天行健,君子以自强不息;地势坤,君子以厚德载物。

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

原创 WIFI 功率计算方式

无线电波的发射功率是指在给定频段范围内的能量,通常有两种衡量标准:        功率(W)       增益(dBm) 功率单位mW和dBm的换算:    1、dBm =10 x  log [mW]    2、mW =10 的冥 [dBm/ 10] 无线系统中的电磁波能量是由发射设备的发射能量和天线的放大叠加作用产生。    发射总能量=发射功率(

2013-11-21 21:21:59 5869

转载 A.c 和B.c两个c文件中使用了两个相同名字的static变量

转自:http://blog.csdn.net/liu_qiqi/article/details/9120823A.c 和B.c两个c文件中使用了两个相同名字的static变量,编译的时候会不会有问题?在头文件中定义static,然后这个头文件被不同的文件引用。我们知道,static的作用域是定义它的源文件中,这样的方式,会在每个引用它的文件中都生成一个本地的static 变量。s

2013-10-22 11:33:41 2383

转载 在头文件中使用static定义变量意味着什么(转)

转自:http://blog.sina.com.cn/s/blog_4a3946360100yagx.html看到有一位同学在头文件中这么写: 1static const wchar_t* g_str1 = …2static const wchar_t* g_str2 = …

2013-10-22 11:32:19 899

翻译 a speech --about the guidance of being mature (1)

a speech             --about the guidance of                being mature (1)It's doesn't matter that mature or immature with age. Mature or not is that if you can stand on others' points to co

2013-07-25 22:31:10 848

转载 strlen和sizeof的区别

本文转载自http://blog.csdn.net/niushuai666/article/details/7677210一、sizeof    sizeof(...)是运算符,而不是一个函数。    一个简单的例子:int a;cout    在头文件中typedef为unsigned int,其值在编译时即计算好了,参数可以是数组、指针、类型、对象、函数等。   

2013-07-16 09:49:09 577

转载 complete_and_exit

struct __wait_queue_head { spinlock_tlock; struct list_head task_list; }; typedef struct __wait_queue_head wait_queue_head_t; struct completion { unsigned int done; wa

2013-07-15 11:24:24 1753

转载 android Wifi/LCD/Camera调试总结

http://www.360doc.com/content/11/1125/17/8157643_167337011.shtml

2013-07-11 15:01:04 895

原创 LCD 显像原理

LCD的显像原理,是由面板(panel)上每一个具有不同色彩与灰阶的像素来构成画面.       每个像素的灰阶与色彩,则是利用像素中液晶分子所透过的光源强弱与颜色来区分。       液晶(分子)是同时兼具固态晶体化学特性与液态流体流动特性的有机分子,其分子的排列如同固体一般有方向性,而排列的方向则需藉由施加不同电压来改变,当施加电压时,液晶的排列会随着电场的方向扭转排列方向,其行为如同

2013-07-11 14:03:52 1971

转载 linux 下查看cpu位数 内核等参数命令 .

转载自http://blog.csdn.net/sunboy_2050/article/details/6081989linux 下查看cpu位数 内核等参数命令   # uname -aLinux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux(查看当前操作

2013-06-27 17:30:26 823

原创 unix copy_file_io souce code

/**1-3-copy_file_io.c**/#include int main(){ int c = 0;  while((c = getc(stdin)) != EOF)  if(putc(c, stdout) == EOF)   printf("output error!\n");    if(ferror(stdin))  printf

2013-06-24 20:01:44 520

原创 UNIX copy_file source code

本系列源码均为自己平时学习时,依据《Advanced Programming in the UNIX Environment》书中源码改写过来。    /**1-2-copy_file.c**/ #include #include #define BUFFSIZE 4096int main(){ int n = 0; char buf

2013-06-24 19:41:11 829

原创 Linux驱动之mipi接口的LCD设备添加过程

记录供以后参考用void __init msm_fb_add_devices(void){       int rc = 0;        msm7x27a_set_display_params(prim_panel_name);        if (machine_is_msm8225_xxx()){           if (cpu_is_msm8625q()

2013-06-22 18:15:43 7824

原创 platform_device_add() VS platform_add_devices

platform_device_add() VS platform_add_devices()均在kerne/drivers/base/platform.c中,platform_device_add  : add a platform device to device hierarchyplatform_add_devices : add a numbers of platform

2013-06-22 11:24:21 3268

转载 aboot阶段smem通讯

转自http://blog.csdn.net/newtonnl/article/details/7728577在qualcomm平台做两款lcd兼容过程中,遇到一个问题,aboot启动阶段设置sdo脚读取ic值出现异常。与支持团队确认后,可能是启动阶段射频块的gpio设置导致电平异常不能完全工作。兼容工作只能通过bp端的值传送到aboot阶段。         Moderm端写一些数据结构

2013-06-20 14:22:04 775

转载 Qualcomm Share Memory

QUALCOMM的AP与MODEM之间的share memory通过把共享内存空间分成N个不定长数据块,其中SMEM_HEAP_INFO记录每个数据块的地址信息,是否已经分配等,(只能一个宿主先分配),当然SMEM_HEAP_INFO本身也是一个数据块。各个宿主CPU用这些数据块依照对应的数据结构通信,包括PROC_COMM, smem_find,以及建立在特定数据块上的循环缓冲区smd通

2013-06-20 14:17:40 1806

转载 mipi介绍

MIPI将彻底改变移动产品设计方式 【作者】Prakash Kamath,工程副总裁,Arasan公司 MIPI联盟定义了一套接口标准,把移动设备内部的接口如摄像头、显示屏、基带、射频接口等标准化,从而增加设计灵活性,同时降低成本、设计复杂度、功耗和EMI。  未来的产品都将朝着移动的方向发展,例如智能手机、数码相机、摄像机、平板电脑、媒体播放器、游戏机等,这些产品

2013-06-20 11:07:34 885

转载 linux设备模型--sysfs

1 sysfs初探"sysfs is a ram-based filesystem initially based on ramfs. It provides a means to export kernel data structures, their attributes, and the linkages between them to userspace.” --- documenta

2013-06-18 09:17:06 774

转载 android的wake_lock简介

这里通过一个例子简要分析wake_lock从android应用层到内核的交互过程:Wake Lock是一种锁的机制, 只要有人拿着这个锁,系统就无法进入休眠,可以被用户态程序和内核获得. 这个锁可以是有超时的或者是没有超时的,超时的锁会在时间过去以后自动解锁. 如果没有锁了或者超时了, 内核就会启动休眠的那套机制来进入休眠.(一).内核维护了:1).两个链表,active_

2013-06-14 10:50:39 868

转载 regulator

///*regulator 是驱动中电源管理的基础设施。要先注册到内核中,然后使用这些电压输出的模块get其regulator,在驱动中的init里,在适当时间中进行电压电流的设置.与 gpio 差不多? 一样是基础设施?*///Linux 内核的动态电压和电流控制接口功耗已经成为电子产品设计的首要考虑。//"LDO是 low dropout regulat

2013-06-13 19:51:22 788

翻译 MT(Multi-Touch) Protocol (6)

Event Semantics---------------事件语法 ABS_MT_TOUCH_MAJORThe length of the major axis of the contact. The length should be given insurface units. If the surface has an X times Y resolution, th

2013-05-31 18:02:06 747

翻译 MT(Multi-Touch) Protocol (5)

Event Usage-----------事件用法 A set of ABS_MT events with the desired properties is defined. The eventsare divided into categories, to allow for partial implementation.  The minimum set consist

2013-05-31 17:06:04 831

翻译 MT(Multi-Touch) Protocol (4)

Protocol Example B------------------B类协议例子 Here is what a minimal event sequence for a two-contact touch would looklike for a type B device:B类设备最简单的两点触摸最简单事件序列:   ABS_MT_SLOT 0

2013-05-31 15:48:06 838

翻译 MT(Multi-Touch) Protocol (3)

Protocol Example A------------------A类协议例子 Here is what a minimal event sequence for a two-contact touch would looklike for a type A device:A类设备两点触摸的最简单事件序列:   ABS_MT_POSITION_X x[0]

2013-05-31 15:32:34 803

翻译 MT(Multi-Touch) Protocol (2)

Some devices identify and/or track more contacts than they can report to thedriver.  A driver for such a device should associate one type B slot with eachcontact that is reported by the hardware.

2013-05-31 14:07:49 989

翻译 MT(Multi-Touch) Protocol (1)

Introduction------------介绍 In order to utilize the full power of the new multi-touch and multi-userdevices, a way to report detailed data from multiple contacts, i.e.,objects in direct con

2013-05-30 18:49:35 854

原创 解析init.qcom.wifi.sh

//device/qcom/common/rootdir/etc/init.qcom.wifi.sh//function:# This script will load and unload the wifi driver to put the wifi in# in deep sleep mode so that there won't be voltage leakage.#

2013-05-29 11:51:40 2245

原创 解析init.qcom.sdio.sh

//device/qcom/common/rootdir/etc/init.qcom.sdio.sh//function:# For successful WLAN card detection, WLAN needs SDIO polling turned on.# This script can be used to turn on/off SDIO polling on appr

2013-05-29 11:47:47 1521

原创 cfg80211_init()

/*****************************************************************************/compat-wireless/net/wireless/core.c          cfg80211_init();/*该函数为cfg80211.ko驱动模块的入口接口,下面为其源码*/static int __init

2013-05-29 10:47:49 2598

原创 Call_crda()到cfg80211_init()流程

从cfg80211开始到调用call_crda()的过程call_crda()                                                                                                                        /* Core regulatory hi

2013-05-29 10:33:57 2144 1

原创 wifi启动信息跟踪之CRDA(1)

下面黑体部分均为打印信息:[ 1903.836139] [cpuid: 0] Calling CRDA to update world regulatory domain/*compat-wireless/net/wireless/reg.c: call_crda()*/[ 1903.836296] [cpuid: 0] World regulatory domain update

2013-05-28 18:57:08 3771 1

翻译 WIFI协议(3) Definitions 之WIFI相关定义

下面英文是载自WIFI协议,由于知识欠缺,中文为自己晦涩的理解,仅供参考,欢迎指正,后期自己会不断更正。        Aggregate: A PSDU transported by the PHY with an aggregate attribute indicating that it contains multiple MPDUs.       集成:一个物理层服务数据单元,

2013-05-21 16:57:21 1116

翻译 Linux CRDA(Central Regulatory Domain Agent)

这是一篇介绍CRDA的原文,来自于http://lwn.net/Articles/271037/,这里简单介绍一下。 通过下面的文章,我们可以获知如下信息: 1、CRDA作用: 消除host driver中的冗余regulatory domain code; 提供更新“regulatory rules”的方法或途径;

2013-05-16 19:03:14 3687

原创 802.11三种帧简介

802.11帧主要有三种类型:数据帧控制帧管理帧        1、数据帧:                  它好比802.11中的驮马,负责在工作站之间数据搬运,可能因为所处的网络环境不同而有所差异。        2、控制帧:                               它为数据帧服务,负责区域的清空、信道的获取、载波侦听的维护以及

2013-05-13 14:02:31 2819

原创 android 4.0 WIFI 初始化过程(应用层+框架层)

android 4.0 wifi初始化(应用层 + 框架层)1、在android/frameworks/base/services/java/com/android/server/目录下SystemServer.java   中class ServerThread extends Thread {。。。。。。。。。。。。。。。。。。。。。。。 @

2013-04-28 19:12:52 1662

原创 android 4.0 WIFI工作过程(应用层)

WIFI工作流程(应用层):         wifi初始化---->wifi启动         ---->开始扫描AP---->显示扫描的AP         ---->配置信息         ---->连接AP         ---->获取IP         ---->至此实现wifi基本的网络通信功能

2013-04-28 18:51:00 774

转载 android system wake

本文主体属于转载,额外添加了自己的一些修改,方便学习之用。        Wake Lock是一种锁的机制, 只要有人拿着这个锁,系统就无法进入休眠,可以被用户态程序和内核获得。         这个锁可以是有超时的或者是没有超时的,超时的锁会在时间过去以后自动解锁. 如果没有锁了或者超时了, 内核就会启动休眠的那套机制来进入休眠。         (一).内核维护了如下相关链

2013-04-22 20:34:43 720

原创 Android wifi驱动之earlysuspend睡眠模式

(1)添加头文件:        #include "core.h"       在core.h文件中有:        #ifdef CONFIG_HAS_EARLYSUSPEND              #include         #endif (2)在wifi驱动ath6kl结构体中添加early_suspend结构:        #ifdef CO

2013-04-22 19:43:29 2326

转载 Android Kernel wake_lock analysis

本文主体内容是转载的,并修改了部分的内容。1. Linux kernel wakelock 定义A wake_lock prevents the system from entering suspend or other low power states when active. If the type is set to WAKE_LOCK_SUSPEND, the wake_lock

2013-04-22 19:25:22 1455

转载 android suspend

转自:http://bbs.ednchina.com/BLOG_ARTICLE_1784575.HTM  并附一些个人修改与注释。       在读这篇转载博文前,建议先阅读上一篇的linux suspend文章。       在一个打过android补丁的内核中, state_store()函数会走另外一条路,会进 入到request_suspend_state()中, 这个文件

2013-04-22 15:57:02 1150

转载 Linux Kernel suspend and resume

转自:http://blog.csdn.net/myarrow/article/details/8136109,并在此基础上添加一些注释一、对于休眠(suspend)的简单介绍   在Linux中,休眠主要分三个主要的步骤:   1) 冻结用户态进程和内核态任务   2) 调用注册的设备的suspend的回调函数, 顺序是按照注册顺序   3) 休眠核心设备和使CPU进入休眠态

2013-04-22 15:48:58 1051

单片机实用教程(30章c51练习)

单片机边说边学,从基础开始,深入了解单片机,祝你你学习快乐!

2010-10-21

空空如也

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

TA关注的人

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