Nios II Classic Software Developer’s Handbook

ID 683282
Date 5/14/2015
Public
Document Table of Contents

15.3.1. Overview of BSP Settings

A BSP setting consists of a name/value pair.

The format in which you specify the setting value depends on the setting type. Several settings types are supported.

Table 65.  Allowed Formats for each Setting Type
Setting Type Format When Setting Format When Getting
boolean 0/1 or false/true 0/1
number 0x prefix for hexadecimal or no prefix for a decimal number decimal
string Quoted string

Use "none" to set empty string.

In the SBT command line, to specify a string value with embedded spaces, surround the string with a backslash-double-quote sequence (\"). For example:

--set APP_INCLUDE_DIRS \"lcd board\"

Quoted string
Table 66.  BSP Setting Contexts
Setting Context Description
Altera LWHAL Settings available with the Altera Lightweight HAL BSP or any BSP based on it.
Altera HAL Settings available with the Altera HAL BSP or any BSP based on it (for example, Micrium MicroC/OS-II).
Micrium 
MicroC/OS-II Settings available if using the Micrium MicroC/OS-II BSP. All Altera HAL BSP settings are also available because MicroC/OS-II is based on the Altera HAL BSP.
Altera BSP Makefile Generator Settings available if using the Altera BSP makefile generator (generates the Makefile and public.mk files). These settings control the contents of makefile variables. This generator is always present in Altera HAL BSPs or any BSPs based on the Altera HAL.
Altera BSP Linker Script Generator Settings available if using the Altera BSP linker script generator (generates the linker.x and linker.h files). This generator is always present in Altera HAL BSPs or any BSPs based on the Altera HAL.

Do not confuse BSP settings with BSP Tcl commands. This section covers BSP settings, including their types, meanings, and legal values.