Nios® II Software Developer Handbook

ID 683525
Date 8/28/2023
Public
Document Table of Contents

16.5.3.6. add_systemh_line

Usage

add_systemh_line <sw> <name> <value
  • <sw>: The software (OS) that the system.h text is associated with
  • <name>: Name of macro to write into system.h (left-hand side of #define)
  • <value>: Name of value to assign to macro in system.h (right-hand side of #define)

Description

Adds a line of text to the system.h file. The <sw> argument is the name of the software type (typically an operating system name) that the system.h text applies to. In the context of an operating system Tcl script, the name in the create_os <name> command must be used. The text is a name-value pair that creates a macro (#define statement) in the system.h file.

Note: This command can only be used by Tcl scripts that are registered to run at BSP generation time by an operating system.
add_systemh_line UCOSII OS_TICKS_PER_SEC 100