diff --git a/bsp/mini2440/SConstruct b/bsp/mini2440/SConstruct index a11e18c7c6b07b0dbfdc6ab1c628f712efbe76af..783a9f8a28ea6c976b00017b42dbc391a4ee6176 100644 --- a/bsp/mini2440/SConstruct +++ b/bsp/mini2440/SConstruct @@ -33,6 +33,7 @@ if rtconfig.RT_USING_DFS: if rtconfig.RT_USING_LWIP: objs = objs + SConscript(RTT_ROOT + '/net/lwip/SConscript', variant_dir='build/net/lwip', duplicate=0) + objs = objs + SConscript(RTT_ROOT + '/net/apps/SConscript', variant_dir='build/net/apps', duplicate=0) if rtconfig.RT_USING_RTGUI: objs = objs + SConscript(RTT_ROOT + '/rtgui/SConscript', variant_dir='build/rtgui', duplicate=0) diff --git a/bsp/mini2440/dm9000.c b/bsp/mini2440/dm9000.c index 7e625e56820f31817dacf134403dbf764ecf800a..31eade6012c5fade88cff1b056c2229e6284720c 100644 --- a/bsp/mini2440/dm9000.c +++ b/bsp/mini2440/dm9000.c @@ -591,10 +591,10 @@ void rt_hw_dm9000_init() /* Enable EINT7 */ EINTMASK = EINTMASK & (~(1<<7)); /* Set GPA15 as nGCS4 */ - //GPACON |= 1 << 15; + GPACON |= 1 << 15; /* DM9000 width 16, wait enable */ - //BWSCON = BWSCON & (~(0x7<<16)) | (0x5<<16); - //BANKCON4 = (1<<13) | (1<<11) | (0x6<<8) | (1<<6) | (1<<4) | (0<<2) | (0); + BWSCON = BWSCON & (~(0x7<<16)) | (0x5<<16); + BANKCON4 = (1<<13) | (1<<11) | (0x6<<8) | (1<<6) | (1<<4) | (0<<2) | (0); rt_sem_init(&sem_ack, "tx_ack", 1, RT_IPC_FLAG_FIFO); rt_sem_init(&sem_lock, "eth_lock", 1, RT_IPC_FLAG_FIFO); diff --git a/net/apps/SConscript b/net/apps/SConscript new file mode 100644 index 0000000000000000000000000000000000000000..b0e7fb2716a219399cade340a659bbe6da7c2a98 --- /dev/null +++ b/net/apps/SConscript @@ -0,0 +1,10 @@ +Import('env') +Import('rtconfig') +Import('RTT_ROOT') + +# The set of source files associated with this SConscript file. +src_local = Glob('*.c') + +obj = env.Object(src_local) + +Return('obj') \ No newline at end of file