⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fifo_uart_test.c

📁 UART RS232 IPCORE for sopc builder
💻 C
字号:
// File: hello_world.c
//
// Contents: Minimal program for Nios
//           system "nios_reference32"
//
//

#include "excalibur.h"


int main(void)
	{
	long x;
	long time;
	setbuf(stdout,0);  // turn off buffering for printf

	time = nr_timer_milliseconds();
	for(x=0;x<100;x++)
	{
         nr_uart_txstring("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890\n");
         nr_delay(3);
    }

	time = nr_timer_milliseconds();
	printf(" %d ",time);
	printf ("\n\nHello from Nios .\n\n");

return 1;
	}

// end of file

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -