From e586ae10c3e697f92a523c294fb148714cd32313 Mon Sep 17 00:00:00 2001 From: "dzzxzz@gmail.com" Date: Thu, 20 Sep 2012 07:38:04 +0000 Subject: [PATCH] fixed a compiling error while components_init.h changed to components.h please define RT_USING_RTT_CMSIS in rtconfig.h while using IAR 6.30 + git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2298 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/lpc176x/applications/application.c | 2 +- bsp/lpc176x/project.ewp | 461 +++++++++++++++---------- bsp/lpc176x/project.uvopt | 169 +++++---- bsp/lpc176x/project.uvproj | 15 +- 4 files changed, 356 insertions(+), 291 deletions(-) diff --git a/bsp/lpc176x/applications/application.c b/bsp/lpc176x/applications/application.c index e1ff5a2db..65c8a71b7 100644 --- a/bsp/lpc176x/applications/application.c +++ b/bsp/lpc176x/applications/application.c @@ -20,7 +20,7 @@ #include "platform.h" #ifdef RT_USING_COMPONENTS_INIT -#include +#include #endif #ifdef RT_USING_LWIP #include diff --git a/bsp/lpc176x/project.ewp b/bsp/lpc176x/project.ewp index f5ba2b9c0..7a8ba0386 100644 --- a/bsp/lpc176x/project.ewp +++ b/bsp/lpc176x/project.ewp @@ -1,3 +1,5 @@ + + 2 @@ -10,7 +12,7 @@ General 3 - 20 + 21 1 1 + + ICCARM 2 - 26 + 28 1 1 @@ -380,11 +390,15 @@ 1 + @@ -423,15 +437,15 @@ @@ -585,28 +599,28 @@ CUSTOM 3 - - + + BICOMP 0 - + BUILDACTION 1 - - + + ILINK 0 - 11 + 14 1 1 + + + + + + + @@ -863,7 +905,7 @@ 1 @@ -891,7 +933,7 @@ General 3 - 20 + 21 1 0 + + ICCARM 2 - 26 + 28 1 0 @@ -1261,11 +1311,15 @@ 1 + @@ -1304,15 +1358,15 @@ @@ -1450,7 +1504,7 @@ @@ -1777,139 +1859,136 @@ CMSIS - $PROJ_DIR$\CMSIS\CM3\CoreSupport\core_cm3.c + $PROJ_DIR$\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\startup\iar\startup_LPC17xx.s $PROJ_DIR$\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\system_LPC17xx.c + + + Components - $PROJ_DIR$\CMSIS\CM3\DeviceSupport\NXP\LPC17xx\startup\iar\startup_LPC17xx.s + $PROJ_DIR$\..\..\components\init\components.c - Drivers + CORTEX-M3 - $PROJ_DIR$\drivers\board.c + $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c - $PROJ_DIR$\drivers\emac.c + $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\context_iar.S - $PROJ_DIR$\drivers\led.c + $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\cpuport.c - $PROJ_DIR$\drivers\spi.c + $PROJ_DIR$\..\..\libcpu\arm\common\div0.c - $PROJ_DIR$\drivers\uart.c + $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c - Kernel + Drivers - $PROJ_DIR$\..\..\src\clock.c + $PROJ_DIR$\drivers\board.c - $PROJ_DIR$\..\..\src\device.c + $PROJ_DIR$\drivers\emac.c - $PROJ_DIR$\..\..\src\idle.c + $PROJ_DIR$\drivers\led.c - $PROJ_DIR$\..\..\src\ipc.c + $PROJ_DIR$\drivers\spi.c - $PROJ_DIR$\..\..\src\irq.c + $PROJ_DIR$\drivers\uart.c + + + finsh - $PROJ_DIR$\..\..\src\kservice.c + $PROJ_DIR$\..\..\components\finsh\cmd.c - $PROJ_DIR$\..\..\src\mem.c + $PROJ_DIR$\..\..\components\finsh\finsh_compiler.c - $PROJ_DIR$\..\..\src\memheap.c + $PROJ_DIR$\..\..\components\finsh\finsh_error.c - $PROJ_DIR$\..\..\src\mempool.c + $PROJ_DIR$\..\..\components\finsh\finsh_heap.c - $PROJ_DIR$\..\..\src\object.c + $PROJ_DIR$\..\..\components\finsh\finsh_init.c - $PROJ_DIR$\..\..\src\scheduler.c + $PROJ_DIR$\..\..\components\finsh\finsh_node.c - $PROJ_DIR$\..\..\src\thread.c + $PROJ_DIR$\..\..\components\finsh\finsh_ops.c - $PROJ_DIR$\..\..\src\timer.c + $PROJ_DIR$\..\..\components\finsh\finsh_parser.c - - - CORTEX-M3 - $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\cpuport.c + $PROJ_DIR$\..\..\components\finsh\finsh_token.c - $PROJ_DIR$\..\..\libcpu\arm\cortex-m3\context_iar.S + $PROJ_DIR$\..\..\components\finsh\finsh_var.c - $PROJ_DIR$\..\..\libcpu\arm\common\backtrace.c + $PROJ_DIR$\..\..\components\finsh\finsh_vm.c - $PROJ_DIR$\..\..\libcpu\arm\common\div0.c + $PROJ_DIR$\..\..\components\finsh\shell.c - $PROJ_DIR$\..\..\libcpu\arm\common\showmem.c + $PROJ_DIR$\..\..\components\finsh\symbol.c - finsh - - $PROJ_DIR$\..\..\components\finsh\cmd.c - + Kernel - $PROJ_DIR$\..\..\components\finsh\finsh_compiler.c + $PROJ_DIR$\..\..\src\clock.c - $PROJ_DIR$\..\..\components\finsh\finsh_error.c + $PROJ_DIR$\..\..\src\device.c - $PROJ_DIR$\..\..\components\finsh\finsh_heap.c + $PROJ_DIR$\..\..\src\idle.c - $PROJ_DIR$\..\..\components\finsh\finsh_init.c + $PROJ_DIR$\..\..\src\ipc.c - $PROJ_DIR$\..\..\components\finsh\finsh_node.c + $PROJ_DIR$\..\..\src\irq.c - $PROJ_DIR$\..\..\components\finsh\finsh_ops.c + $PROJ_DIR$\..\..\src\kservice.c - $PROJ_DIR$\..\..\components\finsh\finsh_parser.c + $PROJ_DIR$\..\..\src\mem.c - $PROJ_DIR$\..\..\components\finsh\finsh_token.c + $PROJ_DIR$\..\..\src\memheap.c - $PROJ_DIR$\..\..\components\finsh\finsh_var.c + $PROJ_DIR$\..\..\src\mempool.c - $PROJ_DIR$\..\..\components\finsh\finsh_vm.c + $PROJ_DIR$\..\..\src\object.c - $PROJ_DIR$\..\..\components\finsh\shell.c + $PROJ_DIR$\..\..\src\scheduler.c - $PROJ_DIR$\..\..\components\finsh\symbol.c + $PROJ_DIR$\..\..\src\thread.c - - - Components - $PROJ_DIR$\..\..\components\init\components_init.c + $PROJ_DIR$\..\..\src\timer.c @@ -1921,103 +2000,105 @@ $PROJ_DIR$\..\..\components\net\lwip\src\api\api_msg.c - $PROJ_DIR$\..\..\components\net\lwip\src\api\err.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\autoip.c - $PROJ_DIR$\..\..\components\net\lwip\src\api\netbuf.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\def.c - $PROJ_DIR$\..\..\components\net\lwip\src\api\netdb.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\dhcp.c - $PROJ_DIR$\..\..\components\net\lwip\src\api\netifapi.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\dns.c - $PROJ_DIR$\..\..\components\net\lwip\src\api\sockets.c + $PROJ_DIR$\..\..\components\net\lwip\src\api\err.c - $PROJ_DIR$\..\..\components\net\lwip\src\api\tcpip.c + $PROJ_DIR$\..\..\components\net\lwip\src\netif\etharp.c - $PROJ_DIR$\..\..\components\net\lwip\src\arch\sys_arch.c + $PROJ_DIR$\..\..\components\net\lwip\src\netif\ethernetif.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\def.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\icmp.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\dhcp.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\igmp.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\dns.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\inet.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\init.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\inet_chksum.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\memp.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\init.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\netif.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\ip.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\pbuf.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\ip_addr.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\raw.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\ip_frag.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\stats.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\memp.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\sys.c + $PROJ_DIR$\..\..\components\net\lwip\src\api\netbuf.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\tcp.c + $PROJ_DIR$\..\..\components\net\lwip\src\api\netdb.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\tcp_in.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\netif.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\tcp_out.c + $PROJ_DIR$\..\..\components\net\lwip\src\api\netifapi.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\timers.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\pbuf.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\udp.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\raw.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\autoip.c + $PROJ_DIR$\..\..\components\net\lwip\src\netif\slipif.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\icmp.c + $PROJ_DIR$\..\..\components\net\lwip\src\api\sockets.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\igmp.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\stats.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\inet.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\sys.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\inet_chksum.c + $PROJ_DIR$\..\..\components\net\lwip\src\arch\sys_arch.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\ip.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\tcp.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\ip_addr.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\tcp_in.c - $PROJ_DIR$\..\..\components\net\lwip\src\core\ipv4\ip_frag.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\tcp_out.c - $PROJ_DIR$\..\..\components\net\lwip\src\netif\etharp.c + $PROJ_DIR$\..\..\components\net\lwip\src\api\tcpip.c - $PROJ_DIR$\..\..\components\net\lwip\src\netif\ethernetif.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\timers.c - $PROJ_DIR$\..\..\components\net\lwip\src\netif\slipif.c + $PROJ_DIR$\..\..\components\net\lwip\src\core\udp.c + + diff --git a/bsp/lpc176x/project.uvopt b/bsp/lpc176x/project.uvopt index 915dc5b8f..27265a61d 100644 --- a/bsp/lpc176x/project.uvopt +++ b/bsp/lpc176x/project.uvopt @@ -125,6 +125,7 @@ -U20100214 -O78 -S0 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(2BA01477) -L00(4) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO27 -FD10000000 -FC800 -FN1 -FF0LPC_IAP_512 -FS00 -FL080000 + 0 0 @@ -221,26 +222,12 @@ 0 0 0 - CMSIS\CM3\CoreSupport\core_cm3.c - core_cm3.c - - - 2 - 5 - 1 - 0 - 0 - 0 - 0 - 0 - 0 - 0 CMSIS\CM3\DeviceSupport\NXP\LPC17xx\system_LPC17xx.c system_LPC17xx.c 2 - 6 + 5 2 0 0 @@ -261,7 +248,7 @@ 0 3 - 7 + 6 1 0 0 @@ -275,7 +262,7 @@ 3 - 8 + 7 1 0 0 @@ -289,7 +276,7 @@ 3 - 9 + 8 1 0 0 @@ -303,7 +290,7 @@ 3 - 10 + 9 1 0 0 @@ -317,7 +304,7 @@ 3 - 11 + 10 1 0 0 @@ -338,7 +325,7 @@ 0 4 - 12 + 11 1 0 0 @@ -352,7 +339,7 @@ 4 - 13 + 12 1 0 0 @@ -366,7 +353,7 @@ 4 - 14 + 13 1 0 0 @@ -380,7 +367,7 @@ 4 - 15 + 14 1 0 0 @@ -394,7 +381,7 @@ 4 - 16 + 15 1 0 0 @@ -408,7 +395,7 @@ 4 - 17 + 16 1 0 0 @@ -422,7 +409,7 @@ 4 - 18 + 17 1 0 0 @@ -436,7 +423,7 @@ 4 - 19 + 18 1 0 0 @@ -450,7 +437,7 @@ 4 - 20 + 19 1 0 0 @@ -464,7 +451,7 @@ 4 - 21 + 20 1 0 0 @@ -478,7 +465,7 @@ 4 - 22 + 21 1 0 0 @@ -492,7 +479,7 @@ 4 - 23 + 22 1 0 0 @@ -506,7 +493,7 @@ 4 - 24 + 23 1 0 0 @@ -527,7 +514,7 @@ 0 5 - 25 + 24 1 0 0 @@ -541,7 +528,7 @@ 5 - 26 + 25 2 0 0 @@ -555,7 +542,7 @@ 5 - 27 + 26 1 0 0 @@ -569,7 +556,7 @@ 5 - 28 + 27 1 0 0 @@ -583,7 +570,7 @@ 5 - 29 + 28 1 0 0 @@ -604,7 +591,7 @@ 0 6 - 30 + 29 1 0 0 @@ -618,7 +605,7 @@ 6 - 31 + 30 1 0 0 @@ -632,7 +619,7 @@ 6 - 32 + 31 1 0 0 @@ -646,7 +633,7 @@ 6 - 33 + 32 1 0 0 @@ -660,7 +647,7 @@ 6 - 34 + 33 1 0 0 @@ -674,7 +661,7 @@ 6 - 35 + 34 1 0 0 @@ -688,7 +675,7 @@ 6 - 36 + 35 1 0 0 @@ -702,7 +689,7 @@ 6 - 37 + 36 1 0 0 @@ -716,7 +703,7 @@ 6 - 38 + 37 1 0 0 @@ -730,7 +717,7 @@ 6 - 39 + 38 1 0 0 @@ -744,7 +731,7 @@ 6 - 40 + 39 1 0 0 @@ -758,7 +745,7 @@ 6 - 41 + 40 1 0 0 @@ -772,7 +759,7 @@ 6 - 42 + 41 1 0 0 @@ -793,7 +780,7 @@ 0 7 - 43 + 42 1 0 0 @@ -802,8 +789,8 @@ 0 0 0 - ..\..\components\init\components_init.c - components_init.c + ..\..\components\init\components.c + components.c @@ -814,7 +801,7 @@ 0 8 - 44 + 43 1 0 0 @@ -828,7 +815,7 @@ 8 - 45 + 44 1 0 0 @@ -842,7 +829,7 @@ 8 - 46 + 45 1 0 0 @@ -856,7 +843,7 @@ 8 - 47 + 46 1 0 0 @@ -870,7 +857,7 @@ 8 - 48 + 47 1 0 0 @@ -884,7 +871,7 @@ 8 - 49 + 48 1 0 0 @@ -898,7 +885,7 @@ 8 - 50 + 49 1 0 0 @@ -912,7 +899,7 @@ 8 - 51 + 50 1 0 0 @@ -926,7 +913,7 @@ 8 - 52 + 51 1 0 0 @@ -940,7 +927,7 @@ 8 - 53 + 52 1 0 0 @@ -954,7 +941,7 @@ 8 - 54 + 53 1 0 0 @@ -968,7 +955,7 @@ 8 - 55 + 54 1 0 0 @@ -982,7 +969,7 @@ 8 - 56 + 55 1 0 0 @@ -996,7 +983,7 @@ 8 - 57 + 56 1 0 0 @@ -1010,7 +997,7 @@ 8 - 58 + 57 1 0 0 @@ -1024,7 +1011,7 @@ 8 - 59 + 58 1 0 0 @@ -1038,7 +1025,7 @@ 8 - 60 + 59 1 0 0 @@ -1052,7 +1039,7 @@ 8 - 61 + 60 1 0 0 @@ -1066,7 +1053,7 @@ 8 - 62 + 61 1 0 0 @@ -1080,7 +1067,7 @@ 8 - 63 + 62 1 0 0 @@ -1094,7 +1081,7 @@ 8 - 64 + 63 1 0 0 @@ -1108,7 +1095,7 @@ 8 - 65 + 64 1 0 0 @@ -1122,7 +1109,7 @@ 8 - 66 + 65 1 0 0 @@ -1136,7 +1123,7 @@ 8 - 67 + 66 1 0 0 @@ -1150,7 +1137,7 @@ 8 - 68 + 67 1 0 0 @@ -1164,7 +1151,7 @@ 8 - 69 + 68 1 0 0 @@ -1178,21 +1165,21 @@ 8 - 70 + 69 1 0 0 0 0 - 711 - 719 + 0 + 0 0 ..\..\components\net\lwip\src\core\ipv4\igmp.c igmp.c 8 - 71 + 70 1 0 0 @@ -1206,7 +1193,7 @@ 8 - 72 + 71 1 0 0 @@ -1220,7 +1207,7 @@ 8 - 73 + 72 1 0 0 @@ -1234,7 +1221,7 @@ 8 - 74 + 73 1 0 0 @@ -1248,7 +1235,7 @@ 8 - 75 + 74 1 0 0 @@ -1262,7 +1249,7 @@ 8 - 76 + 75 1 0 0 @@ -1276,7 +1263,7 @@ 8 - 77 + 76 1 0 0 @@ -1290,7 +1277,7 @@ 8 - 78 + 77 1 0 0 diff --git a/bsp/lpc176x/project.uvproj b/bsp/lpc176x/project.uvproj index 052fac492..f9754f306 100644 --- a/bsp/lpc176x/project.uvproj +++ b/bsp/lpc176x/project.uvproj @@ -61,6 +61,8 @@ 0 0 + 0 + 0 0 @@ -346,7 +348,7 @@ - .;..\..\components\finsh;..\..\components\init;..\..\components\net\lwip\src;..\..\components\net\lwip\src\arch\include;..\..\components\net\lwip\src\include;..\..\components\net\lwip\src\include\ipv4;..\..\components\net\lwip\src\include\netif;..\..\include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;CMSIS\CM3\CoreSupport;CMSIS\CM3\DeviceSupport\NXP\LPC17xx;applications;drivers + .;..\..\components\CMSIS\Include;..\..\components\finsh;..\..\components\init;..\..\components\net\lwip\src;..\..\components\net\lwip\src\arch\include;..\..\components\net\lwip\src\include;..\..\components\net\lwip\src\include\ipv4;..\..\components\net\lwip\src\include\netif;..\..\include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m3;CMSIS\CM3\DeviceSupport\NXP\LPC17xx;applications;drivers @@ -376,7 +378,7 @@ - --keep __fsym_* --keep __vsym_* + --keep __fsym_* --keep __vsym_* @@ -406,11 +408,6 @@ CMSIS - - core_cm3.c - 1 - CMSIS\CM3\CoreSupport\core_cm3.c - system_LPC17xx.c 1 @@ -627,9 +624,9 @@ Components - components_init.c + components.c 1 - ..\..\components\init\components_init.c + ..\..\components\init\components.c -- GitLab