Skip to content

Commit d1c6bc0

Browse files
author
Seppo Takalo
committed
Get rid of FEATURE_COMMON_PAL
Nanostack related files moved under 'feature/nanostack' Common libraries moved to 'features/frameworks' Allow FEATURE_COMMON_PAL still to be defined in the build so that we don't break any builds.
1 parent c8d72c5 commit d1c6bc0

File tree

176 files changed

+0
-28
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+0
-28
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-sys/lwip_random.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
#include "lwip/debug.h"
1919
#include "lwip/def.h"
2020
#include "lwip_random.h"
21-
22-
#if FEATURE_COMMON_PAL
23-
2421
#include "randLIB.h"
2522

2623
void lwip_seed_random(void)
@@ -37,20 +34,3 @@ inline uint32_t lwip_get_random(void)
3734
{
3835
return randLIB_get_32bit();
3936
}
40-
41-
#else
42-
43-
void lwip_seed_random(void)
44-
{
45-
}
46-
47-
void lwip_add_random_seed(uint64_t seed)
48-
{
49-
}
50-
51-
uint32_t lwip_get_random(void)
52-
{
53-
return rand();
54-
}
55-
56-
#endif

features/FEATURE_LWIP/lwip-interface/ppp_lwip.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,8 @@
1818
#include "platform/FileHandle.h"
1919
#include "platform/mbed_poll.h"
2020
#include "events/EventQueue.h"
21-
#if defined(FEATURE_COMMON_PAL)
2221
#include "mbed_trace.h"
2322
#define TRACE_GROUP "LPPP"
24-
#else
25-
#define tr_debug(...) (void(0)) //dummies if feature common pal is not added
26-
#define tr_info(...) (void(0)) //dummies if feature common pal is not added
27-
#define tr_error(...) (void(0)) //dummies if feature common pal is not added
28-
#endif //defined(FEATURE_COMMON_PAL)
2923
#include "rtos/Thread.h"
3024
#include "lwip/tcpip.h"
3125
#include "lwip/tcp.h"

0 commit comments

Comments
 (0)