基于aCoral操作系統(tǒng)設(shè)備驅(qū)動(dòng)模型及USB設(shè)備驅(qū)動(dòng)的設(shè)計(jì)與實(shí)現(xiàn)
發(fā)布時(shí)間:2018-03-28 15:05
本文選題:aCoral 切入點(diǎn):設(shè)備驅(qū)動(dòng)框架 出處:《電子科技大學(xué)》2012年碩士論文
【摘要】:伴隨嵌入式技術(shù)的不斷發(fā)展,嵌入式操作系統(tǒng)也在不斷涌現(xiàn)。對(duì)于非實(shí)時(shí)領(lǐng)域,可以采用Linux和WinCe系統(tǒng),對(duì)于實(shí)時(shí)領(lǐng)域,多采用VxWorks或開(kāi)源的實(shí)時(shí)操作系統(tǒng)。目前開(kāi)源實(shí)時(shí)內(nèi)核的發(fā)展十分迅速,aCoral為項(xiàng)目組自主開(kāi)發(fā)的支持多核并且目標(biāo)定位于強(qiáng)實(shí)時(shí)的操作系統(tǒng)內(nèi)核,它開(kāi)放源代碼,目前已經(jīng)支持FAT文件系統(tǒng)、輕量級(jí)的TCP/IP協(xié)議棧和GUI。 而隨著電子技術(shù)的發(fā)展,新的外部設(shè)備不斷涌現(xiàn)。驅(qū)動(dòng)程序作為底層負(fù)責(zé)與外設(shè)通信的程序的復(fù)雜性也不斷提高。因此,為使aCoral功能更加健全以便被廣泛的使用,需要為它編寫(xiě)更多的驅(qū)動(dòng)程序,同時(shí)還需要為它建立設(shè)備驅(qū)動(dòng)框架。設(shè)備驅(qū)動(dòng)框架能夠使系統(tǒng)的層次結(jié)構(gòu)更清晰,同時(shí)也使驅(qū)動(dòng)程序的開(kāi)發(fā)能夠遵循統(tǒng)一的規(guī)則從而縮短開(kāi)發(fā)周期。 本文分析常見(jiàn)的操作系統(tǒng)驅(qū)動(dòng)模型,可以看出盡管實(shí)現(xiàn)方式各有所長(zhǎng),但設(shè)計(jì)思想和目的均是通過(guò)采用分層結(jié)構(gòu)分解驅(qū)動(dòng)程序的復(fù)雜性,將驅(qū)動(dòng)程序的bug與用戶(hù)程序和內(nèi)核隔離開(kāi)。結(jié)合aCoral內(nèi)核自己的特點(diǎn),,為了保證驅(qū)動(dòng)模型對(duì)內(nèi)核的實(shí)時(shí)性影響盡量減小,同時(shí)也為控制系統(tǒng)整體的復(fù)雜性,提出了一個(gè)適用于aCoral的設(shè)備驅(qū)動(dòng)框架。 考慮到USB總線(xiàn)的通用性,也為了驗(yàn)證模型的通用性,本文在最后介紹了USB總線(xiàn)的協(xié)議和EHCI主控器的設(shè)計(jì)規(guī)范,并說(shuō)明為aCoral實(shí)現(xiàn)的USB協(xié)議棧模塊和主控器驅(qū)動(dòng)程序。
[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.
【學(xué)位授予單位】:電子科技大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2012
【分類(lèi)號(hào)】:TP368.1
【引證文獻(xiàn)】
相關(guān)碩士學(xué)位論文 前1條
1 殷紹劍;嵌入式多線(xiàn)程遠(yuǎn)程調(diào)試器研究與實(shí)現(xiàn)[D];電子科技大學(xué);2013年
本文編號(hào):1676841
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1676841.html
最近更新
教材專(zhuān)著