Specifications
Table 7-4: Data Type Settings
Data Type Setting Value Notes
Boolean
definition
boolean_define_
only
A definition that is generated when
true, and absent when false. Use a
boolean definition in your C source
files with the #ifdef <setting> ...
#endif construct.
Boolean
assignment
boolean A definition assigned to 1 when true, 0
when false. Use a boolean assignment
in your C source files with the #if
<setting> ... #else ... construct.
Character character A definition with one character
surrounded by single quotation marks
(')
Decimal
number
decimal_number A definition with an unquoted,
unformatted decimal number, such as
123. Useful for defining values in
software that, for example, might have a
configurable buffer size, such as int
buffer[SIZE];
Double
precision
number
double A definition with a double-precision
floating point number such as 123.4
Floating point
number
float A definition with a single-precision
floating point number such as 234.5
Hexadecimal
number
hex_number A definition with a number prefixed
with 0x, such as 0x1000. Useful for
specifying memory addresses or bit
masks
Quoted string quoted_string A definition with a string in quotes,
such as "Buffer"
Unquoted
string
unquoted_string A definition with a string not in quotes,
such as BUFFER
Setting Destination Files
The destination argument of add_sw_setting specifies settings and their assigned values. This
argument controls the file to which the setting is saved in the BSP. The BSP generator formats the setting’s
assigned value based on the definition file and type of setting.
NII5V2
2015.05.14
Setting Destination Files
7-25
Developing Device Drivers for the Hardware Abstraction Layer
Altera Corporation
Send Feedback