瀏覽代碼

update Nios II bsp config

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1395 bbd45198-f89e-11dd-88c7-29a3b14d5316
wuyangyong 14 年之前
父節點
當前提交
a607e1485b
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 1 1
      bsp/nios_ii/board.c
  2. 7 1
      bsp/nios_ii/rtconfig.h

+ 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:     %uHz\r\n",ALT_CPU_CPU_FREQ);
+    rt_kprintf("ALT_CPU_CPU_FREQ:     %uMHz\r\n",ALT_CPU_CPU_FREQ/1000000UL);
     rt_kprintf("memory size:          at 0x%08X 0x%08X byte\r\n",SDRAM_BASE,SDRAM_SPAN);
 }
 

+ 7 - 1
bsp/nios_ii/rtconfig.h

@@ -1,3 +1,6 @@
+ /* system.h - SOPC Builder system and BSP software package information */
+ #include "system.h"
+
 /* RT-Thread config file */
 #ifndef __RTTHREAD_CFG_H__
 #define __RTTHREAD_CFG_H__
@@ -13,7 +16,7 @@
 
 /* Tick per Second */
 /* TIMER_TICKS_PER_SEC define in system.h */
-#define RT_TICK_PER_SECOND	1000 //TIMER_TICKS_PER_SEC
+#define RT_TICK_PER_SECOND	TIMER_TICKS_PER_SEC
 
 /* SECTION: RT_DEBUG */
 /* Thread Debug */
@@ -110,6 +113,9 @@
 /* the number of simulatenously active TCP connections*/
 #define RT_LWIP_TCP_PCB_NUM	5
 
+/* Using DHCP */
+//#define RT_LWIP_DHCP
+
 /* ip address of target*/
 #define RT_LWIP_IPADDR0	192
 #define RT_LWIP_IPADDR1	168