Книга: 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. |
Оглавление статьи/книги
Похожие страницы
- Cloning a Reference BSP
- rc.firewall.txt script structure
- The structure
- Structure of the shutdown File
- How Nameservers Store DNS Structure Information
- Perl Variables and Data Structures
- The Structure of a C# Program
- Physical Structure of the File System on the Disk
- Understanding the ext3 File System Structure
- 8.1.4. Module Build Infrastructure
- 16.3.2. Board Information Structure
- 3.1 Structure of a mikroC Program