Nios® II Software Developer Handbook

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

16.5.3.5. add_module_systemh_line

Usage

add_module_systemh_line <macro-name> <macro-value>

Options

  • <macro-name> : Macro to be added to the system.h file for the generated BSP
  • <macro-value> : Value associated with the macro-name to be added to the system.h file for the generated BSP

Description

This adds a system.h assignment or macro during a driver callback execution. The BSP typically uses this during the generate phase depending on the generator. This command is only valid for a callback script. A callback script is set in the driver's *_sw.tcl file, using the command set_sw_property callback_source_file <filename> .

Example

add_module_systemh_line MY_MACRO "Macro_Value";