Chinaunix首页 | 论坛 | 博客
  • 博客访问: 29930820
  • 博文数量: 230
  • 博客积分: 2868
  • 博客等级: 少校
  • 技术积分: 2223
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-08 21:48
个人简介

Live & Learn

文章分类

全部博文(230)

文章存档

2022年(2)

2019年(5)

2018年(15)

2017年(42)

2016年(24)

2015年(13)

2014年(1)

2012年(5)

2011年(58)

2010年(56)

2009年(9)

我的朋友

发布时间:2015-08-27 11:49:24

#include <QtDebug> #include <QFile>......【阅读全文】

阅读(3075) | 评论(0) | 转发(1)

发布时间:2015-08-27 10:20:11

<span style="color:#666666;font-family:宋体, Arial;line-height:26px;white-space:normal;background-color:#FFFFFF;">&nbsp;因为需要读取配置文件,我的配置文件采用xml;因此编写了使用qt读取xml文件内容的代码,xml文件</span><br style="color:#666666;font-family:宋体, Arial;line-height:26px;white-space:normal.........【阅读全文】

阅读(1538) | 评论(0) | 转发(1)

发布时间:2015-08-27 10:18:09

<p style="color:#333333;font-family:Arial;font-size:14px;line-height:26px;white-space:normal;background-color:#FFFFFF;">通常,为了保存各种系统配置,我们可以通过写注册表或者写ini文件的方式来进行。这里,我就来举例说明如何用qt来实现ini文件的写入和读取。</p><p style="color:#333333;font-family:Arial;.........【阅读全文】

阅读(7998) | 评论(0) | 转发(1)

发布时间:2015-08-19 23:11:52

<p style="color:#333333;font-family:tahoma, 宋体;font-size:14px;line-height:22px;text-align:justify;white-space:normal;background-color:#FAFAFC;">#include &lt;QtGui/QApplication&gt;<br />#include "icon.h"<br />#include&lt;QTextCodec&gt;<br />#include&lt;QFont&gt;<br />#include&lt;QColor&gt;int.........【阅读全文】

阅读(1400) | 评论(0) | 转发(1)

发布时间:2015-08-19 23:03:04

<p style="margin:12px auto;font-size:14px;white-space:normal;background-color:#FFFFFF;line-height:25px;color:#333333;font-family:Georgia, 'Times New Roman', Times, sans-serif;">在Qt中使用定时器有两种方法,一种是使用QObiect类的定时器;一种是使用QTimer类。定时器的精确性依赖于操作系统和硬件,大多数平.........【阅读全文】

阅读(1149) | 评论(0) | 转发(1)
给主人留下些什么吧!~~

config20102009-11-19 19:38

外设fpga做的8k的memory,用arm9去读写它,在linux2.6系统下;这样做对吗? 实际地址映射到虚拟内存中,用得到的虚拟地址去读写。 地址总线:a1-a14 数据总线:d0-d15 #define FPGA_BASE_ADDR (0x18000000)//片选为nGCS3 #define BWSCON (0x48000000) #define BANKCON3 (0x48000010) #define IP_SIZE (0x1FFF)//13根地址线8K的物理空间 static void *bwscon,*bankcon3,*fpga_base_addr; bwscon = ioremap_nocache(BWSCON,0x0000004); bankcon3 = ioremap_nocache(BANKCON3,0x0000004); fpga_base_addr = ioremap_nocache(FPGA_BASE_ADDR,IP_SIZE); writel(readl(bwscon)|0xD000,bwscon); writel(0x7FFC,bankcon3); for(i=0;i

回复  |  举报
留言热议
请登录后留言。

登录 注册