Specifications

set_module_assignment embeddedsw.CMacro.BAUD_RATE \
[get_parameter_value BAUD_RATE_PARAM]
Generated Macro in system.h
Example 13–3. Generated Macro in system.h After Dynamic Reassignment
/* Generated macro in the system.h file after dynamic reassignment */
#define UART_0_BAUD_RATE 15200
For more information about formatting constants, refer to the GNU web page.
Related Information
GCC, the GNU Compiler Collection
For more information about formatting constants, refer to the GNU webpage.
GNU web page
For more information about formatting constants
GCC C/C++ 32-bit Processor Constants
Table 13-1: Examples of How to Format GCC C/C++ 32-bit Processor Constants
C Data Type Examples
boolean (char, short, int) 1, 0
32-bit signed integer (int, long) 123, -50
32-bit unsigned integer (unsigned int, unsigned
long)
123u, 0xef8472a0
64-bit signed integer (long long int) 4294967296LL, -4294967296LL
64-bit unsigned integer (unsigned long long int) 4294967296ULL, 0xac458701fd64ULL
32-bit floating-point (float) 3.14f
64-bit floating-point (double) 2.78, 314e-2
character (char) 'x'
string (const char*) "Hello World!"
Configuration Namespace
You can use the configuration namespace to pass configuration information to embedded software tools.
You can associate configuration namespace assignments with the entire component or with a single
interface.
The assignment name for the configuration namespace is embeddedsw.configuration.<name>. Altera’s
embedded software tools already have definitions for the data types of the configuration names listed in
this section.
NII5V2
2015.05.14
Generated Macro in system.h
13-3
Publishing Component Information to Embedded Software
Altera Corporation
Send Feedback