diff options
| author | Bernard Xiong <[email protected]> | 2015-05-04 13:09:07 +0000 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-05-04 13:09:07 +0000 |
| commit | f59547e78212bbaf5d8bc5fbdfe729e3f6ee586b (patch) | |
| tree | 7b469342633a9dda6cd3ff75144388651310bd30 /bsp | |
| parent | 8a39ed9115d13552a4e332d01b75181e6b2a3865 (diff) | |
[BSP] Fix compiling error because pthreads is depended libc
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/beaglebone/applications/application.c | 4 | ||||
| -rw-r--r-- | bsp/beaglebone/rtconfig.h | 4 | ||||
| -rw-r--r-- | bsp/lpc408x/rtconfig.h | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/bsp/beaglebone/applications/application.c b/bsp/beaglebone/applications/application.c index f34821e748..540e31bc60 100644 --- a/bsp/beaglebone/applications/application.c +++ b/bsp/beaglebone/applications/application.c @@ -24,9 +24,7 @@ int rt_application_init() { /* do component initialization */ rt_components_init(); -#ifdef RT_USING_NEWLIB - libc_system_init(RT_CONSOLE_DEVICE_NAME); -#endif + #ifdef RT_USING_GDB gdb_set_device("uart4"); gdb_start(); diff --git a/bsp/beaglebone/rtconfig.h b/bsp/beaglebone/rtconfig.h index 018b2862f1..44b271263f 100644 --- a/bsp/beaglebone/rtconfig.h +++ b/bsp/beaglebone/rtconfig.h @@ -122,8 +122,8 @@ // </section> // <section name="LIBC" description="C Runtime library setting" default="always" > -// <bool name="RT_USING_NEWLIB" description="Using newlib library, only available under GNU GCC" default="true" /> -//#define RT_USING_NEWLIB +// <bool name="RT_USING_LIBC" description="Using C library" default="true" /> +#define RT_USING_LIBC // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" /> #define RT_USING_PTHREADS // </section> diff --git a/bsp/lpc408x/rtconfig.h b/bsp/lpc408x/rtconfig.h index defd591de3..27903b6dd8 100644 --- a/bsp/lpc408x/rtconfig.h +++ b/bsp/lpc408x/rtconfig.h @@ -105,7 +105,7 @@ // <section name="LIBC" description="C Runtime library setting" default="always" > // <bool name="RT_USING_LIBC" description="Using C library" default="true" /> -// #define RT_USING_LIBC +#define RT_USING_LIBC // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" /> #define RT_USING_PTHREADS // </section> |
