上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 43 下一页
摘要: 安装软件光盘Windows\install目录下的01.OpenOCD with GUI setup.exe02.yagarto-bu-2.18_gcc-4.2.2-c-c++_nl-1.16.0_gi-6.8.50_20080408.exe03.yagarto-tools-20070303-setup.exejre7使用eclipse调试led程序1 导入光盘示例放入D:\c_porjects2 新建工程3 编译4 调试安装zylinhelp-->install new softwarehttp://opensource.zylin.com/zylincdt1点击debug confi 阅读全文
posted @ 2013-05-22 21:45 retacn_yue 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 构造、析构、赋值运算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){...}};编译器会产生出 阅读全文
posted @ 2013-05-18 23:44 retacn_yue 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 下载安装文件openfire_3_6_4.exespark_2_5_8_exe.exeorg.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\resources\database我们. 阅读全文
posted @ 2013-05-18 09:56 retacn_yue 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 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 hack替换de 阅读全文
posted @ 2013-05-14 21:50 retacn_yue 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 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数据手册:Function1stCycle2ndCycleAccepta 阅读全文
posted @ 2013-05-13 21:05 retacn_yue 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 本地native方法实现步骤1 在java中声明native()方法,然后编译2 用javah生成一个.h文件3 编写包含.h文件的c文件4 编译c文件5 使用编译成功的so文件ndk安装1 下载ndk安装包http://developer.android.com/sdk/ndk/index.html2 将解压的地址写入环境变量PATH3 在命令提示符下输入ndk-build如果弹出如下的错误,而不是说ndk-build not found,就说明ndk环境已经安装成功了Android NDK: Your Android application project path contains sp 阅读全文
posted @ 2013-05-12 13:39 retacn_yue 阅读(144) 评论(0) 推荐(0) 编辑
摘要: DDR15条地址线32k128M*2(20)=2(27)查看6410芯片手册;5.4.3DDR/MOBILEDDRSDRAMINITIALIZATIONSEQUENCE•Programmem_cmdindirect_cmdto‘2’b10’,whichmakesDRAMControllerissue‘NOP’memorycommand.•Programmem_cmdindirect_cmdto‘2’b00’,whichmakesDRAMControllerissue‘Prechargeall’memorycommand.•Programmem_cmdindirect_cmdto‘2’b11’, 阅读全文
posted @ 2013-05-11 14:19 retacn_yue 阅读(668) 评论(0) 推荐(0) 编辑
摘要: 链接地址启动过程示例代码如下:start.S文件.globl_start_start:/*硬件相关设置*/ldrr0,=0x70000000orrr0,r0,#0x13mcrp15,0,r0,c15,c2,4/*关看门狗*/bltest/*位置无关*/ldrpc,=test/*位置相关*/ldrr0,=0x7E00400movr1,#0strr1,[r0]/*设置栈*/ldrsp,=8*1024blmainhalt:bhalttest:movpc,lrLed.c文件voiddelay(){volatileinti=0x1000;while(i--);}volatileinti=0;volati 阅读全文
posted @ 2013-05-05 12:40 retacn_yue 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 串口(UART)DIV_VAL=(PCLK/(bpsx16))−135=115200/66.5/16-1查看芯片手册:GPACON0x7F008000R/WPortAConfigurationRegister0x0000GPA0[3:0]0000=Input0001=Output0010=UARTRXD[0]0011=Reserved0100=Reserved0101=Reserved0110=Reserved0111=ExternalInterruptGroup1[0]0000GPA1[7:4]0000=Input0001=Output0010=UARTTXD[0]0011=Reserved 阅读全文
posted @ 2013-05-04 22:00 retacn_yue 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 12m晶振----->pll------>cpuMux多路选择器Div分频器示例代码如下:汇编实现.globlclock_initclock_init:/*1.设置LOCK_TIME*/ldrr0,=0x7E00F000/*APLL_LOCK*/ldrr1,=0x0000FFFFstrr1,[r0]strr1,[r0,#4] /*MPLL_LOCK*/strr1,[r0,#8] /*EPLL_LOCK*/#defineOTHERS 0x7e00f900@setasyncmode/*当CPU时钟!=HCLK时,要设为异步模式*/ldrr0,=OTHERSldrr1,[r0]bicr1 阅读全文
posted @ 2013-05-04 21:59 retacn_yue 阅读(197) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 43 下一页