From f59547e78212bbaf5d8bc5fbdfe729e3f6ee586b Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Mon, 4 May 2015 13:09:07 +0000 Subject: [PATCH] [BSP] Fix compiling error because pthreads is depended libc --- bsp/beaglebone/applications/application.c | 4 +--- bsp/beaglebone/rtconfig.h | 4 ++-- 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 f34821e74..540e31bc6 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 018b2862f..44b271263 100644 --- a/bsp/beaglebone/rtconfig.h +++ b/bsp/beaglebone/rtconfig.h @@ -122,8 +122,8 @@ // //
-// -//#define RT_USING_NEWLIB +// +#define RT_USING_LIBC // #define RT_USING_PTHREADS //
diff --git a/bsp/lpc408x/rtconfig.h b/bsp/lpc408x/rtconfig.h index defd591de..27903b6dd 100644 --- a/bsp/lpc408x/rtconfig.h +++ b/bsp/lpc408x/rtconfig.h @@ -105,7 +105,7 @@ //
// -// #define RT_USING_LIBC +#define RT_USING_LIBC // #define RT_USING_PTHREADS //
-- GitLab