[Bsp] lpc408x fix compiler error

This commit is contained in:
Aubr.Cool 2016-09-21 11:10:25 +08:00
parent e0b371edfd
commit 8c229e412a
3 changed files with 20 additions and 15 deletions

View File

@ -19,7 +19,7 @@
#include "board.h" #include "board.h"
extern int rt_application_init(void); extern int rt_application_init(void);
extern void sram_init(void);
/** /**
* This function will startup RT-Thread RTOS. * This function will startup RT-Thread RTOS.
*/ */

View File

@ -369,7 +369,7 @@
<MiscControls></MiscControls> <MiscControls></MiscControls>
<Define>CORE_M4, RT_USING_ARM_LIBC</Define> <Define>CORE_M4, RT_USING_ARM_LIBC</Define>
<Undefine></Undefine> <Undefine></Undefine>
<IncludePath>Libraries/Device/NXP/LPC407x_8x_177x_8x/Include;Libraries/CMSIS/Include;Libraries/Drivers/include;applications;.;drivers;../../include;../../libcpu/arm/cortex-m4;../../libcpu/arm/common;../../components/pthreads;../../components/libc/armlibc;../../components/drivers/include;../../components/drivers/include;../../components/finsh</IncludePath> <IncludePath>Libraries/Device/NXP/LPC407x_8x_177x_8x/Include;Libraries/CMSIS/Include;Libraries/Drivers/include;applications;.;drivers;../../include;../../libcpu/arm/cortex-m4;../../libcpu/arm/common;..\..\components\libc\pthreads;../../components/libc/armlibc;../../components/drivers/include;../../components/drivers/include;../../components/finsh</IncludePath>
</VariousControls> </VariousControls>
</Cads> </Cads>
<Aads> <Aads>
@ -607,6 +607,11 @@
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>.\drivers\drv_lpccan.c</FilePath> <FilePath>.\drivers\drv_lpccan.c</FilePath>
</File> </File>
<File>
<FileName>drv_sdram.c</FileName>
<FileType>1</FileType>
<FilePath>.\drivers\drv_sdram.c</FilePath>
</File>
</Files> </Files>
</Group> </Group>
<Group> <Group>
@ -720,62 +725,62 @@
<File> <File>
<FileName>clock_time.c</FileName> <FileName>clock_time.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/clock_time.c</FilePath> <FilePath>..\..\components\libc\pthreads\clock_time.c</FilePath>
</File> </File>
<File> <File>
<FileName>mqueue.c</FileName> <FileName>mqueue.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/mqueue.c</FilePath> <FilePath>..\..\components\libc\pthreads\mqueue.c</FilePath>
</File> </File>
<File> <File>
<FileName>pthread.c</FileName> <FileName>pthread.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/pthread.c</FilePath> <FilePath>..\..\components\libc\pthreads\pthread.c</FilePath>
</File> </File>
<File> <File>
<FileName>pthread_attr.c</FileName> <FileName>pthread_attr.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/pthread_attr.c</FilePath> <FilePath>..\..\components\libc\pthreads\pthread_attr.c</FilePath>
</File> </File>
<File> <File>
<FileName>pthread_barrier.c</FileName> <FileName>pthread_barrier.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/pthread_barrier.c</FilePath> <FilePath>..\..\components\libc\pthreads\pthread_barrier.c</FilePath>
</File> </File>
<File> <File>
<FileName>pthread_cond.c</FileName> <FileName>pthread_cond.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/pthread_cond.c</FilePath> <FilePath>..\..\components\libc\pthreads\pthread_cond.c</FilePath>
</File> </File>
<File> <File>
<FileName>pthread_mutex.c</FileName> <FileName>pthread_mutex.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/pthread_mutex.c</FilePath> <FilePath>..\..\components\libc\pthreads\pthread_mutex.c</FilePath>
</File> </File>
<File> <File>
<FileName>pthread_rwlock.c</FileName> <FileName>pthread_rwlock.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/pthread_rwlock.c</FilePath> <FilePath>..\..\components\libc\pthreads\pthread_rwlock.c</FilePath>
</File> </File>
<File> <File>
<FileName>pthread_spin.c</FileName> <FileName>pthread_spin.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/pthread_spin.c</FilePath> <FilePath>..\..\components\libc\pthreads\pthread_spin.c</FilePath>
</File> </File>
<File> <File>
<FileName>pthread_tls.c</FileName> <FileName>pthread_tls.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/pthread_tls.c</FilePath> <FilePath>..\..\components\libc\pthreads\pthread_tls.c</FilePath>
</File> </File>
<File> <File>
<FileName>sched.c</FileName> <FileName>sched.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/sched.c</FilePath> <FilePath>..\..\components\libc\pthreads\sched.c</FilePath>
</File> </File>
<File> <File>
<FileName>semaphore.c</FileName> <FileName>semaphore.c</FileName>
<FileType>1</FileType> <FileType>1</FileType>
<FilePath>../../components/pthreads/semaphore.c</FilePath> <FilePath>..\..\components\libc\pthreads\semaphore.c</FilePath>
</File> </File>
</Files> </Files>
</Group> </Group>

View File

@ -151,7 +151,7 @@
// </section> // </section>
// <section name="RT_USING_LWIP" description="lwip, a lightweight TCP/IP protocol stack" default="true" > // <section name="RT_USING_LWIP" description="lwip, a lightweight TCP/IP protocol stack" default="true" >
#define RT_USING_LWIP //#define RT_USING_LWIP
// <bool name="RT_LWIP_ICMP" description="Enable ICMP protocol" default="true" /> // <bool name="RT_LWIP_ICMP" description="Enable ICMP protocol" default="true" />
#define RT_LWIP_ICMP #define RT_LWIP_ICMP
// <bool name="RT_LWIP_IGMP" description="Enable IGMP protocol" default="false" /> // <bool name="RT_LWIP_IGMP" description="Enable IGMP protocol" default="false" />