From a722f6ff017980142a8ebb7af049dd2b99f9c064 Mon Sep 17 00:00:00 2001 From: wuyangyong Date: Tue, 6 Sep 2011 15:52:43 +0000 Subject: [PATCH] update PIC32 git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1700 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/pic32ethernet/startup.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/bsp/pic32ethernet/startup.c b/bsp/pic32ethernet/startup.c index 641c8cd7dc..8ae4d431b4 100644 --- a/bsp/pic32ethernet/startup.c +++ b/bsp/pic32ethernet/startup.c @@ -17,7 +17,7 @@ #include extern int _ramfunc_end; -#define PIC32_SRAM_END (0xA0000000+0x8000) //795F512L 512KB +#define PIC32_SRAM_END (0xA0000000 + 1024UL*128) //795F512L 512K FLASH 128KB SRAM #ifdef RT_USING_FINSH extern void finsh_system_init(void); @@ -52,27 +52,6 @@ void rtthread_startup(void) /* init scheduler system */ rt_system_scheduler_init(); -//#ifdef RT_USING_DEVICE -// /* register uart0 */ -// rt_hw_serial_register(&uart0_device, "uart0", -// RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, -// &uart0); -// -// /* register uart2, used for RTI debug */ -// rt_hw_serial_register(&uart2_device, "uart2", -// RT_DEVICE_FLAG_RDWR | RT_DEVICE_FLAG_INT_RX | RT_DEVICE_FLAG_STREAM, -// &uart2); -// -//#ifdef RT_USING_DFS -//#ifdef RT_USING_DFS_UFFS -// rt_hw_nand_init(); -//#endif -//#endif -// -// /*init all registed devices */ -// rt_device_init_all(); -//#endif - /* init application */ rt_application_init(); -- GitLab