From a607e1485b072afdf1739bc87e964610fad05b86 Mon Sep 17 00:00:00 2001 From: wuyangyong Date: Fri, 6 May 2011 15:24:27 +0000 Subject: [PATCH] update Nios II bsp config git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1395 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/nios_ii/board.c | 2 +- bsp/nios_ii/rtconfig.h | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bsp/nios_ii/board.c b/bsp/nios_ii/board.c index c8ee7ca873..bc171c7dbf 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: %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); } diff --git a/bsp/nios_ii/rtconfig.h b/bsp/nios_ii/rtconfig.h index d3f8415a01..3f59b4010f 100644 --- a/bsp/nios_ii/rtconfig.h +++ b/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 -- GitLab