13.12.2012 Views

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

emWin - SEGGER Microcontroller

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

46 CHAPTER Simulation<br />

3.1.2 Using the simulation with the <strong>emWin</strong> source<br />

3.1.2.1 Directory structure<br />

The root directory of the simulation can be anywhere on your PC, for<br />

example C:\Work\<strong>emWin</strong>Sim. The directory structure will appear as<br />

shown to the right. This structure is very similar to that which we recommend<br />

for your target application (see Chapter 3: "Getting Started"<br />

for more information).<br />

The following table shows the contents of the folders:<br />

Directory Content<br />

Doc Contains the <strong>emWin</strong> documentation.<br />

Sample Code examples, described later in this documentation.<br />

Start All you need to create a new project with <strong>emWin</strong>.<br />

Tool Tools shipped with <strong>emWin</strong>.<br />

A new project can be started by making a copy of the Startfolder.<br />

It contains all required files for a new project. Subdirectories<br />

containing the <strong>emWin</strong> sources are in the Start\GUI folder<br />

and should contain the exact same files as the directories of the<br />

same names which are used for your target (cross) compiler.<br />

The files of the GUI subdirectories should not be changed, as<br />

this would make updating to a newer version of <strong>emWin</strong> more<br />

difficult.<br />

The Start\Config directory contains configuration files which<br />

need to be modified in order to reflect your target hardware settings<br />

(mainly LCD-size and colors which can be displayed).<br />

3.1.2.2 Visual C++ workspace<br />

The root directory shown above includes the<br />

Microsoft Visual C++ workspace (Simulation.dsw)<br />

and project files (Simulation.dsp). The workspace<br />

allows you to modify an application program and<br />

debug it before compiling it on your target system.<br />

The directory structure of the Visual C++ workspace<br />

will appear similar to that shown to the right.<br />

Here, the GUI folder is open to display the <strong>emWin</strong><br />

subdirectories. Note that your GUI directory may<br />

not look exactly like the one pictured, depending<br />

on which additional features of <strong>emWin</strong> you have.<br />

The folders Core, Font and DisplayDriver are<br />

part of the basic <strong>emWin</strong> package and will always<br />

appear in the workspace directory.<br />

UM03001 User & Reference Guide for <strong>emWin</strong> V5.18 © 1997 - 2012 <strong>SEGGER</strong> <strong>Microcontroller</strong> GmbH & Co. KG

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!