diff -r 578be2adaf3e -r 307f4279f433 Adaptation/GUID-67CFF27B-55AF-42AC-95AF-E71A7C54039E.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Adaptation/GUID-67CFF27B-55AF-42AC-95AF-E71A7C54039E.dita Fri Oct 15 14:32:18 2010 +0100 @@ -0,0 +1,67 @@ + + + + + +Sample +Device DriversThis document describes the steps and options for coding a device +driver, and how to use APIs to access the services provided by the Symbian +platform kernel. +

Illustrations of the use of APIs are taken from a number of example device +drivers. These are summarised below. All of the drivers implement support +for serial communications over a UART. They are designed to show a number +of different implementation techniques.

+ + + + +

Name

+

Key functionality

+
+ +

exdriver_pio

+

Shows a simple driver running on a kernel DFC thread. It polls for +data using a timer.

Timers discusses +timers in detail.

+
+ +

exdriver_int

+

Illustrates the use of interrupts and asynchronous request handling.

Asynchronous Requests describes +how to implement handling of asynchronous requests.

Interrupt +Service Routine (ISR) describes how to write ISRs to handle interrupts +from hardware devices.

+
+ +

exdriver_dma

+

Illustrates the use of DMA (Direct Memory Access).

DMA describes how +to use DMA for fast copying of data from memory to memory, and between memory +and peripherals.

+
+ +

exdriver_chnk

+

Illustrates shared chunks and synchronization in a multi-thread +context.

Shared +Chunks describes how to share data efficiently without the overhead +of memory copy operations.

+
+ +

exdriver_sync

+

Illustrates synchronous request handling, and the use of the DLogicalChannelBase base +class for LDDs.

User +Requests and Synchronisation discusses the options for how LDDs can +handle requests.

+
+ + +
+

The source code for the example device drivers is delivered as part of +the Symbian platform source code on kits, using the directory structure described +previously in the Source +Directory Structure section.

+
\ No newline at end of file