第三组Linu大作业设计报告
软件学院大作业设计报告
课程名称: 嵌入式Linux应用程序开发
题 目: 基于UP-CUP2440平台的驱动程序开发和QT程序开发
专 业: 计算机软件
班 级: 111
姓名 学号:裴 超8000611026 QT设计与设计报告
王国健8000611119 LED驱动
孙风涛8000611005 LED驱动与报告设计
苏慧静8000611033 QT设计
刘玲玲8000611105 设计报告
完成人数: 5
任课教师: 李岚 职称: 副教授
完成时间: 2014年6月11日
目录
目录1
摘要2
Abstract3
任务A(QT)4
1、 在Linux下使用Qt Designer设计QT程序界面(计算器)4
1.1打开Qt-designer,进行GUI界面设计4
1.2退出界面保存为mainwindow.ui4
2、 编译程序,生成可执行代码5
2.1编写mainwindow.cpp、 mainwindow.h、main.cpp5
2.2用qmake -project命令生成文件.pro,用qmake命令生成Makefile文件6
2.3使用make编译生成可执行文件6
3、 编写test.sh配置环境并使计算器可以在液晶屏上显示、操作7
4、 打开超级终端,挂载nfs,执行test.sh文件得到计算器界面。8
任务B(LED驱动)10
1、 实验原理(LED灯控制原理)10
2、实现过程与结果10
2.1、编写基于UP-CUP2440硬件平台的GPIO驱动程序10
2.2、NFS挂载及运行结果11
C总结与感悟13
1、不足和感悟13
2、结语14
D参考文献15
摘要
随着现代化的发展,嵌入式的应用越来越广泛,本次设计我们是在Linux环境下的设计,Linux是一套免费使用和自由传播的类Unix操作系统,是一个基于POSIX和UNIX的多用户、多任务、支持多线程和多CPU的操作系统。它能运行主要的UNIX工具软件、应用程序和网络协议。它支持32位和64位硬件。Linux继承了Unix以网络为核心的设计思想,是一个性能稳定的多用户网络操作系统。
本次设计是基于开发板的设计,运用了虚拟机和超级终端,利用交叉编译,实现电脑模拟与开发板运行双重效果,总体来说有一定的现实意义。
关键字:Linux,驱动设计,QT
Abstract
With the development of modernization, more and more extensive application of embedded, this design is designed in Linux environment, Linux is a Unix operating system which is free to use and free communication, is based on a multi-user, multi task, the POSIX and UNIX operating system support for multiple threads and multiple CPU. It can run the UNIX tool software, applications and network protocols. It supports 32 bit and 64 bit hardware. Linux inherits the design idea of Unix network as the core, is a multi-user network operating system stability.
The final design, the spirit of cooperation in the development of design principles, our group chose is designed according to the task book requirements, is divided