摘要
以TMS320DM642芯片为例,介绍了一种基于DSP/BIOS类/微型驱动模型编写视频驱动程序的方法。在类/微型驱动模型中,通过将驱动模型分为与硬件无关和与硬件相关的两层,使驱动程序的编写更为简化。应用程序通过调用类驱动的函数来间接调用微驱动函数,进而达到控制外部设备的目的。与传统的软件开发相比较,基于两层的驱动模型提高驱动程序的开发效率,增加了代码的兼容性和可移植性。
This paper takes TMS320DM642 DSP for example and introduces a method of programming the device driver, which based on DSP/BIOS Class/Mini driver model. The Class/Mini driver model is divided into two layers. One is device - independent layer and the other is device - specific layer. This architecture makes it easier to program the device driver. The application uses class driver API to call the mini driver function indirectly in order to control the peripheral device. Compared with the traditional software development,the driver development based on the two -layer device driver model improves efficiency and increases compatibility and nortability.
出处
《现代电子技术》
2008年第15期174-177,共4页
Modern Electronics Technique