Browse Source

update lm3s sconscript and project file

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1119 bbd45198-f89e-11dd-88c7-29a3b14d5316
qiuyiuestc 14 years ago
parent
commit
bad87a2c4b
7 changed files with 346 additions and 410 deletions
  1. 19 0
      bsp/lm3s/SConscript
  2. 10 32
      bsp/lm3s/SConstruct
  3. 210 0
      bsp/lm3s/project.Uv2
  4. 0 133
      bsp/lm3s/project_lwip_dfs.Opt
  5. 0 193
      bsp/lm3s/project_lwip_dfs.Uv2
  6. 9 52
      bsp/lm3s/rtconfig.py
  7. 98 0
      bsp/lm3s/template.Uv2

+ 19 - 0
bsp/lm3s/SConscript

@@ -0,0 +1,19 @@
+import rtconfig
+Import('RTT_ROOT')
+from building import *
+
+src_bsp = ['application.c', 'startup.c', 'board.c']
+
+src_drv = []
+if GetDepend('RT_USING_DFS'):
+	src_drv += ['sdcard.c']
+
+if GetDepend('RT_USING_LWIP'):
+
+	src_drv += ['luminaryif.c']
+
+src	= File(src_bsp + src_drv)
+CPPPATH = [RTT_ROOT + '/bsp/lm3s']
+group = DefineGroup('Startup', src, depend = [''], CPPPATH = CPPPATH)
+
+Return('group')

+ 10 - 32
bsp/lm3s/SConstruct

@@ -1,11 +1,12 @@
 import os
 import os
+import sys
 import rtconfig
 import rtconfig
 
 
 RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
 RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
