mbed-os5 only for TYBLE16
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
features/FEATURE_BLE/ble/pal/Deprecated.h@0:5b88d5760320, 2019-12-17 (annotated)
- Committer:
- kenjiArai
- Date:
- Tue Dec 17 23:23:45 2019 +0000
- Revision:
- 0:5b88d5760320
mbed-os5 only for TYBLE16
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 0:5b88d5760320 | 1 | /* mbed Microcontroller Library |
kenjiArai | 0:5b88d5760320 | 2 | * Copyright (c) 2018 ARM Limited |
kenjiArai | 0:5b88d5760320 | 3 | * |
kenjiArai | 0:5b88d5760320 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
kenjiArai | 0:5b88d5760320 | 5 | * you may not use this file except in compliance with the License. |
kenjiArai | 0:5b88d5760320 | 6 | * You may obtain a copy of the License at |
kenjiArai | 0:5b88d5760320 | 7 | * |
kenjiArai | 0:5b88d5760320 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
kenjiArai | 0:5b88d5760320 | 9 | * |
kenjiArai | 0:5b88d5760320 | 10 | * Unless required by applicable law or agreed to in writing, software |
kenjiArai | 0:5b88d5760320 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
kenjiArai | 0:5b88d5760320 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
kenjiArai | 0:5b88d5760320 | 13 | * See the License for the specific language governing permissions and |
kenjiArai | 0:5b88d5760320 | 14 | * limitations under the License. |
kenjiArai | 0:5b88d5760320 | 15 | */ |
kenjiArai | 0:5b88d5760320 | 16 | #ifndef BLE_PAL_DEPRECATED_H |
kenjiArai | 0:5b88d5760320 | 17 | #define BLE_PAL_DEPRECATED_H |
kenjiArai | 0:5b88d5760320 | 18 | |
kenjiArai | 0:5b88d5760320 | 19 | /** |
kenjiArai | 0:5b88d5760320 | 20 | * Declare the beginning of a code block that uses a deprecated API |
kenjiArai | 0:5b88d5760320 | 21 | */ |
kenjiArai | 0:5b88d5760320 | 22 | #if defined(__GNUC__) && !defined(__CC_ARM) |
kenjiArai | 0:5b88d5760320 | 23 | #define BLE_DEPRECATED_API_USE_BEGIN() \ |
kenjiArai | 0:5b88d5760320 | 24 | _Pragma("GCC diagnostic push") \ |
kenjiArai | 0:5b88d5760320 | 25 | _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") |
kenjiArai | 0:5b88d5760320 | 26 | #elif defined(__CC_ARM) |
kenjiArai | 0:5b88d5760320 | 27 | #define BLE_DEPRECATED_API_USE_BEGIN() \ |
kenjiArai | 0:5b88d5760320 | 28 | _Pragma("push") \ |
kenjiArai | 0:5b88d5760320 | 29 | _Pragma("diag_suppress 1361") |
kenjiArai | 0:5b88d5760320 | 30 | #else |
kenjiArai | 0:5b88d5760320 | 31 | #define BLE_DEPRECATED_API_USE_BEGIN() |
kenjiArai | 0:5b88d5760320 | 32 | #endif |
kenjiArai | 0:5b88d5760320 | 33 | |
kenjiArai | 0:5b88d5760320 | 34 | /** |
kenjiArai | 0:5b88d5760320 | 35 | * Declare the end of a code block that uses a deprecated API |
kenjiArai | 0:5b88d5760320 | 36 | */ |
kenjiArai | 0:5b88d5760320 | 37 | #if defined(__GNUC__) && !defined(__CC_ARM) |
kenjiArai | 0:5b88d5760320 | 38 | #define BLE_DEPRECATED_API_USE_END() \ |
kenjiArai | 0:5b88d5760320 | 39 | _Pragma("GCC diagnostic pop") |
kenjiArai | 0:5b88d5760320 | 40 | #elif defined(__CC_ARM) |
kenjiArai | 0:5b88d5760320 | 41 | #define BLE_DEPRECATED_API_USE_END() \ |
kenjiArai | 0:5b88d5760320 | 42 | _Pragma("pop") |
kenjiArai | 0:5b88d5760320 | 43 | #else |
kenjiArai | 0:5b88d5760320 | 44 | #define BLE_DEPRECATED_API_USE_END() |
kenjiArai | 0:5b88d5760320 | 45 | #endif |
kenjiArai | 0:5b88d5760320 | 46 | |
kenjiArai | 0:5b88d5760320 | 47 | |
kenjiArai | 0:5b88d5760320 | 48 | #endif //BLE_PAL_DEPRECATED_H |