Skip to content

Commit f3c29df

Browse files
committed
Suppress warnings of deprecated API in deprecated services
Services that already have deprecation notices in place should not trigger more warnings from the compiler.
1 parent 31edc25 commit f3c29df

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

features/FEATURE_BLE/ble/services/UARTService.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@
2626

2727
#include "ble/UUID.h"
2828
#include "ble/BLE.h"
29+
#include "ble/pal/Deprecated.h"
2930

3031
#if BLE_FEATURE_GATT_SERVER
3132

33+
BLE_DEPRECATED_API_USE_BEGIN()
34+
3235
extern const uint8_t UARTServiceBaseUUID[UUID::LENGTH_OF_LONG_UUID];
3336
extern const uint16_t UARTServiceShortUUID;
3437
extern const uint16_t UARTServiceTXCharacteristicShortUUID;
@@ -223,6 +226,8 @@ class UARTService {
223226
* application. */
224227
};
225228

229+
BLE_DEPRECATED_API_USE_END()
230+
226231
#endif // BLE_FEATURE_GATT_SERVER
227232

228233
#endif /* #ifndef __BLE_UART_SERVICE_H__*/

features/FEATURE_BLE/ble/services/URIBeaconConfigService.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define SERVICES_URIBEACONCONFIGSERVICE_H_
1919

2020
#include "ble/BLE.h"
21+
#include "ble/pal/Deprecated.h"
2122

2223
#ifdef YOTTA_CFG_MBED_OS
2324
#include "mbed-drivers/mbed.h"
@@ -28,6 +29,8 @@
2829
#if BLE_FEATURE_GATT_SERVER
2930
#if BLE_ROLE_BROADCASTER
3031

32+
BLE_DEPRECATED_API_USE_BEGIN()
33+
3134
extern const uint8_t UUID_URI_BEACON_SERVICE[UUID::LENGTH_OF_LONG_UUID];
3235
extern const uint8_t UUID_LOCK_STATE_CHAR[UUID::LENGTH_OF_LONG_UUID];
3336
extern const uint8_t UUID_LOCK_CHAR[UUID::LENGTH_OF_LONG_UUID];
@@ -483,6 +486,8 @@ class URIBeaconConfigService {
483486
}
484487
};
485488

489+
BLE_DEPRECATED_API_USE_END()
490+
486491
#endif // BLE_ROLE_BROADCASTER
487492
#endif // BLE_FEATURE_GATT_SERVER
488493

features/FEATURE_BLE/ble/services/iBeacon.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@
1818

1919
#include "cmsis_compiler.h"
2020
#include "ble/BLE.h"
21+
#include "ble/pal/Deprecated.h"
2122

2223
#if BLE_FEATURE_GATT_SERVER
2324

25+
BLE_DEPRECATED_API_USE_BEGIN()
26+
2427
/**
2528
* iBeacon Service.
2629
*
@@ -253,6 +256,8 @@ class iBeacon {
253256
*/
254257
typedef iBeacon iBeaconService;
255258

259+
BLE_DEPRECATED_API_USE_END()
260+
256261
#endif // BLE_FEATURE_GATT_SERVER
257262

258263
#endif //MBED_BLE_IBEACON_H__

0 commit comments

Comments
 (0)