Datasheet

Creating an Application
3-10 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0064D
4. Click the Preprocessor tab to display a list of predefined macros (Figure 3-11).
Figure 3-11 ARM C compiler preprocessor panel
5. Type
MSC_CLOCK
into the text field beneath the List of #DEFINES and click Add
to define the
MSC_CLOCK
macro. The CodeWarrior IDE adds
MSC_CLOCK
to the List
of #DEFINES. The Equivalent Command Line text box displays the compiler
command-line option required to define
MSC_CLOCK
(Figure 3-12).
Figure 3-12 MSC_CLOCK defined
6. Click Apply to apply your changes, and close the DebugRel Settings panel.
At this point you have defined the
MSC_CLOCK
macro for the DebugRel build target only.
You must also define the
MSC_CLOCK
macro for the Release and Debug build targets if you
want to use them. To select the Release build target:
1. Ensure that the Project window is currently active.
2. Click the Current Target drop-down list to display the list of defined build
targets (see Figure 3-8 on page 3-8).
3. Select Release from the list of build targets to change the current build target.
4. Apply the steps you followed above to define
MSC_CLOCK
the Release build target.