自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

quanguoheme的专栏

主攻嵌入式软件开发方面

  • 博客(142)
  • 资源 (8)
  • 收藏
  • 关注

原创 how to print picture

private class BmpThread extends Thread { public BmpThread() { } public void run() { super.run(); try { Resources r = getResources(); // 以数据流的方式读取资源 InputStream is = r.open

2017-08-01 12:37:50 515

转载 ubuntu wubi.exe 直接加载下载好的 amd64.tar.xz

D:\ubuntu>wubi.exe --dimagepath=d:\ubuntu\ubuntu-12.10-wubi-amd64.tar.xz

2016-07-31 16:46:09 510

原创 等待的

void as3911SetFrameDelayTime(u32 frameDelayTime){ u16 gptValue; as3911FrameDelayTime = frameDelayTime; /* Start GPT Timer only with start command */ as3911ModifyRegister(AS3911_REG_

2014-11-10 15:26:50 694

转载 .gitignore 无法忽略文件的解决方法

在 rails 的專案內設定 .gitignore ,忽略掉 config/database.yml ,但是卻一直出現在 changed status 上。這問題以前遇過一次,但是忘了記錄下怎麼解決,這次來寫解法。reference:http://stackoverflow.com/questions/3296739/git-not-ignoring-certain-xcode

2014-05-08 15:44:40 994

原创 最简单的应用程序makefile

CROSSCOMPILE := arm-linux-CFLAGS := -Wall -O2 -cCFLAGS += -I$(PWD)/includeLDFLAGS := -lm -lfreetypeCC := $(CROSSCOMPILE)gccLD := $(CROSSCOMPILE)ldOBJS := main.o \ display/disp_manager

2014-03-13 16:58:35 802

原创 nano编辑器的使用

^G表示同时按下ctrl和g(F1)表示按(F1)也是一样的 M-O表示使用alt+O^O ==(F3) Write the current file to disk == ^O WriteOut保存然后回车就保存了

2014-03-13 11:40:22 732

转载 LINUX 看门狗

先要编写看门狗程序program.sh,内容如:#!/bin/bash#注:本脚本需要以超级用户身份运行。# 监测的时间间隔,秒计INTERVAL=60# 重启时间间隔INTERVALRESTART=1#==================================================================PROGRA

2014-03-04 00:06:25 1232

原创 Linux 进程间通信 (IPC) // 消息队列

#include #include #include #include #include #include #include #include struct my_msg_st{    long int my_msg_type;char some_text[BUFSIZ];};int main(void){

2014-02-28 10:57:47 738

原创 Linux 进程间通信 (IPC) //共享内存

#include #include #include #include #include #include #include #include "shm_com.h"int main(void){    int running=1;void *shared_memory=(void *)0;struct shared_use_st *shar

2014-02-28 10:56:53 684

原创 Linux 进程间通信 (IPC) //信号

#include #include #include /*自定义信号处理函数*/void my_func(int sign_no){if(sign_no==SIGBUS)printf("I have get SIGBUS\n");}int main(){printf("Waiting for signal SIGBUS \n ");/*注

2014-02-28 10:55:39 678

原创 Linux 进程间通信 (IPC) //管道

//消息队列1//信号量4//管道#include #include #include #include #include #include int main(){ int pipe_fd[2]; pid_t pid; char buf_r[100]; char* p_wbuf; int r_num; memset

2014-02-28 10:54:40 734

转载 【入门】用Linux中man命令查询C函数

大家都知道在Unix/Linux中有个man命令,可以查询常用的命令,函数。可是对于我们这样只知道用"man 函数名"来查询的人来说,会遇到很多问题,比如:      man read,我想看的是ANSI C中stdio的read函数原型和说明,没想到出来的确是BASH命令的说明,这是怎么回事呢?       原来read本身是man命令的一个参数,这样输入man就会以为你

2014-02-28 09:53:33 823

原创 谁决定.ko文件的名称?

一直认为有一个xx.ko 那么必然存在一个xx.c文件.但是这个结论是错的.ifneq ($(KERNELRELEASE),)#obj-m := aadev.owl12xx_sdio-objs = aadev.oobj-m += wl12xx_sdio.oelse KDIR := /quck/uboot/myandroid_boundar

2014-02-27 14:14:18 1196

原创 学习国嵌实验手册

///////////////////////////////////void *thread(void *str);    pthread_t pth;/*创建线程并执行线程执行函数*/    int ret = pthread_create(&pth, NULL, thread, NULL);/*线程处理函数pthread_cleanup_push / pthrea

2014-02-12 11:30:18 952

原创 linux Printk打印级别

Printk打印级别  2009-11-26 19:29:26|  分类: Linux设备驱动|举报|字号 订阅函数printk的使用方法和printf相似,它用于内核打印消息。printk根据日志级别(loglevel)对消息进行分类。日志级别用宏定义,日志级别宏展开为一个字符串,在编译时由预处理器将它和消息文本拼接成一个字符串,因此print

2014-01-22 11:18:20 1194

原创 linux内核启动流程分析

配置内核的结果是,生成一个.config文件,该文件又自动生成一个include/config/auto.conf和include/linux/autoconf.h,其中后者给C的源代码使用,会包含在C源码代码中;前者被顶层的makefile包含,给子目录的makefile使用。这一点可以通过查找其中某一项模块来跟踪。本节:子目录的makefile;架构相关的makefile(

2014-01-21 14:43:30 763

原创 4种启动Linux内核方法----mini2440

1:randisk方式启动内核.Kernel command line: "initrd=0x32000000,0x200000 root=/dev/ram rw console=ttySAC0 mem=64M "boot cmd:tftp 31000000 uImage ; tftp 32000000 ramdisk.gz; bootm 310000002:initr

2014-01-15 18:16:27 1007

原创 3个重要的makefile函数, uboot是怎么进入各个源码make的

3个重要的makefile函数,   1,  wildcard使用:SRC = $(wildcard *.c ./foo/*.c) 搜索当前目录及./foo/下所有以.c结尾的文件,生成一个以空格间隔的文件名列表,并赋值给SRC.当前目录文件只有文件名,子目录下的文件名包含路径信息,比如./foor/bar.c。 2、notdir使用:S

2014-01-14 11:46:01 743

原创 伟东山学习--1--内核makefile,启动过程.

--------------------/arch/arm/Makefile-----------------# Convert bzImage to zImagebzImage: zImagezImage Image xipImage bootpImage uImage: vmlinux$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACH

2014-01-10 00:17:58 851

原创 android主板笔记-2014-01-09

---------------------------------android主板笔记-2014-01-09 ---------------------------------------------------------------------1:使用同样的 uboot-sabrelite.接 ayang的板子,没有问题,串口可以使用,但是接开发板,只能看到串口输出,不能输入.

2014-01-09 12:20:46 1360 1

转载 Ubuntu本地源制作与本地源的维护

Ubuntu本地源制作与本地源的维护时间:2012-05-26来源:Linux社区 作者:铁名  1、制作软件源  使用Ubuntu一段时间的人都应该知道,所有从软件仓库中安装的软件包都会在本地的。  /var/cache/apt/archives  中进行缓存。而且每次安装完Ubuntu,重新上网安装中文语言包是个非常麻

2014-01-07 15:14:03 823

原创 git中:分区格式问题, 换行符的问题 文件权限问题

http://blog.sina.com.cn/s/blog_96ae64bd0101hfdf.html换行符的问题 autocrlf and safecrlfWindows(\r\n)、Linux(\n)和MacOS(\r)三个主流系统的换行符各不相同,这样在跨平台合作的时候就容易出现换行符的问题。Git提供了 autocrlf 和 saf

2014-01-04 12:14:38 1022

原创 git 关键词 常用命令

2.3初始化新仓库 git init从现有仓库克隆  git clone git://github.com/schacon/grit.git检查当前文件状态 git status跟踪新文件git add README忽略某些文件cat .gitignore# 此为注释 – 将被 Git 忽略*.a       # 忽略所有 .a 结尾的文件!lib.a

2014-01-02 11:46:44 1189

原创 Makefile之wildcard

例子:建立一个测试目录,在测试目录下建立一个名为sub的子目录$ mkdir test$ cd test$ mkdir sub在test下,建立a.c和b.c2个文件,在sub目录下,建立sa.c和sb.c2 个文件建立一个简单的Makefilesrc=$(wildcard *.c ./sub/*.c)dir=$(notdir $(src))ob

2013-12-31 11:54:35 754

转载 关于pkg-config和libtool的相关知识链接 200

http://www.chenjunlu.com/2011/03/understanding-pkg-config-tool/在编译一些软件的是后通常会产生一些后缀为“.pc”和“.la”的文件,对于linux的初学者来说可能会有点困惑,特别是做嵌入式的初学者会想:“那玩意是什么?需要拷贝到目标板上吗??”在交叉编译这种库文件的时候我也有这样

2013-12-30 17:14:29 831

原创 工作中碰见的各种奇怪的c语言

----------------------1---------------------------------------------#include#define __clk_get(clk) ({ 1; })void main(){ char cl; cl=1; printf("ddddd\n"); if (cl && !__clk_get(cl)) { printf

2013-12-27 17:12:10 591

原创 三极管NPN PNP

在pnp三极管中,就是2440输出0时, p比n高的时候,三极管导通。 如果2440输出1,n比p高的时候,三极管阻塞。在npn三极管,2440输出0,三极管阻塞。 2440输出1,三极管导通。上拉电阻和下拉电阻就是用于给悬空的引脚一个确定的状态。

2013-12-26 21:02:32 1061

原创 git 服务器以及ssh密钥公钥

------------------------------------------关键词---------------------------------------RD_H_02/HKBDM ssh [email protected] id_rsa.pub [email protected]:/home/HKBDMcat id_rsa.pub >> .ssh/auth

2013-12-24 12:01:32 2899

原创 android 4.3关键词

=====================sudo add-apt-repository ppa:eugenesan/java sudo apt-get purge openjdk* sudo apt-get update echo 'y' | sudo apt-get install sun-java6-jdk echo 'y' | sudo apt-get dis

2013-12-20 09:23:55 956

原创 要做的 2013-12-27

1:参考这个,学习,android 的makefilehttp://www.360doc.com/userhome.aspx?userid=9171956&cid=952.学习百问王的视频, usbwifi 视频模块. usbwifi模块3:mini2400开发板类型的彩屏机.   c# ,4.串口修改,android43下载, sd卡修改.

2013-12-12 16:02:11 779

原创 Linux链表关键词 和 原理

----------------------------------------关键词 --------------------------------------------------------------------------------------------------------//1,定义,并分配一个链表头.struct stdio_dev { int flags;

2013-12-12 14:31:24 806

原创 拥有者和组别

查看用户的所属组别.和文件的的所属的组别.hkbdm@ubuntu:/media/57f8f4bc-abf4-655f-bf67-946fc0f9f25b/etc/wifi$ ls /dev/ttyS0 -lcrw-rw---- 1 root dialout 4, 64 Dec  9 16:40 /dev/ttyS0//组别为dialout 拥有者为root1.由于tty属

2013-12-11 11:18:57 1154

转载 grep的用法

首先创建我们练习grep命令时需要用到的demo文件demo_file。$ cat demo_fileTHIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.this line is the 1st lower case line in this file.This Line Has All Its First Character Of The Wo

2013-12-09 18:11:40 593

原创 android 关键词

Building uboot Images $ cd ~/ android-imx6-r13.3/bootable/bootloader/uboot-imx $ export ARCH=arm $ export CROSS_COMPILE=~/android-imx6-r13.3/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eab

2013-12-06 10:06:50 1172

原创 uboot-boundary-13-12-05 分析

/* Automatically generated - do not edit */#define CONFIG_IMX_CONFIG board/boundary/nitrogen6x/nitrogen6q.cfg#define CONFIG_MX6Q 1#define CONFIG_DDR_MB 1024#define CONFIG_SYS_ARCH  "arm"#def

2013-12-05 12:00:14 716

原创 input 子系统

--------------------------------------------------------------------------------------------------------------------------------关于  事件类型,代码,已经报告的值初始化的时候:button_dev->evbit[0] = BIT_MASK(EV_KEY)

2013-12-01 22:16:45 660

原创 好c源码 [已删除]

1:关于结构体初始化struct nand_ecclayout { uint32_t eccbytes; uint32_t eccpos[128]; uint32_t oobavail; struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES];};static struct nand_ecclayout nand

2013-11-08 14:16:55 1097

原创 4g08 Linux笔记

问题1:关于地址划分4g08是 ,512mb  , = 4096块,    每块64页, 每页2048字节+16*4空闲区域,,        Page = block         page = sector/4;data_addr = 512 *(sector%4);sector地址//单位为512字节.一个页有2048+32字节, 所以一个页有4个sectcor.

2013-11-08 12:14:23 638

原创 热插拔

当系统配置发生变化时,当移动kobject时,一个通知会从内核空间发送到用户空间.这就是热插拔事件.热插拔事件回到udev或mdev被调用.问题为什么会被调用?kset结构体中有一个uevent_ops ;这个叫处理热插拔事件的操作集合.

2013-11-05 19:05:55 808

原创 usb驱动-1-usb结构,协议

usb 2.0  60Mbyte/susb 3.0   600Mbyte/susb 4根线, 最多挂载128个设备.usb: 根hub , 广义上讲,usb hub也是一种设备. 1)usb设备逻辑结构usb设备逻辑结构:设备,配置,接口,端点,4个层次.设备有1个或多个配置,配置有1个或多个接口,接口有1个或者多个端点.usb设备不同的配置使设备表现不同的功能组合

2013-11-01 01:17:57 715

source insight 主题包

使用方便,解压rar后, 双击*.dprf 文件 ,即可安装主题包.如果想恢复.点击backup里面的*.dprf文件即可恢复.

2014-04-25

source insight 中C.tom文件示例

source insight C.tom 示例使用方法参考http://blog.csdn.net/aquakguo0he1/article/details/7493984

2013-11-08

libGL.so.1.2

libGL.so.1.2 come from libgl1-mesa-glx:i386 you can get it use:sudu apt-get install libgl1-mesa-glx:i386 .but this commamd is bad. android ubuntu12.04

2013-08-06

repo android tool

repo is a tool, can be used to download android source from google. you can create the tool by command:curl * GPL * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details.

2013-08-04

arm_ucos_1.161

arm_ucos_1.161 代码 要的 下 老子 没积分了 郁闷

2009-05-22

ucos+arm9应用

ucos+arm9应用ucos+arm9应用

2009-05-22

VS2.6.5改名解锁补丁(可以改等级)

VS2.6.5改名解锁补丁 使用方法 解压 有vs启动魔兽 运行该程序 即可

2009-05-22

j2me手机游戏5子棋

里面是 游戏的代码 但是3个图片传不上,所以请你自己做个图片 但是名字必须跟我的代码中名字一样,下面是图片的代码 Image.createImage("/ground.png"); Image.createImage("/black.png"); Image.createImage("/white.png");

2009-01-04

空空如也

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

TA关注的人

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