Nios® V Processor Software Developer Handbook

ID 743810
Date 2/14/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

12.5.3.2. add_class_systemh_line

Usage

add_class_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_class_systemh_line MY_MACRO "Macro_Value";