Skip to content

Commit ca5a9f3

Browse files
committed
Nordic BLE: remove unecessary nordic ble libraries.
1 parent a22b4e5 commit ca5a9f3

Some content is hidden

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

52 files changed

+10
-18825
lines changed

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/btle/btle.cpp

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,12 @@
2121
#include "btle_clock.h"
2222

2323
#include "ble_flash.h"
24-
#include "ble_conn_params.h"
2524

2625
#include "custom/custom_helper.h"
2726

2827
#include "ble/GapEvents.h"
2928
#include "nRF5xn.h"
3029

31-
// This is a C++ file, so C11 _Static_assert (works with -std=gnu99 on GCC) won't work
32-
#undef STATIC_ASSERT_SIMPLE
33-
#undef STATIC_ASSERT_MSG
34-
35-
// FIXME : We can't use mbed_assert.h because we're using these macros within functions
36-
#define STATIC_ASSERT_MSG(EXPR, MSG)
37-
#define STATIC_ASSERT_SIMPLE(EXPR)
38-
39-
#warning FIXME : We can't use mbed_assert.h because we're using these within functions
40-
4130
#ifdef S110
4231
#define IS_LEGACY_DEVICE_MANAGER_ENABLED 1
4332
#elif defined(S130) || defined(S132)
@@ -51,8 +40,6 @@ extern "C" {
5140
#else
5241
#include "nrf_fstorage.h"
5342
#include "fds.h"
54-
#include "peer_manager.h"
55-
#include "ble_conn_state.h"
5643
#endif
5744

5845
#include "nrf_sdh.h"
@@ -63,6 +50,16 @@ extern "C" {
6350

6451
#include "nRF5xPalGattClient.h"
6552

53+
// This is a C++ file, so C11 _Static_assert (works with -std=gnu99 on GCC) won't work
54+
#undef STATIC_ASSERT_SIMPLE
55+
#undef STATIC_ASSERT_MSG
56+
57+
// FIXME : We can't use mbed_assert.h because we're using these macros within functions
58+
#define STATIC_ASSERT_MSG(EXPR, MSG)
59+
#define STATIC_ASSERT_SIMPLE(EXPR)
60+
61+
#warning FIXME : We can't use mbed_assert.h because we're using these within functions
62+
6663

6764
// Make this volatile at it will be set in interrupt context
6865
volatile bool isEventsSignaled = false;

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/btle/btle.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ extern "C" {
2323

2424
#include "common/common.h"
2525

26-
#include "ble_srv_common.h"
2726
#include "headers/nrf_ble.h"
2827

2928
#if NRF_SD_BLE_API_VERSION >= 5

features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/nRF5xGap.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#include "ble/BLE.h"
2424

2525
#include "common/common.h"
26-
#include "ble_advdata.h"
2726
#include "headers/ble_hci.h"
2827
#include "ble/pal/ConnectionEventMonitor.h"
2928
#include "nRF5xPalSecurityManager.h"

0 commit comments

Comments
 (0)