Fix compiler warnings due to header includes.

Some header include paths have diverged between mbed OS and mbed-classic.
This commit is contained in:
Rohit Grover 2015-10-23 10:31:33 +01:00
parent 4c76373579
commit 84f434a994
3 changed files with 14 additions and 0 deletions

View file

@ -23,7 +23,11 @@
#include "GattClient.h"
#include "BLEInstanceBase.h"
#ifdef YOTTA_CFG_MBED_OS
#include "mbed-drivers/mbed_error.h"
#else
#include "mbed_error.h"
#endif
/**
* The base class used to abstract away BLE capable radio transceivers or SOCs,

View file

@ -17,8 +17,13 @@
#ifndef __BLE_UART_SERVICE_H__
#define __BLE_UART_SERVICE_H__
#ifdef YOTTA_CFG_MBED_OS
#include "mbed-drivers/mbed.h"
#include "mbed-drivers/Stream.h"
#else
#include "mbed.h"
#include "Stream.h"
#endif
#include "ble/UUID.h"
#include "ble/BLE.h"

View file

@ -18,7 +18,12 @@
#define SERVICES_URIBEACONCONFIGSERVICE_H_
#include "ble/BLE.h"
#ifdef YOTTA_CFG_MBED_OS
#include "mbed-drivers/mbed.h"
#else
#include "mbed.h"
#endif
extern const uint8_t UUID_URI_BEACON_SERVICE[UUID::LENGTH_OF_LONG_UUID];
extern const uint8_t UUID_LOCK_STATE_CHAR[UUID::LENGTH_OF_LONG_UUID];