Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16614 Discussions

where is "alt_avalon_jtag_uart_dev" declared?

Altera_Forum
Honored Contributor II
1,042 Views

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!
0 Kudos
0 Replies
Reply