File tree Expand file tree Collapse file tree 1 file changed +6
-18
lines changed
features/FEATURE_BLE/targets/TARGET_CORDIO/source Expand file tree Collapse file tree 1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change 36
36
#include " mbed_assert.h"
37
37
38
38
#include " CordioPalAttClient.h"
39
- #if BLE_FEATURE_SECURITY
40
39
#include " CordioPalSecurityManager.h"
41
- #endif // BLE_FEATURE_SECURITY
42
40
43
41
/* ! WSF handler ID */
44
42
wsfHandlerId_t stack_handler_id;
@@ -182,13 +180,9 @@ impl::GenericGapImpl& BLE::getGap()
182
180
static pal::vendor::cordio::GenericAccessService cordio_gap_service;
183
181
static impl::GenericGapImpl gap (
184
182
_event_queue,
185
- impl::PalGapImpl::get_gap ()
186
- #if BLE_FEATURE_GATT_SERVER
187
- , cordio_gap_service
188
- #endif
189
- #if BLE_FEATURE_SECURITY
190
- , impl::PalSecurityManagerImpl::get_security_manager ()
191
- #endif
183
+ impl::PalGapImpl::get_gap (),
184
+ cordio_gap_service,
185
+ impl::PalSecurityManagerImpl::get_security_manager ()
192
186
);
193
187
194
188
return gap;
@@ -233,17 +227,11 @@ impl::PalGattClientImpl& BLE::getPalGattClient()
233
227
#if BLE_FEATURE_SECURITY
234
228
SecurityManager& BLE::getSecurityManager ()
235
229
{
236
- #if BLE_FEATURE_SIGNING
237
230
static vendor::cordio::SigningEventMonitor<impl::GenericSecurityManagerImpl> signing_event_monitor;
238
- #endif
239
231
static impl::GenericSecurityManagerImpl m_instance (
240
- impl::PalSecurityManagerImpl::get_security_manager ()
241
- #if BLE_FEATURE_CONNECTABLE
242
- , getGap ()
243
- #endif
244
- #if BLE_FEATURE_SIGNING
245
- , signing_event_monitor
246
- #endif
232
+ impl::PalSecurityManagerImpl::get_security_manager (),
233
+ getGap (),
234
+ signing_event_monitor
247
235
);
248
236
249
237
return m_instance;
You can’t perform that action at this time.
0 commit comments