摘要
随着实时操作系统在工业领域的深入应用,硬件设备的实时驱动程序已逐渐成为了开发人员关注的焦点。掌握实时驱动的设计方法,能够从一定程度上解决由于设备实时驱动问题给实时应用在产品选型和功能实现等方面带来的不便。介绍了QNX下PCI总线设备的实时驱动的开发流程,并以某PCI设备为例,给出了实时驱动设计中包括定位设备、获取总线信息、地址映射、初始化配置以及伺服中断等功能的具体实现,最后将该驱动应用到某QNX目标机系统中,经过试验验证取得了很好的应用效果。
With the real-time operating system used widely in industrial field, the real-time driver of hardware gradually becomes the focus of the developers. The inconvenience of product selection and function realization can be solved at a certain extent when tile method of designing real-time driver has been mastered. It introduces the developing flow of PCI bus driver in QNX environment. Then the following functions of real-time driver design are explained including finding device, getting bus message, mapping address, initial configuration, serving interrupt and so on. At last,the real-time driver application in a certain QNX target system proves its advantage.
出处
《电子设计工程》
2011年第8期54-56,59,共4页
Electronic Design Engineering