Include Paths
This topic describes how to configure include paths to use the DZX SDK with Keil μVision.
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.
- ..\..\..\Source
Provides a path to the common source code directory.
- ..\..\..\Source\Kernel\Port\ARM\M3
Selects the core architecture for the kernel by providing the path to the kernel port.
- ..\..\..\Source\MCU\LPC18xx
Selects the MCU platform source code by providing the path to the peripheral drivers.
- ..\..\..\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. Select 'Project' from the main menu, or right-click on the project folder then select Options for the project (or Alt + F7). Select the C/C++ tab. The following dialog
will be displayed.
| Loading… |
Clicking the ellipsis button (circled in red above) will open an editor dialog. The example below shows the directories for
building a project for the NXP LPC1857 evaluation board.
| Loading… |