diff --git a/bsp/nios_ii/board.c b/bsp/nios_ii/board.c index 697aacb3df1d990076eff47a8ff694cff8439576..c8ee7ca873481a84a9cbccde23aa132e5ada3f00 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 0000000000000000000000000000000000000000..03fdbc9870c2ff777a27beb1878a6db5662df087 --- /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 0000000000000000000000000000000000000000..ffa26da46181c8e40851783fd677f3632a4ac2aa --- /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 0000000000000000000000000000000000000000..0ee741930db2d4ff1adcd653c6a083560629a8e7 --- /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 0000000000000000000000000000000000000000..668d1aa6ccaafc21933529be61c665e5f88b5350 --- /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 9248602ab0c60eede2ab0436b13232637016a535..d3f8415a011083390ebfd12a25bbdccf7cd1273e 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