- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page