require at least one role observer or broadcaster

pull/9790/head
paul-szczepanek-arm 2019-02-06 15:14:37 +00:00 committed by Vincent Coubard
parent aefab05e5a
commit 212e9477d3
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#ifndef MBED_BLE_ROLES_H__
#define MBED_BLE_ROLES_H__
#if !defined(BLE_ROLE_OBSERVER) && !defined(BLE_ROLE_BROADCASTER)
#error "BLE requires at least one role 'BROADCASTER' or 'OBSERVER' to be enabled"
#endif
#ifdef BLE_ROLE_PERIPHERAL
#if !defined(BLE_ROLE_OBSERVER)
#error "BLE role 'PERIPHERAL' depends on role 'OBSERVER'"