Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

BSP Folder Structure

BSP Folder Structure

To increase code reusability, PQOAL-based BSPs feature a common architecture and corresponding folder structure that is consistent across processor families. Due to this common architecture, large portions of the source code can be reused regardless of hardware-specific BSP requirements. Figure 5-3 shows the typical BSP folder structure and Table 5-1 summarizes the most important BSP folders.


Figure 5-3 Folder structure of a typical BSP

TIP

%_TARGETPLATROOT%

You can use the environment variable %_TARGETPLATROOT% in the build window to locate the path of the BSP being used in the current OS design (Open Release Directory in Build Window option on the Build menu in Visual Studio).

Table 5-1 Important BSP folders

Folder Description
Root Folder Contains configuration and batch files. The two most important files for developers are as follows:
? Sources.cmn Contains macro definitions that are common across the entire BSP.
? <BSP Name>.bat Sets the default BSP environment variables.
CATALOG Contains the BSP catalog file in which all the components of the BSP are defined. This file is used in the OS design stage to add or remove BSP features. Chapter 1, "Customizing the Operating System Design," discusses how to manage catalog items.
CESYSGEN Contains the Makefile for the Sysgen tool. Configuring a BSP does requires no changes to this directory.
FILES Contains the build configuration files, such as .bib, .reg, .db, and .dat files.
SRC Contains the platform-specific source code that you must adapt according to the PQOAL model, which divides the code between platform-specific and common components per CPU type.
COMMON Exists under the Platform directory and contains most of the BSP source code. It consists of a common set of processor specific components. The BSP links to libraries in this folder, generated during the build process. These are libraries for processor-based peripherals as well as processor-specific OAL parts. If the hardware uses a CPU from the family of supported processors, then most of these libraries can be reused without modification.

Оглавление книги

Оглавление статьи/книги

Генерация: 1.301. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз