diff --git a/bsp/lm3s/application.c b/bsp/lm3s/application.c index b697141116d07522e01e49a0123bf98ceb6c3990..fded03279f1b575db179235b75d2924ef3cb751a 100644 --- a/bsp/lm3s/application.c +++ b/bsp/lm3s/application.c @@ -61,7 +61,7 @@ void rt_init_thread_entry(void *parameter) #ifdef RT_USING_LWIP { extern void lwip_sys_init(void); - + /* init lwip system */ lwip_sys_init(); rt_kprintf("TCP/IP initialized!\n"); diff --git a/bsp/lm3s/luminaryif.c b/bsp/lm3s/luminaryif.c index f28c3904fa1ef9ad02d3b23541f425c0bbb555c2..603805917982debe772dbc23f22aff753721312a 100644 --- a/bsp/lm3s/luminaryif.c +++ b/bsp/lm3s/luminaryif.c @@ -125,6 +125,8 @@ void luminaryif_isr(void) /* a frame has been received */ result = eth_device_ready((struct eth_device*)&(luminaryif_dev->parent)); + if(result != RT_EOK) rt_set_errno(-RT_ERROR); + // // Disable Ethernet RX Interrupt. // @@ -481,7 +483,7 @@ int rt_hw_luminaryif_init(void) rt_sem_init(&tx_sem, "emac", 1, RT_IPC_FLAG_FIFO); result = eth_device_init(&(luminaryif_dev->parent), "E0"); - - return RT_EOK; + + return result; } diff --git a/bsp/lm3s/project.Uv2 b/bsp/lm3s/project.Uv2 index 4164d5737b790c6ed456d8647b7a4bf58604e9cd..746a4a1fffd7d34afd13e0fda9b6e5e268ef602c 100644 --- a/bsp/lm3s/project.Uv2 +++ b/bsp/lm3s/project.Uv2 @@ -119,7 +119,7 @@ File 7,4,<.\Libraries\driverlib\rvmdk\driverlib.lib> Options 1,0,0 // Target 'RT-Thread-lm3s' - Device (LM3S6918) + Device (LM3S8962) Vendor (Luminary Micro) Cpu (IRAM(0x20000000-0x2000FFFF) IROM(0-0x3FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3")) FlashUt () @@ -200,7 +200,7 @@ Options 1,0,0 // Target 'RT-Thread-lm3s' ADSLDMC ( --keep __fsym_* --keep __vsym_*) ADSLDIF () ADSLDDW () - OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918) + OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S8962)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S8962) OPTDBG 48118,4,()()()()()()()()()() (BIN\lmidk-agdi.dll)()()() FLASH1 { 1,0,0,0,1,0,0,0,3,16,0,0,0,0,0,0,0,0,0,0 } FLASH2 (BIN\lmidk-agdi.dll) diff --git a/bsp/lm3s/rtconfig.h b/bsp/lm3s/rtconfig.h index 31169ea56a6f4da3d66aa19355bb834679564077..c4158624d485a761db8f7cd777feee498733108a 100644 --- a/bsp/lm3s/rtconfig.h +++ b/bsp/lm3s/rtconfig.h @@ -16,7 +16,7 @@ /* SECTION: RT_DEBUG */ /* Thread Debug*/ -#define RT_DEBUG +/* #define RT_DEBUG */ /* #define RT_THREAD_DEBUG */ /* Using Hook*/ diff --git a/bsp/lm3s/startup.c b/bsp/lm3s/startup.c index 412b74c738bf6f1fbc30a551a1b00dc9e045160c..5f74e3e4268051db8637922932a5d040c8515164 100644 --- a/bsp/lm3s/startup.c +++ b/bsp/lm3s/startup.c @@ -16,6 +16,11 @@ #include #include "board.h" + +#ifdef RT_USING_LWIP +#include +#include +#endif /** * @addtogroup LM3S @@ -29,8 +34,9 @@ extern void finsh_system_init(void); extern void finsh_set_device(char* device); #endif -extern int rt_application_init(void); +extern int rt_application_init(void); extern void rt_hw_sdcard_init(void); +extern int rt_hw_luminaryif_init(void); #ifdef __CC_ARM extern int Image$$RW_IRAM1$$ZI$$Limit;