- 博客(16)
- 资源 (5)
- 收藏
- 关注
原创 [Android]手机通过USB绑定共享电脑网络
转载请注明http://blog.csdn.net/kondykuang/article/details/8029471一,概述一般情况下,使用USB绑定是让电脑共享手机网络,这次我们反过来。注意只适用于linux系统,windows可以自行研究下。二,实验环境: 通过USB绑定与PC链接成功后,我的IP配置如下: PC: eth0 172.16.9.123 gw
2012-09-28 17:43:58 21051
原创 android USB绑定功能实现(framework)
settings app中点击使能Tether的开关进入到如下函数:TetherSettings.java: private void setUsbTethering(boolean enabled) { ConnectivityManager cm = (ConnectivityManager)getSystemService(Context
2012-05-31 23:19:08 9659 2
原创 [android2.3]GPS启动流程及数据流向分析
GPS启动流程及数据流向分析: 首先在系统init阶段,会通过ServiceManager addService添加很多的Service,这其中就包含LocationService。代码在SystemServer.java中: try { Slog.i(TAG, "Location Manager"); location = new LocationManagerS
2012-03-03 17:26:11 2074 2
原创 S3C 2440 RTC 实时时钟 (miniarm 2440 )
rtc.h #ifndef RTC_H#define RTC_H#include "2440addr.h"//实时时钟 数据 均为BCD编码typedef struct tag_RtcTime{ //year 默认从0x2000开始,如果要设置为2010年 // year 应赋值为0x10; U16 year; char month
2010-01-05 23:13:00 1233
原创 S3C 2440 Uart (miniarm 2440 )
#ifndef UART_H#define UART_H#include "2440addr.h"void UartInit(u32 baud);void UartSendChar(u8 c);void UartSendStr(char *str);char UartGetChar(void);void UartPrintf(char *fmt,...);
2010-01-05 23:11:00 865
原创 S3C 2440 GPIO (使用miniARM 2440)
#ifndef LDE_H#define LED_H#include "2440addr.h"//GPB 有 PIN0 到 PIN10 共11个引脚//rGPBCON 寄存器的每两个位控制一个IO的输入输出方向//其中00表示输入// 01表示输出// 10为使用第二功能// 11为出厂保留//**********************
2010-01-05 23:04:00 1189
原创 WINDOWS API &&VC SKILL(一)
常用 WINDOWS API 1,显示/隐藏任务栏 ::ShowWindow(::FindWindow("Shell_TrayWnd",NULL),SW_SHOW);// show ::ShowWindow(::FindWindow("Shell_TrayWnd",NULL),SW_HIDE);//hide 2, 关闭计算机 BOOL CShutCompu
2009-10-03 21:28:00 995
原创 一种编码方法,附解码程序
面试时遇到的一道题目,编码与解码后数据如下:38 1 21 2 31 3 22 4 36 5 23 6 32 7 24 8 40 9 25 10 33 11 26 12 37 13 27 14 34 15 28 16 39 17 29 18 35 19 30 201 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2
2009-09-30 21:16:00 841
原创 周立功2010校园招聘(武汉)
第一次参加招聘,其实我今年刚升大三,听大四的学长说周立功来武汉招聘,还招大三的,说是只要是人才他都要。看来看招聘要求,本来是想报单片机程序员,DSP或者说FPGA研发工程师的,但是一看要求都需要很杂实的模拟电子,数字电子基础,这肯定没戏。又看到前面招软件都工程师的,要求只需要c/c++语言基础,想想我在这方面学都也还可以,于是在招聘会前几天忘周立功公司投来简历,没想到才过三四个小时就打电话来通知我
2009-09-28 17:53:00 4565 2
原创 带波形显示的串口调试工具
最近准备电赛,用vc++开发了一个带波形显示的串口调试工具,可以实时将下位机的数据通过图形界面显示出来,如果下位机外设上有一片高速AD,就可以直接做虚拟的串口示波器了。不过 频率貌似跟不上去。界面如图,
2009-08-07 23:06:00 11899 21
转载 BoundsChecker 内存泄露 检测 简易使用教程
BoundsChecker是一个Run-Time错误检测工具,它主要定位程序在运行时期发生的各种错误。 BoundsChecker能检测的错误包括: 1)指针操作和内存、资源泄露错误,比如:内存泄露;资源泄露;对指针变量的错误操作。 2)内存操作方面的错误,比如:内存读、写溢出;使用未初始化的内存。 3)API函数使用错误。 使用BoundsChecker对程序的运行时错误进行检测,有两种使用模式
2009-06-22 23:26:00 3595
原创 c++ string 类 实现
下面的代码是参考网络上流传的代码加上自己的修改和添加补全而来//string.h#include "iostream"#include#define NULL 0 using namespace std;class String{public: String (); //无参构造函数 String ( c
2009-06-22 23:06:00 1809 3
原创 evc 编程总结
1 为对话框添加菜单,。变量须设置为全局 //先创建一个Command_Bar HWND hwndCB = CommandBar_Create (AfxGetInstanceHandle(), m_hWnd, 1); ///再插入菜单: CommandBar_InsertMenubar (hwndCB, AfxGetInstanceHandl
2009-06-20 20:57:00 3471
原创 c 筛选法求素数【修改】
//筛选法求素数 #include "stdafx.h"#include "memory.h"int main(void ){ int n ; printf("input max num :"); scanf("%d",&n); int i,h,k=0; int nn=n/2; int *p =new int[nn]; int *a =new int
2009-06-20 20:52:00 699
原创 c 螺旋方阵 【原创】
//螺旋方阵#include "stdafx.h"int num=1;int main(int argc, char* argv[]){ int n=5; int i; int x=0,y=0; printf("input n:"); scanf("%d",&n); int **HelixMat; //Dynamic 2 dimension Array
2009-06-20 20:44:00 764
Thinking in embedded(嵌入式编程思想)Thinking in embedded(嵌入式编程思想)Thinking in embedded(嵌入式编程思想)
2009-03-02
scommtest串口程序
2009-01-08
使用Python进行GUI编程
2009-01-08
C++_ A Dialog Programming with the C++ Standard Library.chm
2008-11-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人