基于嵌入式系统的数字相框设计_大学课程设计说明书(编辑修改稿)内容摘要:

device*smdk2440_devices[]_initdata 结构体中添加: amp。 s3c_device_ts, ⑨ 编译配置内核 make menuconfig 配置菜单添加驱动到内核: Device Drivers Input device support [*] Touchscreens * GEC2440 touchscreen input driver Character devices  *GEC2440_ADC 编译内核生成静态驱动模块 make ⑩ 修改 arch/arm/plats3c/include/plat/ 文件 vim arch/arm/plats3c/include/plat/ 添加: 长 春 大 学 课程设计纸 共 页 第 12 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ struct s3c2410_ts_mach_info{ int delay。 int presc。 int oversampling_shift。 }。 void_init 3c24xx_init_touchscreen(struct s3c2410_ts_mach_info*hard_s3c2410_ts_info)。 extern struct platform_device s3c_device_ts。 修改 arch/arm/plats3c24xx/ 文件 vim arch/arm/plats3c24xx/ 在文件后面添加 /*Touchscreen*/ static struct s3c2410_ts_mach_info s3c2410_ts _info。 void_init s3c24xx_init_touchscreen(struct s3c2410_ts_mach_info*hard_s3c2410_ts_info)。 { memcpy($s3c2410_ts_info, hard_s3c2410_ts_info,sizeof(struct s3c2410_ts_mach_info))。 } EXPORT_SYMBOL(s3c24xx_init_touchscreen)。 struct platform_device s3c_device_ts={ .name=” s3c2410_ts” , .id=1, .num_resources=ARRAY_SIZE(s3c_adc_ resource), . resource = s3c_adc_ resource, .dev={ .platform_data=$s3c2410_ts_info, 长 春 大 学 课程设计纸 共 页 第 13 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ } EXPORT_SYMBOL(s3c_device_ts)。 在根文件系统中建立相关设备节点 : mkdir /dev/input mknod/dev/input event0 c 13 64 mknod /dev/input/mouse0 c 13 32 提示“ „ Readonly file system” ,或者 ” mkdir:cannot create directory ‘ /dev/input’ :File exists” . 解决方法如下 : chmod 777/dev/ mount – o remount rw/ 基于 qt3 平台的应用程序 9 长 春 大 学 课程设计纸 共 页 第 14 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ (9)驱动的移植 1关于 USB驱动移植 ①修改 arch/arm/machs3c2410/ 文件 includemach/ includeplat/ includelinux/ includelinux/ Static struct s3c2410_hcd_info usb_gec2410_info={ .port[0]={ .flags=S3C2410_HCDFLG_USED, }。 Int usb_gec2410_init(void){ Unsigned long upllvalue=(0x7812)|0xo24)|(0x03)。 Prink(“ USB Control,(c)gec2410\n” )。 =amp。 usb_gec2410_info。 while(upllvalue!=_raw_readl(S3C2410_UPLLCON)){ _raw_write(upllvalue,S3C2410_UPLLCON)。 mdelay(1)。 } }return 0。 } 2在 static void_init smdk2410_map_io()函数中添加 usb_sbc2410_init()函数usb_getc2410_init(); 3内核配置 支持热插拔 长 春 大 学 课程设计纸 共 页 第 15 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ General setup [*]Configure standard kernel features(for small systems) *Support for hotpluggable devices 让内核支持 USB 设备 Device drivers Block devices *Low Performance USB Block driver SCSI device support * SCSI generic support *Probe all LUNs on each SCSI device USB support *Support for Hostside USB [*]USB device filesystem *USB Mass Storage support *USB Monitor 加入 MSDOS 文件系统和 VFAT 文件系统支持(为适应挂载 U 盘) File systems DOS/FAT/NT Filesystems * MSDOS fs support * VFAT (Windows95) fs support (936) Default codepage for FAT (cp936) Default iocharset for FAT 使能 (DOS 分区 ) CONFIG_MSDOS_PARTITION File systems Partition Types [*]PC BIOS (MSDOS partition tables) support 添加对中文字体库的支持 File systems 长 春 大 学 课程设计纸 共 页 第 16 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ * Native language support *Simplified Chinese charset(CP936,GB2312) * NLS UTF8 编译 make 五 、 系统测试 1 测试目的 软件测试是软件开发的最后一个阶段 ,测试的目的不是证明所开发的软件没有错误 ,而是尽可能的多发现软件设计开发全周期中各个阶段的错误 , 以便分析错误的性质与位置而加以纠正,纠正过程涉及到更正或重新设计相关的文档活动。 从而避免用户在使用时出现不可预测的异常而导致整个系统崩溃。 测试条件 ( 1) 系统条件 Linux 操作系统 ( 2) 人员选择 单元测试 : 每个模块的设计人员 系统测试: 设计小组的全体成员 验收测试: α测试:在我们设计小组成员的指导下,进行测试 β 测试:完全由不是本小组的人员进行测试 测试方法 采用黑盒测试和白盒测试兼并的测试方法,每当完成一项事件的处理时,便执行程序,进行测试,每完成一个模块的代码,也进行相关的测试,最后,全部代码完成时,进行全面的测试。 4 测试过程 ( 1)文件路径加载问题: QPixmap pixmap; //全局变量 QFileInfoList list。 //全局变量 QString dir=” /home/akaedu/”。 QDir picdir(dir)。 QStringList filters。 长 春 大 学 课程设计纸 共 页 第 17 页 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ 装 ┊ ┊ ┊ ┊ ┊ 订 ┊ ┊ ┊ ┊ ┊ 线 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ Filters” *.jpeg”。 (filters)。 List=()。 QFileInfo (i)。 QString path=()。 (path)。 问题:当 图片显示最后一张图片继续点下一张图片按扭的时候,图片路径是正确的,但窗口不正确。 分析原因:因为 QPixmap pixmap 为全局变量,在图片浏览功能时(path)。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。