AN2616 Freescale Semiconductor / Motorola, AN2616 Datasheet - Page 22

no-image

AN2616

Manufacturer Part Number
AN2616
Description
Getting Started with HCS08 and CodeWarrior Using C
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2616
Adding files to the
project
Header file for demo
board
Add a file to a project
22
NOTE:
Multiple files can be added to a project to allow a program to be split into logical
sections for easier development. As an example, a header file defining the
switches and LEDs for the demo and evaluation boards will be added to the
project to demonstrate the process.
A small header file is created to give more meaningful names to the LEDs and
switches on the demo board for use in the application. Another benefit of using
an application specific header file is that code will be easier to modify for
different devices or applications, if meaningful names are used rather than the
port or pin names; for example, in a real application, LED2 may be the STOP
LED.
The header will work with the demo board and the evaluation board, as only a
subset of the evaluation board is used.
In order to add a new file to a project, the file must exist; therefore, a new file
must be created. To do this:
The new dialog window will appear:
Getting Started with HCS08 and CodeWarrior Using C
1. From the File menu, select “New…”:
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
or press the New
button:
MOTOROLA

Related parts for AN2616