Include Paths

This topic describes how to configure include paths to use the DZX SDK with IAR Embedded Workbench.

The software source code within the Embedded SDK is contained within a single source directory. When compiling the software, include paths are used to select the target MCU architecture, MCU peripherals and board support files.

For example, the following include paths are added to the project settings when building an application for the NXP LPC1857 evaluation board. Each of the specified paths are relative to the location of the current project file.

  • $PROJ_DIR$\
    Provides a path to current project (only needed if there is source code within the project directory)
  • $PROJ_DIR$\..\..\..\Source\
    Provides a path to the common source code directory.
  • $PROJ_DIR$\..\..\..\Source\Kernel\Port\ARM\M3\
    Selects the core architecture for the kernel by providing the path to the kernel port.
  • $PROJ_DIR$\..\..\..\Source\MCU\LPC18xx\
    Selects the MCU platform source code by providing the path to the peripheral drivers.
  • $PROJ_DIR$\..\..\..\Source\Demo\LPC1857-MCB\
    Selects the board support code by providing a path to the board drivers.

The include directories can be added within the project options dialog, under the C/C++ Compiler item. The example below shows the include directories for building a project for the NXP LPC1857 evaluation board.