Symbian3/PDK/Source/GUID-9B52E0C3-9EBB-44C6-A1BF-2F95711FFBA4.dita
author Dominic Pinkman <Dominic.Pinkman@Nokia.com>
Thu, 11 Mar 2010 18:02:22 +0000
changeset 3 46218c8b8afa
parent 1 25a17d01db0c
child 5 f345bda72bc4
permissions -rw-r--r--
week 10 bug fix submission (SF PDK version): Bug 1892, Bug 1897, Bug 1319. Also 3 or 4 documents were found to contain code blocks with SFL, which has been fixed. Partial fix for broken links, links to Forum Nokia, and the 'Symbian platform' terminology issues.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-9B52E0C3-9EBB-44C6-A1BF-2F95711FFBA4" xml:lang="en"><title>Template
Source Code</title><shortdesc>This document discusses the template code from which device drivers
are created.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
<section id="GUID-2AE61413-CECE-4E72-86AA-0DD4FFC60EC3">       <title>Template
source code</title>       <p>To help enable a base port be produced quickly,
Symbian platform provides template source code for drivers for most peripherals.
The template implements a framework and protocols for the type of peripheral;
the base port implementer then supplies additional implementation for the
particular hardware device. For example, for the UART driver, the PDD template
implements the standard hardware abstraction interfaces for serial
communication, such as the <codeph>DComm</codeph> class. It leaves some sections
marked as "TBD", which are specific to the device. Driver developers can start
with these templates and fill in the "TBD" functions to create a basic driver.
If required, additional functionality can then be added to this. </p> <p>The
template drivers are located in the <filepath>base\template\template_variant\specific</filepath> source
directory. The <filepath>template</filepath> directory provides a variant
base port that includes all the drivers required to do the minimal base port
for any variant. </p> <p>Details of the templates for particular drivers are
discussed in the relevant sections of the <i>Base Porting Guide</i>. This
tutorial presents an additional example device driver. </p>     </section>
</conbody></concept>