From baf30c5f3c5ffb6f2a98ebf784559d8b87132c51 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Fri, 26 Nov 2010 10:12:52 +0000 Subject: [PATCH] update lpc176x project. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1123 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/lpc176x/emac.c | 2 +- bsp/lpc176x/project.Uv2 | 2 +- bsp/lpc176x/rtconfig.py | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bsp/lpc176x/emac.c b/bsp/lpc176x/emac.c index 8d1c370ec..a39f21e9c 100644 --- a/bsp/lpc176x/emac.c +++ b/bsp/lpc176x/emac.c @@ -435,7 +435,7 @@ struct pbuf *lpc17xx_emac_rx(rt_device_t dev) void lpc17xx_emac_hw_init(void) { - rt_sem_init(&sem_slot, "tx_slot", NUM_TX_FRAG, RT_IPC_FLAG_FIFO); + rt_sem_init(&sem_slot, "tx_slot", NUM_TX_FRAG, RT_IPC_FLAG_FIFO); rt_sem_init(&sem_lock, "eth_lock", 1, RT_IPC_FLAG_FIFO); /* set autonegotiation mode */ diff --git a/bsp/lpc176x/project.Uv2 b/bsp/lpc176x/project.Uv2 index 357b1f99e..b7bf0e763 100644 --- a/bsp/lpc176x/project.Uv2 +++ b/bsp/lpc176x/project.Uv2 @@ -203,7 +203,7 @@ Options 1,0,0 // Target 'RT-Thread LPC17xx' ADSLDIF () ADSLDDW () OPTDL (SARMCM3.DLL)(-MPU)(DARMP1.DLL)(-pLPC1768)(SARMCM3.DLL)(-MPU)(TARMP1.DLL)(-pLPC1768) - OPTDBG 48126,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()() + OPTDBG 49150,7,()()()()()()()()()() (Segger\JL2CM3.dll)()()() FLASH1 { 9,0,0,0,1,0,0,0,6,16,0,0,0,0,0,0,0,0,0,0 } FLASH2 (Segger\JL2CM3.dll) FLASH3 ("" ()) diff --git a/bsp/lpc176x/rtconfig.py b/bsp/lpc176x/rtconfig.py index c99291f7a..555ee58bb 100644 --- a/bsp/lpc176x/rtconfig.py +++ b/bsp/lpc176x/rtconfig.py @@ -5,11 +5,10 @@ CROSS_TOOL='keil' if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' - EXEC_PATH = 'D:/SourceryGCC/bin' + 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': @@ -48,7 +47,7 @@ elif PLATFORM == 'armcc': LINK = 'armlink' TARGET_EXT = 'axf' - DEVICE = ' --device DARMSTM' + DEVICE = ' --device DARMP1' CFLAGS = DEVICE + ' --apcs=interwork' AFLAGS = DEVICE LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-lpc17xx.map --scatter lpc17xx_rom.sct' @@ -74,7 +73,7 @@ elif PLATFORM == 'iar': LINK = 'ilinkarm' TARGET_EXT = 'out' - DEVICE = ' --cpu DARMSTM --thumb' + DEVICE = ' --cpu DARMP1 --thumb' CFLAGS = '' AFLAGS = ''