Răsfoiți Sursa

add #define RT_USING_CONSOLE for Nios II bsp

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1388 bbd45198-f89e-11dd-88c7-29a3b14d5316
wuyangyong 14 ani în urmă
părinte
comite
c63a2e0a89

+ 1 - 1
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);
 }
 

+ 4 - 0
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

+ 3 - 0
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

+ 8 - 0
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

+ 7 - 0
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

+ 1 - 0
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