Visible to Intel only — GUID: mwh1416946841913
Ixiasoft
Visible to Intel only — GUID: mwh1416946841913
Ixiasoft
8.9.1.2. altera_avalon_jtag_uart.h Defining Macros
- The *_INSTANCE macro performs any required static memory allocation. For drivers, *_INSTANCE is invoked once per device instance, so that memory can be initialized on a per-device basis. For software packages, *_INSTANCE is invoked once.
- The *_INIT macro performs runtime initialization of the device driver or software package.
In the case of a device driver, both macros take two input arguments:
- The first argument, name, is the capitalized name of the device instance.
- The second argument, dev, is the lower case version of the device name. dev is the name given to the component at system generation time.
You can use these input parameters to extract device-specific configuration information from the system.h file.
The name of the header file must be as follows:
- Device driver: <hardware component class>.h. For example, if your driver targets the altera_avalon_uart component, the file name is altera_avalon_uart.h.
- Software packages <package name>.h. For example, if you create the software package with the following command:
create_sw_package my_sw_package
the header file is called my_sw_package.h.
For more information about a complete example, refer to any of the Intel FPGA-supplied device drivers, such as the JTAG UART driver in <Intel FPGA installation>/ip/sopc_builder_ip/altera_avalon_jtag_uart.