diff --git a/bsp/nios_ii/board.c b/bsp/nios_ii/board.c index 697aacb3df..c8ee7ca873 100644 --- a/bsp/nios_ii/board.c +++ b/bsp/nios_ii/board.c @@ -70,7 +70,7 @@ static void rt_hw_show_info(void) rt_kprintf("\r\n\r\n---------- board info ----------\r\n"); rt_kprintf("ALT_DEVICE_FAMILY: %s\r\n",ALT_DEVICE_FAMILY); rt_kprintf("ALT_CPU_ARCHITECTURE: %s\r\n",ALT_CPU_ARCHITECTURE); - rt_kprintf("ALT_CPU_CPU_FREQ: %u\r\n",ALT_CPU_CPU_FREQ); + rt_kprintf("ALT_CPU_CPU_FREQ: %uHz\r\n",ALT_CPU_CPU_FREQ); rt_kprintf("memory size: at 0x%08X 0x%08X byte\r\n",SDRAM_BASE,SDRAM_SPAN); } diff --git a/bsp/nios_ii/get_update_finsh.bat b/bsp/nios_ii/get_update_finsh.bat new file mode 100644 index 0000000000..03fdbc9870 --- /dev/null +++ b/bsp/nios_ii/get_update_finsh.bat @@ -0,0 +1,4 @@ +@echo off +@echo get and update finsh +svn co https://rt-thread.googlecode.com/svn/trunk/components/finsh/ ./rt-thread/components/finsh +pause diff --git a/bsp/nios_ii/get_update_finsh.sh b/bsp/nios_ii/get_update_finsh.sh new file mode 100644 index 0000000000..ffa26da461 --- /dev/null +++ b/bsp/nios_ii/get_update_finsh.sh @@ -0,0 +1,3 @@ +#!/bin/sh +echo "get and update finsh" +svn co https://rt-thread.googlecode.com/svn/trunk/components/finsh/ ./rt-thread/components/finsh diff --git a/bsp/nios_ii/get_update_rt-thread.bat b/bsp/nios_ii/get_update_rt-thread.bat new file mode 100644 index 0000000000..0ee741930d --- /dev/null +++ b/bsp/nios_ii/get_update_rt-thread.bat @@ -0,0 +1,8 @@ +@echo off +@echo get and update RT-Thread kernel source +svn co https://rt-thread.googlecode.com/svn/trunk/src/ ./rt-thread/src +@echo get and update RT-Thread include file +svn co https://rt-thread.googlecode.com/svn/trunk/include/ ./rt-thread/include +@echo get and update Nios II architecture for RT-Thread +svn co https://rt-thread.googlecode.com/svn/trunk/libcpu/nios/nios_ii/ ./rt-thread/libcpu/nios/nios_ii +pause diff --git a/bsp/nios_ii/get_update_rt-thread.sh b/bsp/nios_ii/get_update_rt-thread.sh new file mode 100644 index 0000000000..668d1aa6cc --- /dev/null +++ b/bsp/nios_ii/get_update_rt-thread.sh @@ -0,0 +1,7 @@ +#!/bin/sh +echo "get and update RT-Thread kernel source" +svn co https://rt-thread.googlecode.com/svn/trunk/src/ ./rt-thread/src +echo "get and update RT-Thread include file" +svn co https://rt-thread.googlecode.com/svn/trunk/include/ ./rt-thread/include +echo "get and update Nios II architecture for RT-Thread" +svn co https://rt-thread.googlecode.com/svn/trunk/libcpu/nios/nios_ii/ ./rt-thread/libcpu/nios/nios_ii diff --git a/bsp/nios_ii/rtconfig.h b/bsp/nios_ii/rtconfig.h index 9248602ab0..d3f8415a01 100644 --- a/bsp/nios_ii/rtconfig.h +++ b/bsp/nios_ii/rtconfig.h @@ -67,6 +67,7 @@ #define RT_USING_UART1 /* SECTION: Console options */ +#define RT_USING_CONSOLE /* the buffer size of console*/ #define RT_CONSOLEBUF_SIZE 128