Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

where is "alt_avalon_jtag_uart_dev" declared?

When I built "Avanced boot copier.c" in NIOS project, errers were found:

error: `alt_avalon_jtag_uart_dev' undeclared (first use in this function)

error: `the_dev' undeclared (first use in this function)

part of the codes were:

int MyJtagWrite8(const char *buf, int len)

{

alt_fd *the_fd;

alt_avalon_jtag_uart_dev *the_dev;

unsigned int the_base;

alt_u32 control;

alt_u32 wr_fifo_space;

int ret_val;

alt_alarm my_jtag_uart_alarm;

volatile alt_u32 my_jtag_uart_context;

/*

* Look thru the device table to find our device block and extract the base

* address to this STDOUT peripheral.

*

* A big assumption here is that the STDOUT peripheral is a JTAG UART.

*/

the_fd = &alt_fd_list[STDOUT_FILENO];

the_dev = (alt_avalon_jtag_uart_dev *)the_fd->dev; the_base = the_dev->base;

but where is the `alt_avalon_jtag_uart_dev' declared?I cound't find it.

who can tell me ? thanks!
No RepliesBe the first to reply