像风一样自由
岳振华 · 共 303 篇文章
面试总结
java 的参数传递 /** * java 参数传递 * * @time 下午8:54:44 * @author retacn yue * @Email zhenhuayue@sina.com */ public class test { /** * @param args */ public static void main(String[] args) { // int a = 0; System.out.println("before change a=" + a); changeInt(a); // 修改后结果 System.out.println("after change a="…
2013-06-18 21:40 · 评论(0)
uboot start.S文件分析
U-boot第一个开始文件arch\arm\cpu\arm1176\start.S start.S文件分析: /* *armboot-StartupCodeforARM1176CPU-core * *Copyright(c)2007 SamsungElectronics * *Copyright(C)2008 *GuennadiLiakhovetki,DENXSoftwareEngineering,<lg@denx.de> * *SeefileCREDITSforlistofpeoplewhocontributedtothis *project. * *Thisprogramisfreeso…
2013-06-03 22:18 · 嵌入式 · 评论(0)
u-boot Makefile 文件分析
Makefile文件分析 # #(C)Copyright2000-2010 #WolfgangDenk,DENXSoftwareEngineering,wd@denx.de. # #SeefileCREDITSforlistofpeoplewhocontributedtothis #project. # #Thisprogramisfreesoftware;youcanredistributeitand/or #modifyitunderthetermsoftheGNUGeneralPublicLicenseas #publishedbytheFreeSoftwareFoundatio;ei…
2013-06-01 21:44 · 嵌入式 · 评论(0)
u-boot mkconfig文件分析
Mkconfig文件分析 #!/bin/sh-e #Scripttocreateheaderfilesandlinkstoconfigure #U-Bootforaspecificboard. # #Parameters:TargetArchitectureCPUBoard[VENDOR][SOC] #@$(MKCONFIG)mini6410armarm1176mini6410samsungs3c64xx #(C)2002-2006DENXSoftwareEngineering,WolfgangDenk<wd@denx.de> # #***定义变量 APPEND=no #Default:Cr…
2013-05-31 21:29 · 嵌入式 · 评论(0)
openJTAG学习笔记二
fedora 下使用openJTAG 1 安装驱动 #[root@localhost eclips_projects]# cp /home/retacn/Desktop/50-ftdi.rules /etc/udev/rules.d/ //查看usb设备 [root@localhost eclips_projects]# ls /dev/ttyUSB* -l 安装minicom [root@localhost eclips_projects]# yum install minicom 使用之前先运行 [root@localhost eclips_projects]# minicom-s 选取…
2013-05-25 20:04 · 评论(0)
openJTAG学习笔记一
安装软件 光盘Windows\install目录下的 01.OpenOCD with GUI setup.exe 02.yagarto-bu-2.18_gcc-4.2.2-c-c++_nl-1.16.0_gi-6.8.50_20080408.exe 03.yagarto-tools-20070303-setup.exe jre7 使用eclipse调试led程序 1 导入光盘示例放入D:\c_porjects 2 新建工程 3 编译 4 调试 安装zylin help-->install new software http://opensource.zylin.com/zylincdt 1点…
c++学习笔记十七
构造、析构、赋值运算 c++会为一个空类声明一个copy构造函数,一个copy assignment操作符和一个析构函数 如果没有声明构造函数,还会生成一个default构造函数 示例代码如下: class Empty{...}; 等同于 class Empty{ //default构造函数 Empty(){...} //copy构造函数 Empty(const Empty& rhs){...} //析构函数 non-virtual ~Empty(){...} //copy assignment操作符 Empty& operator=(const Empty& rhs){...} }; 编译…
2013-05-18 23:44 · c++ · 评论(0)
即时通信学习笔记
下载安装文件 openfire_3_6_4.exe spark_2_5_8_exe.exe org.jivesoftware.smack_3.1.0.jar 源代码下载路径 http://svn.igniterealtime.org/svn/repos/openfire/trunk 搭建openfire服务器 C:\WINDOWS\system32\drivers\etc\hosts文件,增加一新行: 127.0.0.1 cn.yue.com 安装 openfire_3_6_4.exe 创建openfire运行时所需数据库 C:\Program Files\Openfire\resource…
2013-05-18 09:56 · android · 评论(0)
c++学习笔记十六
c with classes 尽量以const enum inline 替换#define 示例代码: #define ASPECT_RATIO 1.653 //不进入记号表(symbol table) 替换为 const AspectRatio 1.653 //进入记号表 定义常量字符串 const std::string authorName("retacn"); class专属常量 示例代码如下: class GamePlayer{ private: static const int NumTurns=5; int scores[NumTurns]; ... }; the enum h…
2013-05-14 21:50 · c++ · 评论(0)
nand flash学习笔记一
Nandflash 原理图上有data0-data7共8个引角 容量为256M*8bit,所以地址位应该有28位,原理图上只有data0-data7,所以需要发出多次地址信号 1命令、地址、数据复用 2地址多次发出 Nandflash与内存不同,不能直接读写,要先发出命令,再发出地址,再读写数据 CLE为高电平data0-data7传输的是命令 ALE为高电平data0-data7传输的是地址 CLE和ALE两者都为低电平时,data0-data7传输的为数据 nWE=0,为低电平时,表示写 Nandflash读取信息 查看K9F2G08U0A数据手册: Function1stCycle2n…
NDK环境搭建学习笔记
本地native方法实现步骤 1 在java中声明native()方法,然后编译 2 用javah生成一个.h文件 3 编写包含.h文件的c文件 4 编译c文件 5 使用编译成功的so文件 ndk安装 1 下载ndk安装包 http://developer.android.com/sdk/ndk/index.html 2 将解压的地址写入环境变量PATH 3 在命令提示符下输入ndk-build如果弹出如下的错误,而不是说ndk-build not found,就说明ndk环境已经安装成功了 Android NDK: Your Android application project path…
2013-05-12 13:39 · android · 评论(0)
DDR学习笔记
DDR 15条地址线32k 128M*2(20)=2(27) 查看6410芯片手册; 5.4.3DDR/MOBILEDDRSDRAMINITIALIZATIONSEQUENCE •Programmem_cmdindirect_cmdto‘2’b10’,whichmakesDRAMControllerissue‘NOP’memorycommand. •Programmem_cmdindirect_cmdto‘2’b00’,whichmakesDRAMControllerissue‘Prechargeall’memory command. •Programmem_cmdindirect_cmdt…
链接地址学习笔记
链接地址 启动过程 示例代码如下: start.S文件 .globl_start _start: /*硬件相关设置*/ ldrr0,=0x70000000 orrr0,r0,#0x13 mcrp15,0,r0,c15,c2,4 /*关看门狗*/ bltest/*位置无关*/ ldrpc,=test/*位置相关*/ ldrr0,=0x7E00400 movr1,#0 strr1,[r0] /*设置栈*/ ldrsp,=8*1024 blmain halt: bhalt test: movpc,lr Led.c文件 voiddelay(){ volatileinti=0x1000; while(…
UART学习笔记
串口(UART) DIV_VAL=(PCLK/(bpsx16))−1 35=115200/66.5/16-1 查看芯片手册: GPACON0x7F008000R/WPortAConfigurationRegister0x0000 GPA0[3:0]0000=Input0001=Output 0010=UARTRXD[0]0011=Reserved 0100=Reserved0101=Reserved 0110=Reserved0111=ExternalInterruptGroup1[0] 0000 GPA1[7:4]0000=Input0001=Output 0010=UARTTXD[0]0…
系统时钟学习笔记
12m晶振----->pll------>cpu Mux多路选择器 Div分频器 示例代码如下: 汇编实现 .globlclock_init clock_init: /*1.设置LOCK_TIME*/ ldrr0,=0x7E00F000/*APLL_LOCK*/ ldrr1,=0x0000FFFF strr1,[r0] strr1,[r0,#4] /*MPLL_LOCK*/ strr1,[r0,#8] /*EPLL_LOCK*/ #defineOTHERS 0x7e00f900 @setasyncmode/*当CPU时钟!=HCLK时,要设为异步模式*/ ldrr0,=OTHERS ldrr…
2013-05-04 21:59 · 嵌入式 · 评论(0)