Specifications
type, integer numbers with or without a 0x prefix for the hex_number type, numbers with decimals for
float_number and double_number types, or an arbitrary string of text for quoted and unquoted string
setting types. For string types, if the value contains any white space, you must enclose it in quotation
marks.
description—Descriptive text that is inserted along with the setting value and name in the summary.html
file. You must enclose the description in quotation marks if it contains any spaces. If the description
includes any special characters (such as quotation marks), you must escape them with the backslash (\)
character. The description field is mandatory, but can be an empty string ("").
create_driver
Usage
create_driver <name>
Options
• <name>: Name of device driver.
Description
This command creates a new device driver instance available for the Nios II SBT. This command must
precede all others that describe the device driver in its Tcl script. You can only have one create_driver
command in each Tcl script. If the create_driver command appears in the Tcl script, the
create_sw_package and create_os commands cannot appear.
The name argument is usually distinct from all other device drivers and software packages that the SBT
might locate. You can specify driver name identical to another driver if the driver you are describing has a
unique version number assignment.
If your driver differs for different operating systems, you need to provide a unique name for each BSP
type.
This command is required, unless you use the create_sw_package or create_os commands, as
appropriate.
create_os
Usage
create_os <name>
Options
• <name>: Name of operating system (BSP type).
Description
This command creates a new operating system (OS) instance (also known as a BSP type) available for the
Nios II BSP tools. This command must precede all others that describe the OS in its Tcl script. You can
only have one create_os command in each Tcl script. If the create_os command appears in the Tcl
script, the create_driver or create_sw_package commands cannot appear.
The name argument is usually distinct from all other operating systems that the SBT might locate. You
can specify an OS name identical to OS if the OS you are describing has a unique version number
assignment.
NII5V2
2015.05.14
create_driver
15-103
Nios II Software Build Tools Reference
Altera Corporation
Send Feedback