-target = 'rtthread-lm3s'
+sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
+from building import *
 
 
-# search path for C compiler
-bsp_path  = RTT_ROOT + '/bsp/lm3s'
+TARGET = 'rtthread-lm3s.' + rtconfig.TARGET_EXT
 
 
 env = Environment(tools = ['mingw'],
 env = Environment(tools = ['mingw'],
 	AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
 	AS = rtconfig.AS, ASFLAGS = rtconfig.AFLAGS,
@@ -13,39 +14,16 @@ env = Environment(tools = ['mingw'],
 	AR = rtconfig.AR, ARFLAGS = '-rc',
 	AR = rtconfig.AR, ARFLAGS = '-rc',
 	LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
 	LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
 env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
 env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
-env.AppendUnique(CPPPATH = bsp_path)
 
 
-Export('env')
 Export('RTT_ROOT')
 Export('RTT_ROOT')
 Export('rtconfig')
 Export('rtconfig')
 
 
-objs = SConscript(RTT_ROOT + '/libcpu/SConscript', variant_dir='build/libcpu', duplicate=0)
-objs = objs + SConscript(RTT_ROOT + '/src/SConscript', variant_dir='build/src', duplicate=0)
-objs = objs + SConscript(RTT_ROOT + '/bsp/lm3s/Libraries/SConscript', variant_dir='build/Libraries', duplicate=0)
+# prepare building environment
+objs = PrepareBuilding(env, RTT_ROOT)
 
 
-if rtconfig.RT_USING_MINILIBC:
-	objs = objs + SConscript(RTT_ROOT + '/libc/minilibc/SConscript', variant_dir='build/minilibc', duplicate=0)
+objs.append(SConscript('bsp/lm3s/Libraries/SConscript'))
 
 
-if rtconfig.RT_USING_FINSH:
-	objs = objs + SConscript(RTT_ROOT + '/finsh/SConscript', variant_dir='build/finsh', duplicate=0)
-
-if rtconfig.RT_USING_DFS:
-	objs = objs + SConscript(RTT_ROOT + '/filesystem/dfs/SConscript', variant_dir='build/filesystem', duplicate=0)
-
-if rtconfig.RT_USING_LWIP:
-	objs = objs + SConscript(RTT_ROOT + '/net/lwip/SConscript', variant_dir='build/net/lwip', duplicate=0)
-
-src_bsp = ['application.c', 'startup.c', 'board.c']
-
-src_drv = []
-if rtconfig.RT_USING_DFS:
-	src_drv += ['sdcard.c']
-
-if rtconfig.RT_USING_LWIP:
-	src_drv += ['luminaryif.c']
-
-objs = objs + env.Object(src_bsp + src_drv)
-
-TARGET = target + '.' + rtconfig.TARGET_EXT
 env.Program(TARGET, objs)
 env.Program(TARGET, objs)
-env.AddPostAction(TARGET, rtconfig.POST_ACTION)
+
+# end building 
+EndBuilding(TARGET)

+ 210 - 0
bsp/lm3s/project.Uv2

@@ -0,0 +1,210 @@
+### uVision2 Project, (C) Keil Software
+### Do not modify !
+
+Target (RT-Thread-lm3s), 0x0004 // Tools: 'ARM-ADS'
+
+Group (Startup)
+Group (Kernel)
+Group (LM3S)
+Group (Filesystem)
+Group (finsh)
+Group (LwIP)
+Group (library)
+
+File 1,1,<.\application.c><application.c>
+File 1,1,<.\startup.c><startup.c>
+File 1,1,<.\board.c><board.c>
+File 1,1,<.\sdcard.c><sdcard.c>
+File 1,1,<.\luminaryif.c><luminaryif.c>
+File 2,1,<..\..\src\clock.c><clock.c>
+File 2,1,<..\..\src\device.c><device.c>
+File 2,1,<..\..\src\idle.c><idle.c>
+File 2,1,<..\..\src\ipc.c><ipc.c>
+File 2,1,<..\..\src\irq.c><irq.c>
+File 2,1,<..\..\src\kservice.c><kservice.c>
+File 2,1,<..\..\src\mem.c><mem.c>
+File 2,1,<..\..\src\mempool.c><mempool.c>
+File 2,1,<..\..\src\module.c><module.c>
+File 2,1,<..\..\src\object.c><object.c>
+File 2,1,<..\..\src\rtm.c><rtm.c>
+File 2,1,<..\..\src\scheduler.c><scheduler.c>
+File 2,1,<..\..\src\slab.c><slab.c>
+File 2,1,<..\..\src\thread.c><thread.c>
+File 2,1,<..\..\src\timer.c><timer.c>
+File 3,1,<..\..\libcpu\arm\lm3s\cpu.c><cpu.c>
+File 3,1,<..\..\libcpu\arm\lm3s\fault.c><fault.c>
+File 3,1,<..\..\libcpu\arm\lm3s\interrupt.c><interrupt.c>
+File 3,1,<..\..\libcpu\arm\lm3s\serial.c><serial.c>
+File 3,1,<..\..\libcpu\arm\lm3s\stack.c><stack.c>
+File 3,2,<..\..\libcpu\arm\lm3s\context_rvds.S><context_rvds.S>
+File 3,2,<..\..\libcpu\arm\lm3s\fault_rvds.S><fault_rvds.S>
+File 3,2,<..\..\libcpu\arm\lm3s\start_rvds.S><start_rvds.S>
+File 3,1,<..\..\libcpu\arm\common\backtrace.c><backtrace.c>
+File 3,1,<..\..\libcpu\arm\common\div0.c><div0.c>
+File 3,1,<..\..\libcpu\arm\common\showmem.c><showmem.c>
+File 4,1,<..\..\components\dfs\src\dfs.c><dfs.c>
+File 4,1,<..\..\components\dfs\src\dfs_fs.c><dfs_fs.c>
+File 4,1,<..\..\components\dfs\src\dfs_file.c><dfs_file.c>
+File 4,1,<..\..\components\dfs\src\dfs_posix.c><dfs_posix.c>
+File 4,1,<..\..\components\dfs\filesystems\elmfat\dfs_elm.c><dfs_elm.c>
+File 4,1,<..\..\components\dfs\filesystems\elmfat\ff.c><ff.c>
+File 5,1,<..\..\components\finsh\cmd.c><cmd.c>
+File 5,1,<..\..\components\finsh\finsh_compiler.c><finsh_compiler.c>
+File 5,1,<..\..\components\finsh\finsh_error.c><finsh_error.c>
+File 5,1,<..\..\components\finsh\finsh_heap.c><finsh_heap.c>
+File 5,1,<..\..\components\finsh\finsh_init.c><finsh_init.c>
+File 5,1,<..\..\components\finsh\finsh_node.c><finsh_node.c>
+File 5,1,<..\..\components\finsh\finsh_ops.c><finsh_ops.c>
+File 5,1,<..\..\components\finsh\finsh_parser.c><finsh_parser.c>
+File 5,1,<..\..\components\finsh\finsh_token.c><finsh_token.c>
+File 5,1,<..\..\components\finsh\finsh_var.c><finsh_var.c>
+File 5,1,<..\..\components\finsh\finsh_vm.c><finsh_vm.c>
+File 5,1,<..\..\components\finsh\shell.c><shell.c>
+File 5,1,<..\..\components\finsh\symbol.c><symbol.c>
+File 6,1,<..\..\components\net\lwip\src\api\api_lib.c><api_lib.c>
+File 6,1,<..\..\components\net\lwip\src\api\api_msg.c><api_msg.c>
+File 6,1,<..\..\components\net\lwip\src\api\err.c><err.c>
+File 6,1,<..\..\components\net\lwip\src\api\netbuf.c><netbuf.c>
+File 6,1,<..\..\components\net\lwip\src\api\netdb.c><netdb.c>
+File 6,1,<..\..\components\net\lwip\src\api\netifapi.c><netifapi.c>
+File 6,1,<..\..\components\net\lwip\src\api\sockets.c><sockets.c>
+File 6,1,<..\..\components\net\lwip\src\api\tcpip.c><tcpip.c>
+File 6,1,<..\..\components\net\lwip\src\arch\sys_arch.c><sys_arch.c>
+File 6,1,<..\..\components\net\lwip\src\arch\sys_arch_init.c><sys_arch_init.c>
+File 6,1,<..\..\components\net\lwip\src\core\dhcp.c><dhcp.c>
+File 6,1,<..\..\components\net\lwip\src\core\dns.c><dns.c>
+File 6,1,<..\..\components\net\lwip\src\core\init.c><init.c>
+File 6,1,<..\..\components\net\lwip\src\core\memp.c><memp.c>
+File 6,1,<..\..\components\net\lwip\src\core\netif.c><netif.c>
+File 6,1,<..\..\components\net\lwip\src\core\pbuf.c><pbuf.c>
+File 6,1,<..\..\components\net\lwip\src\core\raw.c><raw.c>
+File 6,1,<..\..\components\net\lwip\src\core\stats.c><stats.c>
+File 6,1,<..\..\components\net\lwip\src\core\sys.c><sys.c>
+File 6,1,<..\..\components\net\lwip\src\core\tcp.c><tcp.c>
+File 6,1,<..\..\components\net\lwip\src\core\tcp_in.c><tcp_in.c>
+File 6,1,<..\..\components\net\lwip\src\core\tcp_out.c><tcp_out.c>
+File 6,1,<..\..\components\net\lwip\src\core\udp.c><udp.c>
+File 6,1,<..\..\components\net\lwip\src\core\ipv4\autoip.c><autoip.c>
+File 6,1,<..\..\components\net\lwip\src\core\ipv4\icmp.c><icmp.c>
+File 6,1,<..\..\components\net\lwip\src\core\ipv4\igmp.c><igmp.c>
+File 6,1,<..\..\components\net\lwip\src\core\ipv4\inet.c><inet.c>
+File 6,1,<..\..\components\net\lwip\src\core\ipv4\inet_chksum.c><inet_chksum.c>
+File 6,1,<..\..\components\net\lwip\src\core\ipv4\ip.c><ip.c>
+File 6,1,<..\..\components\net\lwip\src\core\ipv4\ip_addr.c><ip_addr.c>
+File 6,1,<..\..\components\net\lwip\src\core\ipv4\ip_frag.c><ip_frag.c>
+File 6,1,<..\..\components\net\lwip\src\core\snmp\asn1_dec.c><asn1_dec.c>
+File 6,1,<..\..\components\net\lwip\src\core\snmp\asn1_enc.c><asn1_enc.c>
+File 6,1,<..\..\components\net\lwip\src\core\snmp\mib2.c><mib2.c>
+File 6,1,<..\..\components\net\lwip\src\core\snmp\mib_structs.c><mib_structs.c>
+File 6,1,<..\..\components\net\lwip\src\core\snmp\msg_in.c><msg_in.c>
+File 6,1,<..\..\components\net\lwip\src\core\snmp\msg_out.c><msg_out.c>
+File 6,1,<..\..\components\net\lwip\src\netif\etharp.c><etharp.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ethernetif.c><ethernetif.c>
+File 6,1,<..\..\components\net\lwip\src\netif\loopif.c><loopif.c>
+File 6,1,<..\..\components\net\lwip\src\netif\slipif.c><slipif.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\auth.c><auth.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\chap.c><chap.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\chpms.c><chpms.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\fsm.c><fsm.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\ipcp.c><ipcp.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\lcp.c><lcp.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\magic.c><magic.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\md5.c><md5.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\pap.c><pap.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\ppp.c><ppp.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\ppp_oe.c><ppp_oe.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\randm.c><randm.c>
+File 6,1,<..\..\components\net\lwip\src\netif\ppp\vj.c><vj.c>
+File 7,4,<.\Libraries\driverlib\rvmdk\driverlib.lib><driverlib.lib>
+
+
+Options 1,0,0  // Target 'RT-Thread-lm3s'
+ Device (LM3S6918)
+ Vendor (Luminary Micro)
+ Cpu (IRAM(0x20000000-0x2000FFFF) IROM(0-0x3FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3"))
+ FlashUt ()
+ StupF ("STARTUP\Luminary\Startup.s" ("Luminary Startup Code"))
+ FlashDR (UL2CM3(-UU0101L5E -O14 -S0 -C0 -N00("ARM Cortex-M3") -D00(1BA00477) -L00(4) -FO7 -FD20000000 -FC800 -FN1 -FF0LM3S_256 -FS00 -FL040000))
+ DevID (4722)
+ Rgf (LM3Sxxxx.H)
+ Mem ()
+ C ()
+ A ()
+ RL ()
+ OH ()
+ DBC_IFX ()
+ DBC_CMS ()
+ DBC_AMS ()
+ DBC_LMS ()
+ UseEnv=0
+ EnvBin ()
+ EnvInc ()
+ EnvLib ()
+ EnvReg (ÿLuminary\)
+ OrgReg (ÿLuminary\)
+ TgStat=16
+ OutDir (.\)
+ OutName (rtthread-lm3s)
+ GenApp=1
+ GenLib=0
+ GenHex=0
+ Debug=1
+ Browse=1
+ LstDir (.\)
+ HexSel=1
+ MG32K=0
+ TGMORE=0
+ RunUsr 0 0 <>
+ RunUsr 1 0 <>
+ BrunUsr 0 0 <>
+ BrunUsr 1 0 <>
+ CrunUsr 0 0 <>
+ CrunUsr 1 0 <>
+ SVCSID <>
+ GLFLAGS=1790
+ ADSFLGA { 243,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ ACPUTYP ("Cortex-M3")
+ RVDEV ()
+ ADSTFLGA { 0,12,0,0,163,0,0,66,0,0,0,0,0,0,0,0,0,0,0,0 }
+ OCMADSOCM { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ OCMADSIRAM { 0,0,0,0,32,0,0,1,0 }
+ OCMADSIROM { 1,0,0,0,0,0,0,4,0 }
+ OCMADSXRAM { 0,0,0,0,0,0,0,0,0 }
+ OCR_RVCT { 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,1,0,0,0,0,0,0,0,0,0,0 }
+ RV_STAVEC ()
+ ADSCCFLG { 5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ ADSCMISC ()
+ ADSCDEFN ()
+ ADSCUDEF ()
+ ADSCINCD (Libraries\inc;..\..\include;..\..\libcpu\arm\lm3s;..\..\components\net\lwip\src\include;Libraries\driverlib;.;..\..\components\net\lwip\src\include\ipv4;..\..\components\dfs;Libraries;..\..\components\net\lwip\src\arch\include;..\..\components\dfs\include;..\..\components\net\lwip\src;..\..\libcpu\arm\common;..\..\components\net\lwip\src\netif\ppp;..\..\components\finsh;..\..\components\net\lwip\src\include\netif)
+ ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ ADSAMISC ()
+ ADSADEFN ()
+ ADSAUDEF ()
+ ADSAINCD ()
+ PropFld { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ IncBld=1
+ AlwaysBuild=0
+ GenAsm=0
+ AsmAsm=0
+ PublicsOnly=0
+ StopCode=3
+ CustArgs ()
+ LibMods ()
+ ADSLDFG { 17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ ADSLDTA (0x00000000)
+ ADSLDDA (0x00000000)
+ ADSLDSC ()
+ ADSLDIB ()
+ ADSLDIC ()
+ ADSLDMC ( --keep __fsym_* --keep __vsym_*)
+ ADSLDIF ()
+ ADSLDDW ()
+  OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918)
+  OPTDBG 48118,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()()
+ FLASH1 { 1,0,0,0,1,0,0,0,5,16,0,0,0,0,0,0,0,0,0,0 }
+ FLASH2 (Segger\JLTAgdi.dll)
+ FLASH3 ("" ())
+ FLASH4 ()
+EndOpt
+

+ 0 - 133
bsp/lm3s/project_lwip_dfs.Opt

@@ -1,133 +0,0 @@
-### uVision2 Project, (C) Keil Software
-### Do not modify !
-
- cExt (*.c)
- aExt (*.s*; *.src; *.a*)
- oExt (*.obj)
- lExt (*.lib)
- tExt (*.txt; *.h; *.inc)
- pExt (*.plm)
- CppX (*.cpp)
- DaveTm { 0,0,0,0,0,0,0,0 }
-
-Target (RT-Thread-LM3S), 0x0004 // Tools: 'ARM-ADS'
-GRPOPT 1,(Startup),1,0,0
-GRPOPT 2,(Kernel),0,0,0
-GRPOPT 3,(finsh),0,0,0
-GRPOPT 4,(LM3S),0,0,0
-GRPOPT 5,(driverlib),0,0,0
-GRPOPT 6,(Filesystem),1,0,0
-GRPOPT 7,(LwIP),0,0,0
-
-OPTFFF 1,1,1,0,0,25,25,0,<.\application.c><application.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,88,0,0,0,116,0,0,0,236,2,0,0,123,1,0,0 }
-OPTFFF 1,2,1,0,0,63,74,0,<.\board.c><board.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,44,0,0,0,58,0,0,0,183,2,0,0,100,1,0,0 }
-OPTFFF 1,3,1,0,0,130,135,0,<.\startup.c><startup.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,22,0,0,0,29,0,0,0,161,2,0,0,71,1,0,0 }
-OPTFFF 1,4,5,419430400,0,124,124,0,<.\rtconfig.h><rtconfig.h> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,139,2,0,0,42,1,0,0 }
-OPTFFF 1,5,1,0,0,89,95,0,<.\sdcard.c><sdcard.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,22,0,0,0,29,0,0,0,183,2,0,0,9,1,0,0 }
-OPTFFF 1,6,1,0,0,278,284,0,<.\luminaryif.c><luminaryif.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,66,0,0,0,87,0,0,0,205,2,0,0,129,1,0,0 }
-OPTFFF 1,7,5,0,0,16,20,0,<.\board.h><board.h> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,110,0,0,0,145,0,0,0,227,2,0,0,188,1,0,0 }
-OPTFFF 2,8,1,0,0,0,0,0,<..\..\src\clock.c><clock.c> 
-OPTFFF 2,9,1,0,0,0,0,0,<..\..\src\device.c><device.c> 
-OPTFFF 2,10,1,0,0,58,60,0,<..\..\src\idle.c><idle.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,66,0,0,0,87,0,0,0,205,2,0,0,129,1,0,0 }
-OPTFFF 2,11,1,0,0,0,0,0,<..\..\src\ipc.c><ipc.c> 
-OPTFFF 2,12,1,0,0,0,0,0,<..\..\src\irq.c><irq.c> 
-OPTFFF 2,13,1,0,0,0,0,0,<..\..\src\mem.c><mem.c> 
-OPTFFF 2,14,1,0,0,0,0,0,<..\..\src\mempool.c><mempool.c> 
-OPTFFF 2,15,1,0,0,0,0,0,<..\..\src\object.c><object.c> 
-OPTFFF 2,16,1,0,0,0,0,0,<..\..\src\scheduler.c><scheduler.c> 
-OPTFFF 2,17,1,0,0,0,0,0,<..\..\src\slab.c><slab.c> 
-OPTFFF 2,18,1,0,0,0,0,0,<..\..\src\thread.c><thread.c> 
-OPTFFF 2,19,1,0,0,0,0,0,<..\..\src\timer.c><timer.c> 
-OPTFFF 2,20,1,0,0,0,0,0,<..\..\src\kservice.c><kservice.c> 
-OPTFFF 3,21,1,0,0,0,0,0,<..\..\components\finsh\symbol.c><symbol.c> 
-OPTFFF 3,22,1,0,0,0,0,0,<..\..\components\finsh\cmd.c><cmd.c> 
-OPTFFF 3,23,1,0,0,0,0,0,<..\..\components\finsh\finsh_compiler.c><finsh_compiler.c> 
-OPTFFF 3,24,1,0,0,0,0,0,<..\..\components\finsh\finsh_error.c><finsh_error.c> 
-OPTFFF 3,25,1,0,0,0,0,0,<..\..\components\finsh\finsh_heap.c><finsh_heap.c> 
-OPTFFF 3,26,1,0,0,0,0,0,<..\..\components\finsh\finsh_init.c><finsh_init.c> 
-OPTFFF 3,27,1,0,0,0,0,0,<..\..\components\finsh\finsh_node.c><finsh_node.c> 
-OPTFFF 3,28,1,0,0,0,0,0,<..\..\components\finsh\finsh_ops.c><finsh_ops.c> 
-OPTFFF 3,29,1,0,0,0,0,0,<..\..\components\finsh\finsh_parser.c><finsh_parser.c> 
-OPTFFF 3,30,1,0,0,0,0,0,<..\..\components\finsh\finsh_token.c><finsh_token.c> 
-OPTFFF 3,31,1,0,0,0,0,0,<..\..\components\finsh\finsh_var.c><finsh_var.c> 
-OPTFFF 3,32,1,0,0,0,0,0,<..\..\components\finsh\finsh_vm.c><finsh_vm.c> 
-OPTFFF 3,33,1,0,0,0,0,0,<..\..\components\finsh\shell.c><shell.c> 
-OPTFFF 4,34,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\cpu.c><cpu.c> 
-OPTFFF 4,35,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\interrupt.c><interrupt.c> 
-OPTFFF 4,36,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\stack.c><stack.c> 
-OPTFFF 4,37,2,0,0,0,0,0,<..\..\libcpu\arm\lm3s\context_rvds.S><context_rvds.S> 
-OPTFFF 4,38,2,0,0,28,32,0,<..\..\libcpu\arm\lm3s\start_rvds.S><start_rvds.S> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,44,0,0,0,58,0,0,0,157,2,0,0,100,1,0,0 }
-OPTFFF 4,39,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\serial.c><serial.c> 
-OPTFFF 4,40,1,0,0,0,0,0,<..\..\libcpu\arm\lm3s\fault.c><fault.c> 
-OPTFFF 4,41,2,0,0,0,0,0,<..\..\libcpu\arm\lm3s\fault_rvds.S><fault_rvds.S> 
-OPTFFF 5,42,4,0,0,0,0,0,<..\..\bsp\lm3s\Libraries\driverlib\rvmdk\driverlib.lib><driverlib.lib> 
-OPTFFF 6,43,1,0,0,0,0,0,<..\..\components\dfs\src\dfs_fs.c><dfs_fs.c> 
-OPTFFF 6,44,1,0,0,0,0,0,<..\..\components\dfs\src\dfs_posix.c><dfs_posix.c> 
-OPTFFF 6,45,1,0,0,0,0,0,<..\..\components\dfs\filesystems\elmfat\ff.c><ff.c> 
-OPTFFF 6,46,1,0,0,0,0,0,<..\..\components\dfs\filesystems\elmfat\dfs_elm.c><dfs_elm.c> 
-OPTFFF 6,47,1,0,0,0,0,0,<..\..\components\dfs\src\dfs.c><dfs.c> 
-OPTFFF 6,48,1,0,0,0,0,0,<..\..\components\dfs\src\dfs_file.c><dfs_file.c> 
-OPTFFF 7,49,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\dhcp.c><dhcp.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,88,0,0,0,116,0,0,0,227,2,0,0,108,1,0,0 }
-OPTFFF 7,50,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\dns.c><dns.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,139,2,0,0,248,0,0,0 }
-OPTFFF 7,51,1,0,0,247,247,0,<..\..\components\net\lwip\src\core\init.c><init.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,139,2,0,0,42,1,0,0 }
-OPTFFF 7,52,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\netif.c><netif.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,22,0,0,0,29,0,0,0,161,2,0,0,21,1,0,0 }
-OPTFFF 7,53,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\pbuf.c><pbuf.c> 
-OPTFFF 7,54,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\raw.c><raw.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,44,0,0,0,58,0,0,0,183,2,0,0,50,1,0,0 }
-OPTFFF 7,55,1,0,0,1,1,0,<..\..\components\net\lwip\src\core\stats.c><stats.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,66,0,0,0,87,0,0,0,205,2,0,0,79,1,0,0 }
-OPTFFF 7,56,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\sys.c><sys.c> 
-OPTFFF 7,57,1,1006632960,0,3,7,0,<..\..\components\net\lwip\src\core\tcp.c><tcp.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,88,0,0,0,116,0,0,0,227,2,0,0,158,1,0,0 }
-OPTFFF 7,58,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\tcp_in.c><tcp_in.c> 
-OPTFFF 7,59,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\tcp_out.c><tcp_out.c> 
-OPTFFF 7,60,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\udp.c><udp.c> 
-OPTFFF 7,61,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\autoip.c><autoip.c> 
-OPTFFF 7,62,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\icmp.c><icmp.c> 
-OPTFFF 7,63,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\igmp.c><igmp.c> 
-OPTFFF 7,64,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\inet.c><inet.c> 
-OPTFFF 7,65,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\inet_chksum.c><inet_chksum.c> 
-OPTFFF 7,66,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\ip.c><ip.c> 
-OPTFFF 7,67,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\ip_addr.c><ip_addr.c> 
-OPTFFF 7,68,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\ipv4\ip_frag.c><ip_frag.c> 
-OPTFFF 7,69,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\msg_in.c><msg_in.c> 
-OPTFFF 7,70,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\msg_out.c><msg_out.c> 
-OPTFFF 7,71,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\api_lib.c><api_lib.c> 
-OPTFFF 7,72,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\api_msg.c><api_msg.c> 
-OPTFFF 7,73,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\err.c><err.c> 
-OPTFFF 7,74,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\netbuf.c><netbuf.c> 
-OPTFFF 7,75,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\netdb.c><netdb.c> 
-OPTFFF 7,76,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\netifapi.c><netifapi.c> 
-OPTFFF 7,77,1,603979776,0,257,257,0,<..\..\components\net\lwip\src\api\tcpip.c><tcpip.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,192,2,0,0,253,0,0,0 }
-OPTFFF 7,78,1,0,0,0,0,0,<..\..\components\net\lwip\src\netif\etharp.c><etharp.c> 
-OPTFFF 7,79,1,16777216,0,208,212,0,<..\..\components\net\lwip\src\netif\ethernetif.c><ethernetif.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,66,0,0,0,87,0,0,0,2,3,0,0,84,1,0,0 }
-OPTFFF 7,80,1,0,0,0,0,0,<..\..\components\net\lwip\src\netif\loopif.c><loopif.c> 
-OPTFFF 7,81,1,0,0,0,0,0,<..\..\components\net\lwip\src\arch\sys_arch_init.c><sys_arch_init.c> 
-OPTFFF 7,82,1,0,0,0,0,0,<..\..\components\net\lwip\src\arch\sys_arch.c><sys_arch.c> 
-OPTFFF 7,83,1,0,0,0,0,0,<..\..\components\net\lwip\src\api\sockets.c><sockets.c> 
-OPTFFF 7,84,1,503316480,0,350,359,0,<..\..\components\net\lwip\src\core\memp.c><memp.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,44,0,0,0,58,0,0,0,205,2,0,0,47,1,0,0 }
-OPTFFF 7,85,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\asn1_dec.c><asn1_dec.c> 
-OPTFFF 7,86,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\asn1_enc.c><asn1_enc.c> 
-OPTFFF 7,87,1,285212672,0,4104,4104,0,<..\..\components\net\lwip\src\core\snmp\mib2.c><mib2.c> { 44,0,0,0,0,0,0,0,1,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,0,0,0,0,0,0,0,0,183,2,0,0,172,0,0,0 }
-OPTFFF 7,88,1,0,0,0,0,0,<..\..\components\net\lwip\src\core\snmp\mib_structs.c><mib_structs.c> 
-
-ExtF <E:\SVN-Google-Source\src\kservice.h> 83,101,0,{ 44,0,0,0,2,0,0,0,3,0,0,0,255,255,255,255,255,255,255,255,252,255,255,255,226,255,255,255,88,0,0,0,116,0,0,0,205,2,0,0,159,1,0,0 }
-
-TARGOPT 1, (RT-Thread-LM3S)
- ADSCLK=6000000
-  OPTTT 1,1,1,0
-  OPTHX 1,65535,0,0,0
-  OPTLX 79,66,8,<.\>
-  OPTOX 16
-  OPTLT 1,1,1,0,1,1,0,1,0,0,0,0
-  OPTXL 1,1,1,1,1,1,1,0,0
-  OPTFL 1,0,1
-  OPTAX 0
-  OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918)
-  OPTDBG 49150,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()()
-  OPTKEY 0,(DLGTARM)((1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(101=-1,-1,-1,-1,0)(102=-1,-1,-1,-1,0)(103=-1,-1,-1,-1,0)(104=-1,-1,-1,-1,0)(105=-1,-1,-1,-1,0)(106=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(163=-1,-1,-1,-1,0)(164=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)(152=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(1012=-1,-1,-1,-1,0)(1014=-1,-1,-1,-1,0)(1016=-1,-1,-1,-1,0)(136=-1,-1,-1,-1,0))
-  OPTKEY 0,(ARMDBGFLAGS)()
-  OPTKEY 0,(DLGUARM)((105=-1,-1,-1,-1,0)(106=-1,-1,-1,-1,0)(107=-1,-1,-1,-1,0))
-  OPTKEY 0,(JL2CM3)(-U20090110 -O14 -S0 -C0 -JU1 -JI127.0.0.1 -JP0 -N00("ARM CoreSight JTAG-DP") -D00(3BA00477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TRE0 -FO7 -FD20000000 -FC800 -FN1 -FF0LM3S_256 -FS00 -FL040000)
-  OPTDF 0x84
-  OPTLE <>
-  OPTLC <>
-EndOpt
-

+ 0 - 193
bsp/lm3s/project_lwip_dfs.Uv2

@@ -1,193 +0,0 @@
-### uVision2 Project, (C) Keil Software
-### Do not modify !
-
-Target (RT-Thread-LM3S), 0x0004 // Tools: 'ARM-ADS'
-
-Group (Startup)
-Group (Kernel)
-Group (finsh)
-Group (LM3S)
-Group (driverlib)
-Group (Filesystem)
-Group (LwIP)
-
-File 1,1,<.\application.c><application.c>
-File 1,1,<.\board.c><board.c>
-File 1,1,<.\startup.c><startup.c>
-File 1,5,<.\rtconfig.h><rtconfig.h>
-File 1,1,<.\sdcard.c><sdcard.c>
-File 1,1,<.\luminaryif.c><luminaryif.c>
-File 1,5,<.\board.h><board.h>
-File 2,1,<..\..\src\clock.c><clock.c>
-File 2,1,<..\..\src\device.c><device.c>
-File 2,1,<..\..\src\idle.c><idle.c>
-File 2,1,<..\..\src\ipc.c><ipc.c>
-File 2,1,<..\..\src\irq.c><irq.c>
-File 2,1,<..\..\src\mem.c><mem.c>
-File 2,1,<..\..\src\mempool.c><mempool.c>
-File 2,1,<..\..\src\object.c><object.c>
-File 2,1,<..\..\src\scheduler.c><scheduler.c>
-File 2,1,<..\..\src\slab.c><slab.c>
-File 2,1,<..\..\src\thread.c><thread.c>
-File 2,1,<..\..\src\timer.c><timer.c>
-File 2,1,<..\..\src\kservice.c><kservice.c>
-File 3,1,<..\..\components\finsh\symbol.c><symbol.c>
-File 3,1,<..\..\components\finsh\cmd.c><cmd.c>
-File 3,1,<..\..\components\finsh\finsh_compiler.c><finsh_compiler.c>
-File 3,1,<..\..\components\finsh\finsh_error.c><finsh_error.c>
-File 3,1,<..\..\components\finsh\finsh_heap.c><finsh_heap.c>
-File 3,1,<..\..\components\finsh\finsh_init.c><finsh_init.c>
-File 3,1,<..\..\components\finsh\finsh_node.c><finsh_node.c>
-File 3,1,<..\..\components\finsh\finsh_ops.c><finsh_ops.c>
-File 3,1,<..\..\components\finsh\finsh_parser.c><finsh_parser.c>
-File 3,1,<..\..\components\finsh\finsh_token.c><finsh_token.c>
-File 3,1,<..\..\components\finsh\finsh_var.c><finsh_var.c>
-File 3,1,<..\..\components\finsh\finsh_vm.c><finsh_vm.c>
-File 3,1,<..\..\components\finsh\shell.c><shell.c>
-File 4,1,<..\..\libcpu\arm\lm3s\cpu.c><cpu.c>
-File 4,1,<..\..\libcpu\arm\lm3s\interrupt.c><interrupt.c>
-File 4,1,<..\..\libcpu\arm\lm3s\stack.c><stack.c>
-File 4,2,<..\..\libcpu\arm\lm3s\context_rvds.S><context_rvds.S>
-File 4,2,<..\..\libcpu\arm\lm3s\start_rvds.S><start_rvds.S>
-File 4,1,<..\..\libcpu\arm\lm3s\serial.c><serial.c>
-File 4,1,<..\..\libcpu\arm\lm3s\fault.c><fault.c>
-File 4,2,<..\..\libcpu\arm\lm3s\fault_rvds.S><fault_rvds.S>
-File 5,4,<..\..\bsp\lm3s\Libraries\driverlib\rvmdk\driverlib.lib><driverlib.lib>
-File 6,1,<..\..\components\dfs\src\dfs_fs.c><dfs_fs.c>
-File 6,1,<..\..\components\dfs\src\dfs_posix.c><dfs_posix.c>
-File 6,1,<..\..\components\dfs\filesystems\elmfat\ff.c><ff.c>
-File 6,1,<..\..\components\dfs\filesystems\elmfat\dfs_elm.c><dfs_elm.c>
-File 6,1,<..\..\components\dfs\src\dfs.c><dfs.c>
-File 6,1,<..\..\components\dfs\src\dfs_file.c><dfs_file.c>
-File 7,1,<..\..\components\net\lwip\src\core\dhcp.c><dhcp.c>
-File 7,1,<..\..\components\net\lwip\src\core\dns.c><dns.c>
-File 7,1,<..\..\components\net\lwip\src\core\init.c><init.c>
-File 7,1,<..\..\components\net\lwip\src\core\netif.c><netif.c>
-File 7,1,<..\..\components\net\lwip\src\core\pbuf.c><pbuf.c>
-File 7,1,<..\..\components\net\lwip\src\core\raw.c><raw.c>
-File 7,1,<..\..\components\net\lwip\src\core\stats.c><stats.c>
-File 7,1,<..\..\components\net\lwip\src\core\sys.c><sys.c>
-File 7,1,<..\..\components\net\lwip\src\core\tcp.c><tcp.c>
-File 7,1,<..\..\components\net\lwip\src\core\tcp_in.c><tcp_in.c>
-File 7,1,<..\..\components\net\lwip\src\core\tcp_out.c><tcp_out.c>
-File 7,1,<..\..\components\net\lwip\src\core\udp.c><udp.c>
-File 7,1,<..\..\components\net\lwip\src\core\ipv4\autoip.c><autoip.c>
-File 7,1,<..\..\components\net\lwip\src\core\ipv4\icmp.c><icmp.c>
-File 7,1,<..\..\components\net\lwip\src\core\ipv4\igmp.c><igmp.c>
-File 7,1,<..\..\components\net\lwip\src\core\ipv4\inet.c><inet.c>
-File 7,1,<..\..\components\net\lwip\src\core\ipv4\inet_chksum.c><inet_chksum.c>
-File 7,1,<..\..\components\net\lwip\src\core\ipv4\ip.c><ip.c>
-File 7,1,<..\..\components\net\lwip\src\core\ipv4\ip_addr.c><ip_addr.c>
-File 7,1,<..\..\components\net\lwip\src\core\ipv4\ip_frag.c><ip_frag.c>
-File 7,1,<..\..\components\net\lwip\src\core\snmp\msg_in.c><msg_in.c>
-File 7,1,<..\..\components\net\lwip\src\core\snmp\msg_out.c><msg_out.c>
-File 7,1,<..\..\components\net\lwip\src\api\api_lib.c><api_lib.c>
-File 7,1,<..\..\components\net\lwip\src\api\api_msg.c><api_msg.c>
-File 7,1,<..\..\components\net\lwip\src\api\err.c><err.c>
-File 7,1,<..\..\components\net\lwip\src\api\netbuf.c><netbuf.c>
-File 7,1,<..\..\components\net\lwip\src\api\netdb.c><netdb.c>
-File 7,1,<..\..\components\net\lwip\src\api\netifapi.c><netifapi.c>
-File 7,1,<..\..\components\net\lwip\src\api\tcpip.c><tcpip.c>
-File 7,1,<..\..\components\net\lwip\src\netif\etharp.c><etharp.c>
-File 7,1,<..\..\components\net\lwip\src\netif\ethernetif.c><ethernetif.c>
-File 7,1,<..\..\components\net\lwip\src\netif\loopif.c><loopif.c>
-File 7,1,<..\..\components\net\lwip\src\arch\sys_arch_init.c><sys_arch_init.c>
-File 7,1,<..\..\components\net\lwip\src\arch\sys_arch.c><sys_arch.c>
-File 7,1,<..\..\components\net\lwip\src\api\sockets.c><sockets.c>
-File 7,1,<..\..\components\net\lwip\src\core\memp.c><memp.c>
-File 7,1,<..\..\components\net\lwip\src\core\snmp\asn1_dec.c><asn1_dec.c>
-File 7,1,<..\..\components\net\lwip\src\core\snmp\asn1_enc.c><asn1_enc.c>
-File 7,1,<..\..\components\net\lwip\src\core\snmp\mib2.c><mib2.c>
-File 7,1,<..\..\components\net\lwip\src\core\snmp\mib_structs.c><mib_structs.c>
-
-
-Options 1,0,0  // Target 'RT-Thread-LM3S'
- Device (LM3S6918)
- Vendor (Luminary Micro)
- Cpu (IRAM(0x20000000-0x2000FFFF) IROM(0-0x3FFFF) CLOCK(6000000) CPUTYPE("Cortex-M3"))
- FlashUt ()
- StupF ("STARTUP\Luminary\Startup.s" ("Luminary Startup Code"))
- FlashDR (UL2CM3(-UU0101L5E -O14 -S0 -C0 -N00("ARM Cortex-M3") -D00(1BA00477) -L00(4) -FO7 -FD20000000 -FC800 -FN1 -FF0LM3S_256 -FS00 -FL040000))
- DevID (4722)
- Rgf (LM3Sxxxx.H)
- Mem ()
- C ()
- A ()
- RL ()
- OH ()
- DBC_IFX ()
- DBC_CMS ()
- DBC_AMS ()
- DBC_LMS ()
- UseEnv=0
- EnvBin ()
- EnvInc ()
- EnvLib ()
- EnvReg (ÿLuminary\)
- OrgReg (ÿLuminary\)
- TgStat=16
- OutDir (.\obj\)
- OutName (rtthread-lm3s)
- GenApp=1
- GenLib=0
- GenHex=0
- Debug=1
- Browse=1
- LstDir (.\)
- HexSel=1
- MG32K=0
- TGMORE=0
- RunUsr 0 0 <>
- RunUsr 1 0 <>
- BrunUsr 0 0 <>
- BrunUsr 1 0 <>
- CrunUsr 0 0 <>
- CrunUsr 1 0 <>
- SVCSID <>
- GLFLAGS=1790
- ADSFLGA { 243,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
- ACPUTYP ("Cortex-M3")
- RVDEV ()
- ADSTFLGA { 0,12,0,2,99,0,1,66,0,0,0,0,0,0,0,0,0,0,0,0 }
- OCMADSOCM { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
- OCMADSIRAM { 0,0,0,0,32,0,0,1,0 }
- OCMADSIROM { 1,0,0,0,0,0,0,4,0 }
- OCMADSXRAM { 0,0,0,0,0,0,0,0,0 }
- OCR_RVCT { 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,1,0,0,0,0,0,0,0,0,0,0 }
- RV_STAVEC ()
- ADSCCFLG { 5,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
- ADSCMISC ()
- ADSCDEFN ()
- ADSCUDEF ()
- ADSCINCD (.;.\Libraries;..\..\include;..\..\libcpu\arm\lm3s;..\..\components\finsh;..\..\components\dfs;..\..\components\dfs\include;..\..\components\net\lwip\src;..\..\components\net\lwip\src\include;..\..\components\net\lwip\src\arch\include;..\..\components\net\lwip\src\include\ipv4;..\..\components\dfs\include;..\..\components\dfs\filesystems\efsl\src\include;..\..\components\dfs\filesystems\efsl\src\base\include;..\..\components\dfs\filesystems\efsl\src\fs\vfat\include)
- ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
- ADSAMISC ()
- ADSADEFN ()
- ADSAUDEF ()
- ADSAINCD ()
- PropFld { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
- IncBld=1
- AlwaysBuild=0
- GenAsm=0
- AsmAsm=0
- PublicsOnly=0
- StopCode=3
- CustArgs ()
- LibMods ()
- ADSLDFG { 17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
- ADSLDTA (0x00000000)
- ADSLDDA (0x20000000)
- ADSLDSC ()
- ADSLDIB ()
- ADSLDIC ()
- ADSLDMC (--keep __fsym_* --keep __vsym_*)
- ADSLDIF ()
- ADSLDDW ()
-  OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918)
-  OPTDBG 49150,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()()
- FLASH1 { 9,0,0,0,1,0,0,0,5,16,0,0,0,0,0,0,0,0,0,0 }
- FLASH2 (Segger\JL2CM3.dll)
- FLASH3 ("" ())
- FLASH4 ()
-EndOpt
-

+ 9 - 52
bsp/lm3s/rtconfig.py

@@ -1,56 +1,16 @@
-import SCons.cpp
 
 
-# component options
-
-# make all component false 
-RT_USING_DFS 		= False
-RT_USING_FINSH 		= False
-RT_USING_DFS_ELMFAT= False
-RT_USING_DFS_YAFFS2= False
-RT_USING_LWIP 		= False
-RT_USING_RTGUI 		= False
-
-# parse rtconfig.h to get used component
-PreProcessor = SCons.cpp.PreProcessor()
-f = file('rtconfig.h', 'r')
-contents = f.read()
-f.close()
-PreProcessor.process_contents(contents)
-rtconfig_ns = PreProcessor.cpp_namespace
-
-# finsh shell options
-if rtconfig_ns.has_key('RT_USING_FINSH'):
-	RT_USING_FINSH = True
-
-# device virtual filesystem options 
-if rtconfig_ns.has_key('RT_USING_DFS'):
-    RT_USING_DFS = True
-    
-    if rtconfig_ns.has_key('RT_USING_DFS_EFSL'):
-        RT_USING_DFS_EFSL = True
-    if rtconfig_ns.has_key('RT_USING_DFS_ELMFAT'):
-        RT_USING_DFS_ELMFAT = True
-    if rtconfig_ns.has_key('RT_USING_DFS_YAFFS2'):
-        RT_USING_DFS_YAFFS2 = True
-
-# lwip options
-if rtconfig_ns.has_key('RT_USING_LWIP'):
-    RT_USING_LWIP = True
-    if rtconfig_ns.has_key('RT_USING_WEBSERVER'):
-        RT_USING_WEBSERVER = True
-
-# rtgui options
-if rtconfig_ns.has_key('RT_USING_RTGUI'):
-    RT_USING_RTGUI = True
 
 
 # toolchains options
 # toolchains options
 ARCH='arm'
 ARCH='arm'
 CPU='lm3s'
 CPU='lm3s'
-#PLATFORM = 'gcc'
-#EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin'
-PLATFORM = 'armcc'
-EXEC_PATH = 'E:/Keil'
-BUILD = 'release'
+CROSS_TOOL 	= 'keil'
+if  CROSS_TOOL == 'gcc':
+	PLATFORM 	= 'gcc'
+	EXEC_PATH 	= 'E:/Program Files/CodeSourcery/Sourcery G++ Lite/bin'
+elif CROSS_TOOL == 'keil':
+	PLATFORM 	= 'armcc'
+	EXEC_PATH 	= 'E:/Keil'
+BUILD = 'debug'
 
 
 if PLATFORM == 'gcc':
 if PLATFORM == 'gcc':
     # toolchains
     # toolchains
@@ -65,7 +25,7 @@ if PLATFORM == 'gcc':
     OBJCPY = PREFIX + 'objcopy'
     OBJCPY = PREFIX + 'objcopy'
 
 
     DEVICE = ' -mcpu=cortex-m3 -mthumb'
     DEVICE = ' -mcpu=cortex-m3 -mthumb'
-    CFLAGS = DEVICE + ' -Dsourcerygxx' + ' -DRT_USING_MINILIBC' 
+    CFLAGS = DEVICE + ' -Dsourcerygxx' 
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp'
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lm3s.map,-cref,-u,Reset_Handler -T lm3s_rom.ld'
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread-lm3s.map,-cref,-u,Reset_Handler -T lm3s_rom.ld'
 
 
@@ -78,7 +38,6 @@ if PLATFORM == 'gcc':
     else:
     else:
         CFLAGS += ' -O2'
         CFLAGS += ' -O2'
 
 
-    RT_USING_MINILIBC = True
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
     POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
 
 
 elif PLATFORM == 'armcc':
 elif PLATFORM == 'armcc':
@@ -106,6 +65,4 @@ elif PLATFORM == 'armcc':
         CFLAGS += ' -O2'
         CFLAGS += ' -O2'
 
 
     RT_USING_MINILIBC = False
     RT_USING_MINILIBC = False
-    if RT_USING_FINSH:
-        LFLAGS += ' --keep __fsym_* --keep __vsym_*'
     POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'
     POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET'

+ 98 - 0
bsp/lm3s/template.Uv2

@@ -0,0 +1,98 @@
+### uVision2 Project, (C) Keil Software
+### Do not modify !
+
+Target (RT-Thread-lm3s), 0x0004 // Tools: 'ARM-ADS'
+
+
+
+
+Options 1,0,0  // Target 'RT-Thread-lm3s'
+ Device (LM3S6918)
+ Vendor (Luminary Micro)
+ Cpu (IRAM(0x20000000-0x2000FFFF) IROM(0-0x3FFFF) CLOCK(8000000) CPUTYPE("Cortex-M3"))
+ FlashUt ()
+ StupF ("STARTUP\Luminary\Startup.s" ("Luminary Startup Code"))
+ FlashDR (UL2CM3(-UU0101L5E -O14 -S0 -C0 -N00("ARM Cortex-M3") -D00(1BA00477) -L00(4) -FO7 -FD20000000 -FC800 -FN1 -FF0LM3S_256 -FS00 -FL040000))
+ DevID (4722)
+ Rgf (LM3Sxxxx.H)
+ Mem ()
+ C ()
+ A ()
+ RL ()
+ OH ()
+ DBC_IFX ()
+ DBC_CMS ()
+ DBC_AMS ()
+ DBC_LMS ()
+ UseEnv=0
+ EnvBin ()
+ EnvInc ()
+ EnvLib ()
+ EnvReg (ÿLuminary\)
+ OrgReg (ÿLuminary\)
+ TgStat=16
+ OutDir (.\)
+ OutName (rtthread-lm3s)
+ GenApp=1
+ GenLib=0
+ GenHex=0
+ Debug=1
+ Browse=1
+ LstDir (.\)
+ HexSel=1
+ MG32K=0
+ TGMORE=0
+ RunUsr 0 0 <>
+ RunUsr 1 0 <>
+ BrunUsr 0 0 <>
+ BrunUsr 1 0 <>
+ CrunUsr 0 0 <>
+ CrunUsr 1 0 <>
+ SVCSID <>
+ GLFLAGS=1790
+ ADSFLGA { 243,31,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ ACPUTYP ("Cortex-M3")
+ RVDEV ()
+ ADSTFLGA { 0,12,0,0,160,0,0,66,0,0,0,0,0,0,0,0,0,0,0,0 }
+ OCMADSOCM { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ OCMADSIRAM { 0,0,0,0,32,0,0,1,0 }
+ OCMADSIROM { 1,0,0,0,0,0,0,4,0 }
+ OCMADSXRAM { 0,0,0,0,0,0,0,0,0 }
+ OCR_RVCT { 1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,4,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,1,0,0,0,0,0,0,0,0,0,0 }
+ RV_STAVEC ()
+ ADSCCFLG { 5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ ADSCMISC ()
+ ADSCDEFN ()
+ ADSCUDEF ()
+ ADSCINCD ()
+ ADSASFLG { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ ADSAMISC ()
+ ADSADEFN ()
+ ADSAUDEF ()
+ ADSAINCD ()
+ PropFld { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ IncBld=1
+ AlwaysBuild=0
+ GenAsm=0
+ AsmAsm=0
+ PublicsOnly=0
+ StopCode=3
+ CustArgs ()
+ LibMods ()
+ ADSLDFG { 17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ ADSLDTA (0x00000000)
+ ADSLDDA (0x00000000)
+ ADSLDSC ()
+ ADSLDIB ()
+ ADSLDIC ()
+ ADSLDMC ()
+ ADSLDIF ()
+ ADSLDDW ()
+  OPTDL (SARMCM3.DLL)()(DLM.DLL)(-pLM3S6918)(SARMCM3.DLL)()(TLM.DLL)(-pLM3S6918)
+  OPTDBG 48118,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()()
+ FLASH1 { 1,0,0,0,1,0,0,0,5,16,0,0,0,0,0,0,0,0,0,0 }
+ FLASH2 (Segger\JLTAgdi.dll)
+ FLASH3 ("" ())
+ FLASH4 ()
+EndOpt
+