diff --git a/bsp/nios_ii/board.c b/bsp/nios_ii/board.c index c8ee7ca873481a84a9cbccde23aa132e5ada3f00..bc171c7dbffb46e6918a12e319b15e170e79cf8e 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 d3f8415a011083390ebfd12a25bbdccf7cd1273e..3f59b4010f1a9e14aafa20e41cf96693a1134ec1 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