Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Lesson 7: Enhancing Driver Portability

Device drivers help to increase the flexibility and portability of the operating system. Ideally, they require no code changes to run on different target devices with varying communication requirements. There are several relatively straightforward techniques that you can use to make your drivers portable and reusable. One common approach is to maintain configuration settings in the registry instead of hardcoding the parameters into the OAL or the driver. Windows Embedded CE also supports a layered architecture based on MDD and PDD that you can leverage in your device driver design, and there are further techniques that you can use to implement drivers in a bus-agnostic way to support peripheral devices regardless of the bus type to which they are connected.

After this lesson, you will be able to:

? Describe how to use registry settings to increase the portability and reusability of a device driver.

? Implement a device driver in a bus-agnostic way.

Estimated lesson time: 15 minutes.

Оглавление книги


Генерация: 0.114. Запросов К БД/Cache: 0 / 0
поделиться
Вверх Вниз