基于aCoral操作系统设备驱动模型及USB设备驱动的设计与实现
发布时间:2018-03-28 15:05
本文选题:aCoral 切入点:设备驱动框架 出处:《电子科技大学》2012年硕士论文
【摘要】:伴随嵌入式技术的不断发展,嵌入式操作系统也在不断涌现。对于非实时领域,可以采用Linux和WinCe系统,对于实时领域,多采用VxWorks或开源的实时操作系统。目前开源实时内核的发展十分迅速,aCoral为项目组自主开发的支持多核并且目标定位于强实时的操作系统内核,它开放源代码,目前已经支持FAT文件系统、轻量级的TCP/IP协议栈和GUI。 而随着电子技术的发展,新的外部设备不断涌现。驱动程序作为底层负责与外设通信的程序的复杂性也不断提高。因此,为使aCoral功能更加健全以便被广泛的使用,需要为它编写更多的驱动程序,同时还需要为它建立设备驱动框架。设备驱动框架能够使系统的层次结构更清晰,同时也使驱动程序的开发能够遵循统一的规则从而缩短开发周期。 本文分析常见的操作系统驱动模型,可以看出尽管实现方式各有所长,但设计思想和目的均是通过采用分层结构分解驱动程序的复杂性,将驱动程序的bug与用户程序和内核隔离开。结合aCoral内核自己的特点,,为了保证驱动模型对内核的实时性影响尽量减小,同时也为控制系统整体的复杂性,提出了一个适用于aCoral的设备驱动框架。 考虑到USB总线的通用性,也为了验证模型的通用性,本文在最后介绍了USB总线的协议和EHCI主控器的设计规范,并说明为aCoral实现的USB协议栈模块和主控器驱动程序。
[Abstract]:With the continuous development of embedded technology, embedded operating systems are also emerging. For non-real-time areas, we can use Linux and WinCe systems, for real-time areas, At present, the development of open source real-time kernel is very rapid. The project team has developed its own support multi-core and aims at the strong real-time operating system kernel, which is open source. FAT file systems, lightweight TCP/IP protocol stacks and gui. With the development of electronic technology, new external devices are emerging, and the complexity of drivers as the underlying program responsible for communicating with peripheral devices is increasing. Therefore, in order to make aCoral more functional and widely used, More drivers need to be written for it, and a device driver framework is also needed. The device driver framework can make the system hierarchy clearer. At the same time, driver development can follow uniform rules and shorten the development cycle. After analyzing the common operating system driver models, we can see that the design idea and purpose are to decompose the complexity of the driver by using hierarchical structure, although the implementation methods have their own advantages. The bug of the driver is separated from the user program and kernel. According to the characteristics of the aCoral kernel, in order to ensure that the real-time effect of the driver model on the kernel is minimized and the overall complexity of the control system, A device driver framework for aCoral is proposed. Considering the generality of USB bus, and in order to verify the generality of the model, this paper finally introduces the protocol of USB bus and the design specification of EHCI master controller, and explains the USB protocol stack module and main controller driver program implemented for aCoral.
【学位授予单位】:电子科技大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP368.1
【引证文献】
相关硕士学位论文 前1条
1 殷绍剑;嵌入式多线程远程调试器研究与实现[D];电子科技大学;2013年
本文编号:1676841
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1676841.html