implied features

pull/9790/head
paul-szczepanek-arm 2019-02-06 15:36:39 +00:00 committed by Vincent Coubard
parent ab4e47661d
commit 9a22db0e96
2 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#ifndef MBED_BLE_H__
#define MBED_BLE_H__
#include "BLERoles.h
#include "blecommon.h"
#include "ble/Gap.h"
#include "ble/GattServer.h"

View File

@ -5,6 +5,14 @@
#error "BLE requires at least one role 'BROADCASTER' or 'OBSERVER' to be enabled"
#endif
#if define(BLE_ROLE_PERIPHERAL) || defined(BLE_ROLE_CENTRAL)
#define BLE_ROLE_CONNECTABLE 1
#endif
#if define(BLE_FEATURE_GATT_CLIENT) || defined(BLE_FEATURE_GATT_SERVER)
#define BLE_FEATURE_ATT 1
#endif
#ifdef BLE_ROLE_PERIPHERAL
#if !defined(BLE_ROLE_OBSERVER)
#error "BLE role 'PERIPHERAL' depends on role 'OBSERVER'"